Changeset 17320 for branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3
- Timestamp:
- 10/04/19 17:31:54 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/EvaluationTracker.cs
r17226 r17320 23 23 using System; 24 24 using System.Collections.Generic; 25 using System.Threading; 26 using HEAL.Attic; 25 27 using HeuristicLab.Common; 26 28 using HeuristicLab.Core; 27 29 using HeuristicLab.Encodings.BinaryVectorEncoding; 28 30 using HeuristicLab.Optimization; 29 using HEAL.Attic;30 31 31 32 namespace HeuristicLab.Algorithms.ParameterlessPopulationPyramid { … … 93 94 } 94 95 96 public double Evaluate(BinaryVector vector, IRandom random) { 97 return Evaluate(vector, random, CancellationToken.None); 98 } 95 99 96 97 public double Evaluate(BinaryVector vector, IRandom random) { 100 public double Evaluate(BinaryVector vector, IRandom random, CancellationToken cancellationToken) { 98 101 if (Evaluations >= maxEvaluations) throw new OperationCanceledException("Maximum Evaluation Limit Reached"); 99 102 Evaluations++;
Note: See TracChangeset
for help on using the changeset viewer.