Changeset 6856 for branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/ExtendedPotvin/Creators
- Timestamp:
- 09/30/11 13:51:01 (13 years ago)
- Location:
- branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/ExtendedPotvin/Creators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/ExtendedPotvin/Creators/IterativeInsertionCreator.cs
r6851 r6856 113 113 114 114 if (pdp != null) { 115 stopIdx = result.FindBestInsertionPlace(currentTour, pdp. PickupDeliveryLocation[customers[index]]);116 currentTour.Stops.Insert(stopIdx, pdp. PickupDeliveryLocation[customers[index]]);115 stopIdx = result.FindBestInsertionPlace(currentTour, pdp.GetPickupDeliveryLocation(customers[index])); 116 currentTour.Stops.Insert(stopIdx, pdp.GetPickupDeliveryLocation(customers[index])); 117 117 } 118 118 … … 122 122 currentTour.Stops.Remove(customers[index]); 123 123 if (pdp != null) 124 currentTour.Stops.Remove(pdp. PickupDeliveryLocation[customers[index]]);124 currentTour.Stops.Remove(pdp.GetPickupDeliveryLocation(customers[index])); 125 125 126 126 if (currentTour.Stops.Count == 0) … … 131 131 currentTour.Stops.Add(customers[index]); 132 132 if (pdp != null) { 133 currentTour.Stops.Add(pdp. PickupDeliveryLocation[customers[index]]);133 currentTour.Stops.Add(pdp.GetPickupDeliveryLocation(customers[index])); 134 134 } 135 135 } -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/ExtendedPotvin/Creators/PushForwardInsertionCreator.cs
r6854 r6856 213 213 214 214 if (pdp != null) { 215 tour.Stops.Add(pdp. PickupDeliveryLocation[unroutedList[0]]);215 tour.Stops.Add(pdp.GetPickupDeliveryLocation(unroutedList[0])); 216 216 } 217 217 … … 234 234 bool feasible; 235 235 cost = tourCost + 236 problemInstance.GetInsertionCosts(eval, result, pdp. PickupDeliveryLocation[unroutedList[c]], 0, j, out feasible);236 problemInstance.GetInsertionCosts(eval, result, pdp.GetPickupDeliveryLocation(unroutedList[c]), 0, j, out feasible); 237 237 if (cost < minimumCost && feasible) { 238 238 minimumCost = cost; … … 260 260 tour.Stops.Insert(indexOfMinimumCost, unroutedList[indexOfCustomer]); 261 261 if (pdp != null) { 262 tour.Stops.Insert(indexOfMinimumCost2, pdp. PickupDeliveryLocation[unroutedList[indexOfCustomer]]);262 tour.Stops.Insert(indexOfMinimumCost2, pdp.GetPickupDeliveryLocation(unroutedList[indexOfCustomer])); 263 263 } 264 264 … … 275 275 tour.Stops.Add(unroutedList[0]); 276 276 if (pdp != null) { 277 tour.Stops.Add(pdp. PickupDeliveryLocation[unroutedList[0]]);277 tour.Stops.Add(pdp.GetPickupDeliveryLocation(unroutedList[0])); 278 278 } 279 279
Note: See TracChangeset
for help on using the changeset viewer.