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.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs

    r17320 r17382  
    109109    }
    110110
    111     public override double Evaluate(RealVector individual, IRandom random, CancellationToken cancellationToken) {
    112       return TestFunction.Evaluate(individual);
     111    public override ISingleObjectiveEvaluationResult Evaluate(RealVector individual, IRandom random, CancellationToken cancellationToken) {
     112      var quality = TestFunction.Evaluate(individual);
     113      return new SingleObjectiveEvaluationResult(quality);
    113114    }
    114115
Note: See TracChangeset for help on using the changeset viewer.