- Timestamp:
- 09/27/11 13:42:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Creators/PushForwardInsertionCreator.cs
r6838 r6839 152 152 Tour tour = new Tour(); 153 153 result.Tours.Add(tour); 154 154 155 tour.Stops.Add(unroutedList[0]); 156 157 if (pdp != null) { 158 tour.Stops.Add(pdp.PickupDeliveryLocation[unroutedList[0]]); 159 } 160 155 161 unroutedList.RemoveAt(0); 156 162 … … 196 202 if (indexOfMinimumCost != -1) { 197 203 tour.Stops.Insert(indexOfMinimumCost, unroutedList[indexOfCustomer]); 198 199 204 if (pdp != null) { 200 205 tour.Stops.Insert(indexOfMinimumCost2, pdp.PickupDeliveryLocation[unroutedList[indexOfCustomer]]); … … 202 207 203 208 unroutedList.RemoveAt(indexOfCustomer); 204 costList.RemoveAt(indexOfCustomer);205 209 } else { // no feasible customer found 206 210 tour = new Tour(); 207 211 result.Tours.Add(tour); 212 208 213 tour.Stops.Add(unroutedList[0]); 214 if (pdp != null) { 215 tour.Stops.Add(pdp.PickupDeliveryLocation[unroutedList[0]]); 216 } 217 209 218 unroutedList.RemoveAt(0); 210 219 }
Note: See TracChangeset
for help on using the changeset viewer.