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.Algorithms.DataAnalysis/3.4/GaussianProcess/GaussianProcessCovarianceOptimizationProblem.cs

    r17320 r17382  
    198198    private readonly object syncRoot = new object();
    199199    // Does not produce the same result for the same seed when using parallel engine (see below)!
    200     public override double Evaluate(ISymbolicExpressionTree tree, IRandom random, CancellationToken cancellationToken) {
     200    public override ISingleObjectiveEvaluationResult Evaluate(ISymbolicExpressionTree tree, IRandom random, CancellationToken cancellationToken) {
    201201      var meanFunction = new MeanConst();
    202202      var problemData = ProblemData;
     
    260260      UpdateBestSoFar(bestObjValue[0], bestHyperParameters, meanFunction, covarianceFunction);
    261261
    262       return bestObjValue[0];
     262      var quality = bestObjValue[0];
     263      return new SingleObjectiveEvaluationResult(quality);
    263264    }
    264265
Note: See TracChangeset for help on using the changeset viewer.