Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/04/19 17:31:54 (5 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/SingleObjectiveProgrammableProblem.cs

    r17270 r17320  
    2222using System.Collections.Generic;
    2323using System.Drawing;
     24using System.Threading;
    2425using HEAL.Attic;
    2526using HeuristicLab.Analysis;
     
    107108    }
    108109
    109     public override double Evaluate(TEncodedSolution individual, IRandom random) {
    110       return ProblemDefinition.Evaluate(individual, random);
     110    public override double Evaluate(TEncodedSolution individual, IRandom random, CancellationToken cancellationToken) {
     111      return ProblemDefinition.Evaluate(individual, random, cancellationToken);
    111112    }
    112113
Note: See TracChangeset for help on using the changeset viewer.