Changeset 17577 for branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Operators/SingleObjectiveAnalyzer.cs
- Timestamp:
- 05/29/20 15:18:44 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Operators/SingleObjectiveAnalyzer.cs
r17381 r17577 79 79 80 80 var solutionContexts = scopes.Select(scope => { 81 var solution = ScopeUtil.GetEncodedSolution(scope, encoding); 82 var quality = ((DoubleValue)scope.Variables[QualityParameter.ActualName].Value).Value; 83 var solutionContext = new SingleObjectiveSolutionContextScope<TEncodedSolution>(scope, solution); 84 return solutionContext; 81 return ScopeUtil.CreateSolutionContext(scope, encoding); 85 82 }).ToArray(); 86 83 87 84 Analyze(solutionContexts, results, random); 85 foreach (var s in solutionContexts.Zip(scopes, Tuple.Create)) { 86 ScopeUtil.CopyToScope(s.Item2, s.Item1); 87 } 88 88 return base.Apply(); 89 89 }
Note: See TracChangeset
for help on using the changeset viewer.