Changeset 6859
- Timestamp:
- 09/30/11 15:46:29 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Manipulators/PotvinCustomerRelocationManipulator.cs
r6856 r6859 161 161 162 162 for (int i = 0; i < route1.Stops.Count; i++) { 163 int start = route1.Stops[i - 1]; 163 int start = 0; 164 if (i > 0) 165 start = route1.Stops[i - 1]; 164 166 int end = route1.Stops[i]; 165 167 … … 181 183 time += currentWaitingTime; 182 184 183 //service 184 double currentServiceTime = serviceTimes[end - 1]; 185 time += currentServiceTime; 185 if (end > 0) { 186 //service 187 double currentServiceTime = serviceTimes[end - 1]; 188 time += currentServiceTime; 189 } 186 190 } 187 191
Note: See TracChangeset
for help on using the changeset viewer.