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.BinaryVectorEncoding/3.3/BinaryVectorProblem.cs

    r17612 r17620  
    6767
    6868      Operators.Add(new HammingSimilarityCalculator());
     69      // TODO: These should be added in the SingleObjectiveProblem base class (if they were accessible from there)
    6970      Operators.Add(new QualitySimilarityCalculator());
    7071      Operators.Add(new PopulationSimilarityAnalyzer(Operators.OfType<ISolutionSimilarityCalculator>()));
     
    8182    }
    8283
     84    protected override void ParameterizeOperators() {
     85      base.ParameterizeOperators();
     86      Parameterize();
     87    }
     88
    8389    private void Parameterize() {
     90      // TODO: this is done in base class as well (but operators are added at this level of the hierarchy)
    8491      foreach (var similarityCalculator in Operators.OfType<ISolutionSimilarityCalculator>()) {
    8592        similarityCalculator.SolutionVariableName = Encoding.Name;
Note: See TracChangeset for help on using the changeset viewer.