Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/04/15 15:22:21 (10 years ago)
Author:
jkarder
Message:

#2332:

  • fixed SolutionSimilarityCalculator.Equals
  • problems now wire all of their ISolutionSimilarityCalculators
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs

    r12102 r12126  
    234234      Operators.Add(new TSPSimultaneousPathRelinker());
    235235      Operators.Add(new TSPSimilarityCalculator());
    236       Operators.Add(new QualitySimilarityCalculator { QualityVariableName = SolutionCreator.PermutationParameter.ActualName });
     236      Operators.Add(new QualitySimilarityCalculator());
    237237      Operators.Add(new NoSimilarityCalculator());
    238238
     
    359359        op.ParentsParameter.Hidden = true;
    360360      }
    361       foreach (TSPSimilarityCalculator op in Operators.OfType<TSPSimilarityCalculator>()) {
     361      foreach (ISolutionSimilarityCalculator op in Operators.OfType<ISolutionSimilarityCalculator>()) {
    362362        op.SolutionVariableName = SolutionCreator.PermutationParameter.ActualName;
    363363        op.QualityVariableName = Evaluator.QualityParameter.ActualName;
Note: See TracChangeset for help on using the changeset viewer.