- Timestamp:
- 08/06/10 16:08:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Evaluators/VRPEvaluator.cs
r4154 r4174 104 104 } 105 105 106 privatestatic TourEvaluation EvaluateTour(Tour tour, DoubleArray dueTimeArray,106 internal static TourEvaluation EvaluateTour(Tour tour, DoubleArray dueTimeArray, 107 107 DoubleArray serviceTimeArray, DoubleArray readyTimeArray, DoubleArray demandArray, DoubleValue capacity, 108 108 DoubleValue fleetUsageFactor, DoubleValue timeFactor, DoubleValue distanceFactor, DoubleValue overloadPenalty, DoubleValue tardinessPenalty, … … 122 122 123 123 //simulate a tour, start and end at depot 124 for (int i = 0; i <= tour.C ount; i++) {124 for (int i = 0; i <= tour.Cities.Count; i++) { 125 125 int start = 0; 126 126 if(i > 0) 127 start = tour [i - 1].Value;127 start = tour.Cities[i - 1]; 128 128 int end = 0; 129 if (i < tour.Count)130 end = tour [i].Value;129 if (i < tour.Cities.Count) 130 end = tour.Cities[i]; 131 131 132 132 //drive there
Note: See TracChangeset
for help on using the changeset viewer.