Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/22/19 15:54:31 (4 years ago)
Author:
mkommend
Message:

#2521: Fixed bugs in solution context and adapted programmable problem template to include a cancellation token in the evaluate function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/SingleObjectiveProblem.cs

    r17363 r17366  
    113113    }
    114114
    115     public virtual double Evaluate(TEncodedSolution solution, IRandom random) {
     115    public double Evaluate(TEncodedSolution solution, IRandom random) {
    116116      return Evaluate(solution, random, CancellationToken.None);
    117117    }
    118118    public abstract double Evaluate(TEncodedSolution solution, IRandom random, CancellationToken cancellationToken);
    119119
    120     public virtual void Evaluate(ISingleObjectiveSolutionContext<TEncodedSolution> solutionContext, IRandom random) {
     120    public void Evaluate(ISingleObjectiveSolutionContext<TEncodedSolution> solutionContext, IRandom random) {
    121121      Evaluate(solutionContext, random, CancellationToken.None);
    122122    }
Note: See TracChangeset for help on using the changeset viewer.