- Timestamp:
- 06/20/11 13:36:49 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Evaluators/VRPEvaluator.cs
r5445 r6449 116 116 DoubleArray serviceTimeArray, DoubleArray readyTimeArray, DoubleArray demandArray, DoubleValue capacity, 117 117 DoubleValue fleetUsageFactor, DoubleValue timeFactor, DoubleValue distanceFactor, DoubleValue overloadPenalty, DoubleValue tardinessPenalty, 118 D oubleMatrix coordinates, IParameter distanceMatrix, BoolValue useDistanceMatrix) {118 DistanceMatrix distMatrix) { 119 119 TourEvaluation eval = new TourEvaluation(); 120 120 … … 140 140 141 141 //drive there 142 double currentDistace = VRPUtilities.GetDistance(start, end, coordinates, distanceMatrix, useDistanceMatrix);142 double currentDistace = VRPUtilities.GetDistance(start, end, distMatrix); 143 143 distance += currentDistace; 144 144 time += currentDistace; … … 199 199 sumEval.Tardiness = 0; 200 200 201 DistanceMatrix distMatrix = VRPUtilities.GetDistanceMatrix(coordinates, distanceMatrix, useDistanceMatrix); 202 201 203 foreach (Tour tour in solution.GetTours(distanceMatrix as ILookupParameter<DoubleMatrix>)) { 202 204 TourEvaluation eval = EvaluateTour(tour, dueTimeArray, serviceTimeArray, readyTimeArray, demandArray, capacity, 203 205 fleetUsageFactor, timeFactor, distanceFactor, overloadPenalty, tardinessPenalty, 204 coordinates, distanceMatrix, useDistanceMatrix);206 distMatrix); 205 207 sumEval.Quality += eval.Quality; 206 208 sumEval.Distance += eval.Distance;
Note: See TracChangeset
for help on using the changeset viewer.