Changeset 8784 for branches/DynamicVehicleRouting
- Timestamp:
- 10/11/12 09:10:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DynamicVehicleRouting/HeuristicLab.PDPSimulation/3.3/Operators/DialARideEvaluator.cs
r8782 r8784 181 181 pickupReady = readyTime[location + depots - 1]; 182 182 } 183 leadTimes.Add(time - pickupReady);183 leadTimes.Add(time - currentServiceTime - pickupReady); 184 184 } 185 185 } else { … … 207 207 double leadTime = 0; 208 208 if (leadTimes.Count > 0) 209 leadTime = leadTimes. Average();209 leadTime = leadTimes.Sum(); 210 210 eval.Quality += leadTime * LeadTimeFactorParameter.Value.Value; 211 211 … … 217 217 tourPenalty += penalty; 218 218 219 (eval as CVRPTWEvaluation).Tardiness += tardiness;219 //(eval as CVRPTWEvaluation).Tardiness += tardiness; 220 220 (eval as CVRPTWEvaluation).TravelTime += time; 221 221 222 penalty = tardiness;223 eval.Penalty += penalty;224 eval.Quality += penalty;225 tourPenalty += penalty;222 //penalty = tardiness; 223 //eval.Penalty += penalty; 224 eval.Quality += tardiness; 225 //tourPenalty += penalty; 226 226 227 227 (eval as CVRPPDTWEvaluation).PickupViolations += pickupViolations;
Note: See TracChangeset
for help on using the changeset viewer.