Changeset 3692
- Timestamp:
- 05/07/10 02:43:05 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/Analyzers/BestTSPSolutionAnalyzer.cs
r3663 r3692 72 72 PathTSPTour tour = BestSolutionParameter.ActualValue; 73 73 if (tour == null) { 74 tour = new PathTSPTour(coordinates, permutations[i], qualities[i]);74 tour = new PathTSPTour(coordinates, (Permutation)permutations[i].Clone(), new DoubleValue(qualities[i].Value)); 75 75 BestSolutionParameter.ActualValue = tour; 76 76 results.Add(new Result("Best TSP Solution", tour)); … … 78 78 if (tour.Quality.Value > qualities[i].Value) { 79 79 tour.Coordinates = coordinates; 80 tour.Permutation = permutations[i];81 tour.Quality = qualities[i];80 tour.Permutation = (Permutation)permutations[i].Clone(); 81 tour.Quality.Value = qualities[i].Value; 82 82 results["Best TSP Solution"].Value = tour; 83 83 }
Note: See TracChangeset
for help on using the changeset viewer.