Changeset 17620 for branches/2521_ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3
- Timestamp:
- 06/22/20 03:45:41 (4 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorMultiObjectiveProblem.cs
r17612 r17620 76 76 } 77 77 78 protected override void OnEncodingChanged() {79 base. OnEncodingChanged();78 protected override void ParameterizeOperators() { 79 base.ParameterizeOperators(); 80 80 Parameterize(); 81 81 } -
branches/2521_ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorProblem.cs
r17612 r17620 67 67 68 68 Operators.Add(new HammingSimilarityCalculator()); 69 // TODO: These should be added in the SingleObjectiveProblem base class (if they were accessible from there) 69 70 Operators.Add(new QualitySimilarityCalculator()); 70 71 Operators.Add(new PopulationSimilarityAnalyzer(Operators.OfType<ISolutionSimilarityCalculator>())); … … 81 82 } 82 83 84 protected override void ParameterizeOperators() { 85 base.ParameterizeOperators(); 86 Parameterize(); 87 } 88 83 89 private void Parameterize() { 90 // TODO: this is done in base class as well (but operators are added at this level of the hierarchy) 84 91 foreach (var similarityCalculator in Operators.OfType<ISolutionSimilarityCalculator>()) { 85 92 similarityCalculator.SolutionVariableName = Encoding.Name;
Note: See TracChangeset
for help on using the changeset viewer.