Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/10/12 10:42:06 (12 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.Knapsack/3.3
Files:
8 added
2 edited

Legend:

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

    r6866 r7789  
    109109  <ItemGroup>
    110110    <Compile Include="Evaluators\KnapsackEvaluator.cs" />
     111    <Compile Include="Improvers\KnapsackImprovementOperator.cs" />
    111112    <Compile Include="Interfaces\IKnapsackEvaluator.cs" />
    112113    <Compile Include="Interfaces\IKnapsackMoveEvaluator.cs" />
     
    115116    <Compile Include="MoveEvaluators\KnapsackMoveEvaluator.cs" />
    116117    <Compile Include="MoveEvaluators\KnapsackOneBitflipMoveEvaluator.cs" />
     118    <Compile Include="PathRelinkers\KnapsackMultipleGuidesPathRelinker.cs" />
     119    <Compile Include="PathRelinkers\KnapsackPathRelinker.cs" />
     120    <Compile Include="PathRelinkers\KnapsackSimultaneousPathRelinker.cs" />
    117121    <Compile Include="Plugin.cs" />
    118122    <Compile Include="Properties\AssemblyInfo.cs" />
    119123    <Compile Include="Analyzers\BestKnapsackSolutionAnalyzer.cs" />
     124    <Compile Include="SimilarityCalculators\KnapsackSimilarityCalculator.cs" />
    120125  </ItemGroup>
    121126  <ItemGroup>
     
    159164      <Name>HeuristicLab.Operators-3.3</Name>
    160165      <Private>False</Private>
     166    </ProjectReference>
     167    <ProjectReference Include="..\..\HeuristicLab.Optimization.Operators\3.3\HeuristicLab.Optimization.Operators-3.3.csproj">
     168      <Project>{25087811-F74C-4128-BC86-8324271DA13E}</Project>
     169      <Name>HeuristicLab.Optimization.Operators-3.3</Name>
    161170    </ProjectReference>
    162171    <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj">
     
    198207    </BootstrapperPackage>
    199208  </ItemGroup>
     209  <ItemGroup />
    200210  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    201211  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
  • branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.Knapsack/3.3/KnapsackProblem.cs

    r7351 r7789  
    2828using HeuristicLab.Encodings.BinaryVectorEncoding;
    2929using HeuristicLab.Optimization;
     30using HeuristicLab.Optimization.Operators;
    3031using HeuristicLab.Parameters;
    3132using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     
    244245    }
    245246    private void InitializeOperators() {
     247      Operators.Add(new KnapsackImprovementOperator());
     248      Operators.Add(new KnapsackMultipleGuidesPathRelinker());
     249      Operators.Add(new KnapsackPathRelinker());
     250      Operators.Add(new KnapsackSimultaneousPathRelinker());
     251      Operators.Add(new KnapsackSimilarityCalculator());
     252
    246253      Operators.Add(new BestKnapsackSolutionAnalyzer());
    247254      ParameterizeAnalyzer();
     
    290297        op.BinaryVectorParameter.Hidden = true;
    291298      }
     299      foreach (IImprovementOperator op in Operators.OfType<IImprovementOperator>()) {
     300        op.TargetParameter.ActualName = SolutionCreator.BinaryVectorParameter.ActualName;
     301        op.TargetParameter.Hidden = true;
     302      }
     303      foreach (IPathRelinker op in Operators.OfType<IPathRelinker>()) {
     304        op.ParentsParameter.ActualName = SolutionCreator.BinaryVectorParameter.ActualName;
     305        op.ParentsParameter.Hidden = true;
     306      }
     307      foreach (ISimilarityCalculator op in Operators.OfType<ISimilarityCalculator>()) {
     308        op.TargetParameter.ActualName = SolutionCreator.BinaryVectorParameter.ActualName;
     309        op.TargetParameter.Hidden = true;
     310      }
    292311    }
    293312    #endregion
Note: See TracChangeset for help on using the changeset viewer.