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
Location:
branches/2521_ProblemRefactoring/HeuristicLab.Encodings.LinearLinkageEncoding/3.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Encodings.LinearLinkageEncoding/3.4/LinearLinkageMultiObjectiveProblem.cs

    r17587 r17620  
    7676    }
    7777
    78     protected override void OnEncodingChanged() {
    79       base.OnEncodingChanged();
     78    protected override void ParameterizeOperators() {
     79      base.ParameterizeOperators();
    8080      Parameterize();
    8181    }
  • branches/2521_ProblemRefactoring/HeuristicLab.Encodings.LinearLinkageEncoding/3.4/LinearLinkageProblem.cs

    r17587 r17620  
    6161
    6262      Operators.Add(new HammingSimilarityCalculator());
     63      // TODO: These should be added in the SingleObjectiveProblem base class (if they were accessible from there)
    6364      Operators.Add(new QualitySimilarityCalculator());
    6465      Operators.Add(new PopulationSimilarityAnalyzer(Operators.OfType<ISolutionSimilarityCalculator>()));
     
    7576    }
    7677
    77     protected override void OnEncodingChanged() {
    78       base.OnEncodingChanged();
     78    protected override void ParameterizeOperators() {
     79      base.ParameterizeOperators();
    7980      Parameterize();
    8081    }
    8182
    8283    private void Parameterize() {
     84      // TODO: this is done in base class as well (but operators are added at this level of the hierarchy)
    8385      foreach (var similarityCalculator in Operators.OfType<ISolutionSimilarityCalculator>()) {
    8486        similarityCalculator.SolutionVariableName = Encoding.Name;
Note: See TracChangeset for help on using the changeset viewer.