Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/24/12 15:04:37 (12 years ago)
Author:
jkarder
Message:

#1331:

  • applied some of the changes suggested by ascheibe in comment:32:ticket:1331
  • restructured path relinking and improvement operators and similarity calculators
  • fixed bug in TSPMultipleGuidesPathRelinker
File:
1 edited

Legend:

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

    r8086 r8319  
    291291        op.ValuesParameter.Hidden = true;
    292292      }
    293       foreach (var op in Operators.OfType<IBinaryVectorMultiNeighborhoodShakingOperator>()) {
     293      foreach (IBinaryVectorMultiNeighborhoodShakingOperator op in Operators.OfType<IBinaryVectorMultiNeighborhoodShakingOperator>()) {
    294294        op.BinaryVectorParameter.ActualName = SolutionCreator.BinaryVectorParameter.ActualName;
    295295        op.BinaryVectorParameter.Hidden = true;
    296296      }
    297       foreach (IImprovementOperator op in Operators.OfType<IImprovementOperator>()) {
    298         op.TargetParameter.ActualName = SolutionCreator.BinaryVectorParameter.ActualName;
    299         op.TargetParameter.Hidden = true;
    300       }
    301       foreach (IPathRelinker op in Operators.OfType<IPathRelinker>()) {
     297      foreach (ISingleObjectiveImprovementOperator op in Operators.OfType<ISingleObjectiveImprovementOperator>()) {
     298        op.SolutionParameter.ActualName = SolutionCreator.BinaryVectorParameter.ActualName;
     299        op.SolutionParameter.Hidden = true;
     300      }
     301      foreach (ISingleObjectivePathRelinker op in Operators.OfType<ISingleObjectivePathRelinker>()) {
    302302        op.ParentsParameter.ActualName = SolutionCreator.BinaryVectorParameter.ActualName;
    303303        op.ParentsParameter.Hidden = true;
    304304      }
    305       foreach (ISimilarityCalculator op in Operators.OfType<ISimilarityCalculator>()) {
    306         op.Target = SolutionCreator.BinaryVectorParameter.ActualName;
     305      foreach (KnapsackSimilarityCalculator op in Operators.OfType<KnapsackSimilarityCalculator>()) {
     306        op.SolutionVariableName = SolutionCreator.BinaryVectorParameter.ActualName;
    307307      }
    308308    }
Note: See TracChangeset for help on using the changeset viewer.