Changeset 17321 for branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/Script Sources/GAQAPScriptSource.cs
- Timestamp:
- 10/06/19 22:51:53 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/Script Sources/GAQAPScriptSource.cs
r13408 r17321 1 1 using System; 2 2 using System.Linq; 3 3 using System.Threading; 4 4 using HeuristicLab.Analysis; 5 5 using HeuristicLab.Data; … … 42 42 for (int i = 0; i < popSize; i++) { 43 43 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); 45 45 } 46 46 var bestQuality = qualities.Min(); … … 52 52 nextGen[i] = PartiallyMatchedCrossover.Apply(random, parents[i * 2], parents[i * 2 + 1]); 53 53 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); 55 55 if (nextQual[i] < bestQuality) { 56 56 bestQuality = nextQual[i];
Note: See TracChangeset
for help on using the changeset viewer.