- Timestamp:
- 12/19/17 11:10:14 (7 years ago)
- Location:
- branches/2864_PermutationProblems/HeuristicLab.Problems.Instances.PFSP
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2864_PermutationProblems/HeuristicLab.Problems.Instances.PFSP/3.3/FSSPTAILIBInstanceProvider.cs
r15521 r15541 40 40 public override string Description 41 41 { 42 get { return "Permutation Flowshop scheduling problemsas defined by Taillard."; }42 get { return "Permutation Flowshop Scheduling Problems (PFSP) as defined by Taillard."; } 43 43 } 44 44 … … 112 112 public override bool CanExportData 113 113 { 114 get { return true; }114 get { return false; } 115 115 } 116 117 public override void ExportData(FSSPData instance, string path) 118 { 119 var parser = new FSSPTAILIBParser 120 { 121 Name = instance.Name, 122 Description = instance.Description, 123 Jobs = instance.Jobs, 124 Machines = instance.Machines, 125 ProcessingTimes = instance.ProcessingTimes, 126 }; 127 parser.Export(path); 128 } 129 116 130 117 private string GetDescription() 131 118 { -
branches/2864_PermutationProblems/HeuristicLab.Problems.Instances.PFSP/3.3/FSSPTAILIBParser.cs
r15521 r15541 67 67 } 68 68 } 69 70 /// <summary> 71 /// Reads from the given stream data which is expected to be in the JSSP ORLIB format. 72 /// </summary> 73 /// <remarks> 74 /// The stream is not closed or disposed. The caller has to take care of that. 75 /// </remarks> 76 /// <param name="stream">The stream to read data from.</param> 69 77 70 public void Parse(Stream stream) 78 71 { … … 111 104 } 112 105 } 113 114 /// <summary> 115 /// Writes to the given stream data which is expected to be in the JSSP ORLIB format. 116 /// </summary> 117 /// <remarks> 118 /// The stream is not closed or disposed. The caller has to take care of that. 119 /// </remarks> 120 /// <param name="stream">The stream to write data to.</param> 106 121 107 public void Export(Stream stream) 122 108 { 123 //TODO: complete Export, seems as if it is just a dummy (copy-paste)-implementation124 109 using (var writer = new StreamWriter(stream, Encoding.UTF8, 4092, true)) 125 110 { 126 111 writer.WriteLine(Name); 127 112 writer.WriteLine(Description); 128 writer.WriteLine(Jobs.ToString(CultureInfo.InvariantCulture.NumberFormat) + " " + Machines.ToString(CultureInfo.InvariantCulture.NumberFormat)); 129 for (int i = 0; i < Machines; i++) 113 writer.WriteLine(Jobs + '\t' + Machines); 114 writer.WriteLine(BestKnownQuality); 115 116 for (int k = 0; k < Machines; k++) 130 117 { 131 for (int j = 0; j < Jobs; j++)118 for (int i = 0; i < Jobs; i++) 132 119 { 133 writer.Write(ProcessingTimes[ i, j] + "");120 writer.Write(ProcessingTimes[k, i] + "\t"); 134 121 } 135 122 writer.WriteLine(); 123 } 124 125 if (BestKnownSchedule != null) { 126 writer.WriteLine(BestKnownSchedule); 136 127 } 137 128 writer.Flush(); 138 129 } 139 130 } 140 141 131 } 142 132 } -
branches/2864_PermutationProblems/HeuristicLab.Problems.Instances.PFSP/3.3/HeuristicLab.Problems.Instances.PFSP-3.3.csproj
r15521 r15541 18 18 <DebugType>full</DebugType> 19 19 <Optimize>false</Optimize> 20 <OutputPath>..\..\ bin\</OutputPath>20 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 21 21 <DefineConstants>DEBUG;TRACE</DefineConstants> 22 22 <ErrorReport>prompt</ErrorReport> … … 38 38 </PropertyGroup> 39 39 <ItemGroup> 40 <Reference Include="HeuristicLab.Common-3.3"> 41 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Common-3.3.dll</HintPath> 42 </Reference> 43 <Reference Include="HeuristicLab.PluginInfrastructure-3.3"> 44 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 45 </Reference> 40 46 <Reference Include="System" /> 41 47 <Reference Include="System.Core" /> … … 62 68 </ItemGroup> 63 69 <ItemGroup> 64 <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj">65 <Project>{a9ad58b9-3ef9-4cc1-97e5-8d909039ff5c}</Project>66 <Name>HeuristicLab.Common-3.3</Name>67 </ProjectReference>68 <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">69 <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project>70 <Name>HeuristicLab.PluginInfrastructure-3.3</Name>71 </ProjectReference>72 70 <ProjectReference Include="..\..\HeuristicLab.Problems.Instances\3.3\HeuristicLab.Problems.Instances-3.3.csproj"> 73 <Project>{3540 E29E-4793-49E7-8EE2-FEA7F61C3994}</Project>71 <Project>{3540e29e-4793-49e7-8ee2-fea7f61c3994}</Project> 74 72 <Name>HeuristicLab.Problems.Instances-3.3</Name> 75 73 </ProjectReference> -
branches/2864_PermutationProblems/HeuristicLab.Problems.Instances.PFSP/3.3/Properties/AssemblyInfo.cs
r15521 r15541 1 using System.Reflection; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 22 using System.Reflection; 2 23 using System.Runtime.CompilerServices; 3 24 using System.Runtime.InteropServices; … … 34 55 // [assembly: AssemblyVersion("1.0.*")] 35 56 [assembly: AssemblyVersion("3.3.0.0")] 36 [assembly: AssemblyFileVersion("3.3.14.1 4965")]57 [assembly: AssemblyFileVersion("3.3.14.15521")]
Note: See TracChangeset
for help on using the changeset viewer.