Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/18/19 16:11:21 (4 years ago)
Author:
mkommend
Message:

#2521: Refactored single-objective problems to use EvaluationResult instead of double as return type from Evaluate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.TravelingSalesman/3.3/TSP.cs

    r17335 r17382  
    8383    }
    8484
    85     public override double Evaluate(Permutation tour, IRandom random, CancellationToken cancellationToken) {
    86       return Evaluate(tour);
     85    public override ISingleObjectiveEvaluationResult Evaluate(Permutation tour, IRandom random, CancellationToken cancellationToken) {
     86      var quality = Evaluate(tour);
     87      return new SingleObjectiveEvaluationResult(quality);
    8788    }
    8889
Note: See TracChangeset for help on using the changeset viewer.