Changeset 17577 for branches/2521_ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorProblem.cs
- Timestamp:
- 05/29/20 15:18:44 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorProblem.cs
r17570 r17577 71 71 72 72 public override void Analyze(ISingleObjectiveSolutionContext<BinaryVector>[] solutionContexts, ResultCollection results, IRandom random) { 73 base.Analyze(solutionContexts, results, random); 73 74 var best = GetBest(solutionContexts); 74 75 var currentBest = BestResultParameter.ActualValue; 75 76 if (currentBest == null || IsBetter(best.EvaluationResult.Quality, currentBest.EvaluationResult.Quality)) 76 BestResultParameter.ActualValue = (ISingleObjectiveSolutionContext<BinaryVector>)best.Clone(); 77 BestResultParameter.ActualValue = new SingleObjectiveSolutionContext<BinaryVector>( 78 (BinaryVector)best.EncodedSolution.Clone(), (ISingleObjectiveEvaluationResult)best.EvaluationResult.Clone()); 77 79 } 78 80
Note: See TracChangeset
for help on using the changeset viewer.