Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/10/12 10:42:06 (13 years ago)
Author:
jkarder
Message:

#1331:

  • added Scatter Search algorithm
  • added problem specific operators for improvement, path relinking and similarity calculation
  • adjusted event handling
Location:
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.TravelingSalesman/3.3
Files:
8 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.TravelingSalesman/3.3/HeuristicLab.Problems.TravelingSalesman-3.3.csproj

    r7646 r7789  
    118118    <Compile Include="Evaluators\TSPEuclideanPathEvaluator.cs" />
    119119    <Compile Include="Evaluators\TSPGeoPathEvaluator.cs" />
     120    <Compile Include="Improvers\TSPImprovementOperator.cs" />
    120121    <Compile Include="Interfaces\ITSPDistanceMatrixEvaluator.cs" />
    121122    <Compile Include="MoveEvaluators\ThreeOpt\TSPTranslocationMoveEuclideanPathEvaluator.cs" />
     
    127128    <Compile Include="MoveEvaluators\TwoOpt\TSPInversionMovePathEvaluator.cs" />
    128129    <Compile Include="MoveEvaluators\TwoOpt\TSPInversionMoveRoundedEuclideanPathEvaluator.cs" />
     130    <Compile Include="PathRelinkers\TSPMultipleGuidesPathRelinker.cs" />
     131    <Compile Include="PathRelinkers\TSPPathRelinker.cs" />
     132    <Compile Include="PathRelinkers\TSPSimultaneousPathRelinker.cs" />
    129133    <Compile Include="Plugin.cs" />
     134    <Compile Include="SimilarityCalculators\TSPSimilarityCalculator.cs" />
    130135    <Compile Include="TravelingSalesmanProblem.cs" />
    131136    <Compile Include="PathTSPTour.cs" />
     
    182187      <Name>HeuristicLab.Operators-3.3</Name>
    183188      <Private>False</Private>
     189    </ProjectReference>
     190    <ProjectReference Include="..\..\HeuristicLab.Optimization.Operators\3.3\HeuristicLab.Optimization.Operators-3.3.csproj">
     191      <Project>{25087811-F74C-4128-BC86-8324271DA13E}</Project>
     192      <Name>HeuristicLab.Optimization.Operators-3.3</Name>
    184193    </ProjectReference>
    185194    <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj">
  • branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs

    r7658 r7789  
    2929using HeuristicLab.Encodings.PermutationEncoding;
    3030using HeuristicLab.Optimization;
     31using HeuristicLab.Optimization.Operators;
    3132using HeuristicLab.Parameters;
    3233using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     
    222223
    223224    private void InitializeOperators() {
     225      Operators.Add(new TSPImprovementOperator());
     226      Operators.Add(new TSPMultipleGuidesPathRelinker());
     227      Operators.Add(new TSPPathRelinker());
     228      Operators.Add(new TSPSimultaneousPathRelinker());
     229      Operators.Add(new TSPSimilarityCalculator());
     230
    224231      Operators.Add(new BestTSPSolutionAnalyzer());
    225232      Operators.Add(new TSPAlleleFrequencyAnalyzer());
     
    335342        op.PermutationParameter.ActualName = SolutionCreator.PermutationParameter.ActualName;
    336343        op.PermutationParameter.Hidden = true;
     344      }
     345      foreach (IImprovementOperator op in Operators.OfType<IImprovementOperator>()) {
     346        op.TargetParameter.ActualName = SolutionCreator.PermutationParameter.ActualName;
     347        op.TargetParameter.Hidden = true;
     348      }
     349      foreach (IPathRelinker op in Operators.OfType<IPathRelinker>()) {
     350        op.ParentsParameter.ActualName = SolutionCreator.PermutationParameter.ActualName;
     351        op.ParentsParameter.Hidden = true;
     352      }
     353      foreach (ISimilarityCalculator op in Operators.OfType<ISimilarityCalculator>()) {
     354        op.TargetParameter.ActualName = SolutionCreator.PermutationParameter.ActualName;
     355        op.TargetParameter.Hidden = true;
    337356      }
    338357    }
Note: See TracChangeset for help on using the changeset viewer.