Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/19/17 11:10:14 (6 years ago)
Author:
fholzing
Message:

#2864: CleanUp of old code, added LOP benchmark instances

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  
    4040        public override string Description
    4141        {
    42             get { return "Permutation Flowshop scheduling problems as defined by Taillard."; }
     42            get { return "Permutation Flowshop Scheduling Problems (PFSP) as defined by Taillard."; }
    4343        }
    4444
     
    112112        public override bool CanExportData
    113113        {
    114             get { return true; }
     114            get { return false; }
    115115        }
    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       
    130117        private string GetDescription()
    131118        {
  • branches/2864_PermutationProblems/HeuristicLab.Problems.Instances.PFSP/3.3/FSSPTAILIBParser.cs

    r15521 r15541  
    6767            }
    6868        }
    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     
    7770        public void Parse(Stream stream)
    7871        {
     
    111104            }
    112105        }
    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   
    121107        public void Export(Stream stream)
    122108        {
    123             //TODO: complete Export, seems as if it is just a dummy (copy-paste)-implementation
    124109            using (var writer = new StreamWriter(stream, Encoding.UTF8, 4092, true))
    125110            {
    126111                writer.WriteLine(Name);
    127112                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++)
    130117                {
    131                     for (int j = 0; j < Jobs; j++)
     118                    for (int i = 0; i < Jobs; i++)
    132119                    {
    133                         writer.Write(ProcessingTimes[i, j] + " ");
     120                        writer.Write(ProcessingTimes[k, i] + "\t");
    134121                    }
    135122                    writer.WriteLine();
     123                }
     124
     125                if (BestKnownSchedule != null) {
     126                    writer.WriteLine(BestKnownSchedule);
    136127                }
    137128                writer.Flush();
    138129            }
    139130        }
    140 
    141131    }
    142132}
  • branches/2864_PermutationProblems/HeuristicLab.Problems.Instances.PFSP/3.3/HeuristicLab.Problems.Instances.PFSP-3.3.csproj

    r15521 r15541  
    1818    <DebugType>full</DebugType>
    1919    <Optimize>false</Optimize>
    20     <OutputPath>..\..\bin\</OutputPath>
     20    <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath>
    2121    <DefineConstants>DEBUG;TRACE</DefineConstants>
    2222    <ErrorReport>prompt</ErrorReport>
     
    3838  </PropertyGroup>
    3939  <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>
    4046    <Reference Include="System" />
    4147    <Reference Include="System.Core" />
     
    6268  </ItemGroup>
    6369  <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>
    7270    <ProjectReference Include="..\..\HeuristicLab.Problems.Instances\3.3\HeuristicLab.Problems.Instances-3.3.csproj">
    73       <Project>{3540E29E-4793-49E7-8EE2-FEA7F61C3994}</Project>
     71      <Project>{3540e29e-4793-49e7-8ee2-fea7f61c3994}</Project>
    7472      <Name>HeuristicLab.Problems.Instances-3.3</Name>
    7573    </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
     22using System.Reflection;
    223using System.Runtime.CompilerServices;
    324using System.Runtime.InteropServices;
     
    3455// [assembly: AssemblyVersion("1.0.*")]
    3556[assembly: AssemblyVersion("3.3.0.0")]
    36 [assembly: AssemblyFileVersion("3.3.14.14965")]
     57[assembly: AssemblyFileVersion("3.3.14.15521")]
Note: See TracChangeset for help on using the changeset viewer.