Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/22/20 03:45:41 (4 years ago)
Author:
abeham
Message:

#2521:

  • Fixed orienteering problem
  • Corrected ParameterizeOperators in all encoding-specific problem base classes
  • Added new interfaces and wiring code to IntegerVectorEncoding
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorProblem.cs

    r17587 r17620  
    6969
    7070      Operators.Add(new HammingSimilarityCalculator());
     71
     72      // TODO: These should be added in the SingleObjectiveProblem base class (if they were accessible from there)
    7173      Operators.Add(new QualitySimilarityCalculator());
    7274      Operators.Add(new PopulationSimilarityAnalyzer(Operators.OfType<ISolutionSimilarityCalculator>()));
     
    8385    }
    8486
    85     protected override void OnEncodingChanged() {
    86       base.OnEncodingChanged();
     87    protected override void ParameterizeOperators() {
     88      base.ParameterizeOperators();
    8789      Parameterize();
    8890    }
    8991
    9092    private void Parameterize() {
     93      // TODO: this is done in base class as well (but operators are added at this level of the hierarchy)
    9194      foreach (var similarityCalculator in Operators.OfType<ISolutionSimilarityCalculator>()) {
    9295        similarityCalculator.SolutionVariableName = Encoding.Name;
Note: See TracChangeset for help on using the changeset viewer.