Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/06/19 22:51:53 (5 years ago)
Author:
abeham
Message:

#2521: fixed compile errors in Tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/Script Sources/GAQAPScriptSource.cs

    r13408 r17321  
    11using System;
    22using System.Linq;
    3 
     3using System.Threading;
    44using HeuristicLab.Analysis;
    55using HeuristicLab.Data;
     
    4242    for (int i = 0; i < popSize; i++) {
    4343      population[i] = new Permutation(PermutationTypes.Absolute, qap.Weights.Rows, random);
    44       qualities[i] = qap.Evaluate(population[i]);
     44      qualities[i] = qap.Evaluate(population[i], CancellationToken.None);
    4545    }
    4646    var bestQuality = qualities.Min();
     
    5252        nextGen[i] = PartiallyMatchedCrossover.Apply(random, parents[i * 2], parents[i * 2 + 1]);
    5353        if (random.NextDouble() < mutationRate) Swap2Manipulator.Apply(random, nextGen[i]);
    54         nextQual[i] = qap.Evaluate(nextGen[i]);
     54        nextQual[i] = qap.Evaluate(nextGen[i], CancellationToken.None);
    5555        if (nextQual[i] < bestQuality) {
    5656          bestQuality = nextQual[i];
Note: See TracChangeset for help on using the changeset viewer.