Changeset 17382 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.PTSP/3.3/EstimatedPTSP.cs
- Timestamp:
- 12/18/19 16:11:21 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.PTSP/3.3/EstimatedPTSP.cs
r17335 r17382 29 29 using HeuristicLab.Data; 30 30 using HeuristicLab.Encodings.PermutationEncoding; 31 using HeuristicLab.Optimization; 31 32 using HeuristicLab.Parameters; 32 33 using HeuristicLab.Problems.Instances; … … 56 57 set { RealizationsParameter.Value.Value = value; } 57 58 } 58 59 59 60 private ReadOnlyItemList<BoolArray> RealizationData { 60 61 get { return RealizationDataParameter.Value; } … … 102 103 } 103 104 104 public override double Evaluate(Permutation tour, IRandom random, CancellationToken cancellationToken) { 105 return Evaluate(tour, ProbabilisticTSPData, RealizationData, cancellationToken); 105 public override ISingleObjectiveEvaluationResult Evaluate(Permutation tour, IRandom random, CancellationToken cancellationToken) { 106 var quality = Evaluate(tour, ProbabilisticTSPData, RealizationData, cancellationToken); 107 return new SingleObjectiveEvaluationResult(quality); 106 108 } 107 109
Note: See TracChangeset
for help on using the changeset viewer.