Changeset 11240 for branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Orienteering/3.3/Analyzers/BestOrienteeringSolutionAnalyser.cs
- Timestamp:
- 07/30/14 14:59:20 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Orienteering/3.3/Analyzers/BestOrienteeringSolutionAnalyser.cs
r11190 r11240 95 95 var solution = BestSolutionParameter.ActualValue; 96 96 var coordinates = CoordinatesParameter.ActualValue; 97 var scores = ScoresParameter.ActualValue; 97 98 if (solution == null) { 98 99 solution = new OrienteeringSolution( 99 100 (IntegerVector)solutions[bestIndex].Clone(), 100 101 coordinates, 102 scores, 101 103 new DoubleValue(qualities[bestIndex].Value)); 102 104 BestSolutionParameter.ActualValue = solution; … … 105 107 if (solution.Quality.Value < qualities[bestIndex].Value) { 106 108 solution.Coordinates = coordinates; 109 solution.Scores = scores; 107 110 solution.IntegerVector = (IntegerVector)solutions[bestIndex].Clone(); 108 111 solution.Quality.Value = qualities[bestIndex].Value;
Note: See TracChangeset
for help on using the changeset viewer.