Changeset 14645
- Timestamp:
- 02/03/17 14:47:52 (8 years ago)
- Location:
- branches/HeuristicLab.VRPEnhancements
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.VRPEnhancements/HeuristicLab.Problems.VehicleRouting.Views/3.4/VRPSolutionView.cs
r14185 r14645 93 93 if (Content != null && Content.Solution != null) { 94 94 foreach (Tour tour in Content.Solution.GetTours()) { 95 int tourIndex = Content.Solution.GetTourIndex(tour); 96 int vehidleIndex = Content.Solution.GetVehicleAssignment(tourIndex); 97 sb.AppendFormat("Vehicle #{0}:", vehidleIndex); 95 98 foreach (int city in tour.Stops) { 99 sb.Append(" "); 96 100 sb.Append(city); 97 sb.Append(" ");98 101 } 99 102 sb.AppendLine(); -
branches/HeuristicLab.VRPEnhancements/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Creators/GeographicDistanceClusterCreator.cs
r14559 r14645 74 74 // (a) shuffle 75 75 cluster.ShuffleInPlace(random); 76 newTour.Stops.AddRange(cluster);77 76 foreach (var customer in cluster) { 78 77 newTour.Stops.Add(customer + 1); -
branches/HeuristicLab.VRPEnhancements/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Creators/TemporalDistanceClusterCreator.cs
r14559 r14645 73 73 // (a) shuffle 74 74 cluster.ShuffleInPlace(random); 75 newTour.Stops.AddRange(cluster);76 75 foreach (var customer in cluster) { 77 76 newTour.Stops.Add(customer + 1);
Note: See TracChangeset
for help on using the changeset viewer.