Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/18/19 16:11:21 (5 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.QuadraticAssignment/3.3/QuadraticAssignmentProblem.cs

    r17320 r17382  
    136136    }
    137137
    138     public override double Evaluate(Permutation assignment, IRandom random, CancellationToken cancellationToken) {
    139       return Evaluate(assignment, cancellationToken);
     138    public override ISingleObjectiveEvaluationResult Evaluate(Permutation assignment, IRandom random, CancellationToken cancellationToken) {
     139      var quality = Evaluate(assignment, cancellationToken);
     140      return new SingleObjectiveEvaluationResult(quality);
    140141    }
    141142
Note: See TracChangeset for help on using the changeset viewer.