Changeset 17709 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/VehicleRoutingProblem.cs
- Timestamp:
- 08/03/20 11:35:39 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/VehicleRoutingProblem.cs
r17706 r17709 97 97 98 98 public override ISingleObjectiveEvaluationResult Evaluate(IVRPEncodedSolution solution, IRandom random, CancellationToken cancellationToken) { 99 return new SingleObjectiveEvaluationResult(ProblemInstance.Evaluate(solution).Quality);99 return ProblemInstance.Evaluate(solution); 100 100 } 101 101 … … 150 150 151 151 void ProblemInstanceParameter_ValueChanged(object sender, EventArgs e) { 152 //InitializeOperators();153 AttachProblemInstanceEventHandlers(); 154 155 //OnOperatorsChanged();152 InitializeOperators(); 153 AttachProblemInstanceEventHandlers(); 154 155 OnOperatorsChanged(); 156 156 } 157 157 … … 169 169 Operators.Add(new QualitySimilarityCalculator()); 170 170 Operators.Add(new PopulationSimilarityAnalyzer(Operators.OfType<ISolutionSimilarityCalculator>())); 171 Operators.AddRange(ProblemInstance.Operators.OfType<IAnalyzer>()); 171 172 } 172 173
Note: See TracChangeset
for help on using the changeset viewer.