Changeset 17954 for branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GAGroupingProblemSampleTest.cs
- Timestamp:
- 04/21/21 15:31:20 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GAGroupingProblemSampleTest.cs
r17356 r17954 64 64 } 65 65 66 public override doubleEvaluate(LinearLinkage solution, IRandom random, CancellationToken token) {66 public override ISingleObjectiveEvaluationResult Evaluate(LinearLinkage solution, IRandom random, CancellationToken token) { 67 67 var penalty = 0; 68 68 var groups = solution.GetGroups().ToList(); … … 74 74 var result = groups.Count; 75 75 if (penalty > 0) result += penalty + ProblemSize; 76 return result;76 return new SingleObjectiveEvaluationResult(result); 77 77 } 78 78 79 public override void Analyze( LinearLinkage[] solutions, double[] qualities, ResultCollection results, IRandom random) { }79 public override void Analyze(ISingleObjectiveSolutionContext<LinearLinkage>[] solutionContexts, IRandom random) { } 80 80 81 81 public override IEnumerable<LinearLinkage> GetNeighbors(LinearLinkage solution, IRandom random) {
Note: See TracChangeset
for help on using the changeset viewer.