Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8662


Ignore:
Timestamp:
09/16/12 18:18:18 (12 years ago)
Author:
ascheibe
Message:

#1331 fixed setting of the QualityVariableName for the NoSimilarityCalculator as this is needed by the SolutionPoopUpdateMethod because it uses the GetHashCode method of SingleObjectiveSolutionSimilarityCalculator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.ScatterSearch/3.3/ScatterSearch.cs

    r8630 r8662  
    389389
    390390      SimilarityCalculatorParameter.ValidValues.Add(new QualitySimilarityCalculator { QualityVariableName = Problem.Evaluator.QualityParameter.ActualName });
    391       SimilarityCalculatorParameter.ValidValues.Add(new NoSimilarityCalculator());
     391      SimilarityCalculatorParameter.ValidValues.Add(new NoSimilarityCalculator { QualityVariableName = Problem.Evaluator.QualityParameter.ActualName });
    392392
    393393      foreach (ISingleObjectiveSolutionSimilarityCalculator similarityCalculator in Problem.Operators.OfType<ISingleObjectiveSolutionSimilarityCalculator>())
Note: See TracChangeset for help on using the changeset viewer.