Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/04/19 17:31:54 (4 years ago)
Author:
mkommend
Message:

#2521: Added cancellation token to evaluate function of problems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/MultiObjectiveProgrammableProblem.cs

    r17317 r17320  
    2222using System.Collections.Generic;
    2323using System.Drawing;
     24using System.Threading;
    2425using HEAL.Attic;
    2526using HeuristicLab.Common;
     
    118119      return ProblemDefinition.Evaluate(individual, random);
    119120    }
     121    public override double[] Evaluate(TEncodedSolution individual, IRandom random, CancellationToken cancellationToken) {
     122      return ProblemDefinition.Evaluate(individual, random, cancellationToken);
     123    }
    120124
    121125    public override void Analyze(TEncodedSolution[] individuals, double[][] qualities, ResultCollection results, IRandom random) {
Note: See TracChangeset for help on using the changeset viewer.