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.Knapsack/3.3/KnapsackProblem.cs

    r17270 r17320  
    2323using System.Collections.Generic;
    2424using System.Linq;
     25using System.Threading;
    2526using HEAL.Attic;
    2627using HeuristicLab.Analysis;
     
    9697    }
    9798
    98     public override double Evaluate(BinaryVector solution, IRandom random) {
     99    public override double Evaluate(BinaryVector solution, IRandom random, CancellationToken cancellationToken) {
    99100      var totalWeight = 0.0;
    100101      var totalValue = 0.0;
Note: See TracChangeset for help on using the changeset viewer.