Changeset 6855 for branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPPDTW/CVRPPDTWEvaluator.cs
- Timestamp:
- 09/30/11 12:55:55 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPPDTW/CVRPPDTWEvaluator.cs
r6851 r6855 75 75 int pickupViolations = 0; 76 76 77 double tourStartTime = readyTime[0]; 78 time = tourStartTime; 79 77 80 //simulate a tour, start and end at depot 78 81 for (int i = 0; i <= tour.Stops.Count; i++) { … … 130 133 131 134 double spareCapacity = capacity - currentLoad; 132 CVRPPDTWInsertionInfo stopInfo = new CVRPPDTWInsertionInfo(start, end, spareCapacity, arrivalTime, time, spareTime, waitTime, new List<int>(stops.Keys), arrivalSpareCapacity); 135 CVRPPDTWInsertionInfo stopInfo = new CVRPPDTWInsertionInfo(start, end, spareCapacity, tourStartTime, 136 arrivalTime, time, spareTime, waitTime, new List<int>(stops.Keys), arrivalSpareCapacity); 133 137 tourInfo.AddStopInsertionInfo(stopInfo); 134 138 … … 215 219 if (index > 0) 216 220 time = (tourInsertionInfo.GetStopInsertionInfo(index - 1) as CVRPTWInsertionInfo).LeaveTime; 221 else 222 time = insertionInfo.TourStartTime; 223 217 224 time += instance.GetDistance(insertionInfo.Start, customer, solution); 218 225 if (time > dueTime[customer]) {
Note: See TracChangeset
for help on using the changeset viewer.