Changeset 4847 for trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Evaluators/VRPEvaluator.cs
- Timestamp:
- 11/19/10 11:12:40 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Evaluators/VRPEvaluator.cs
r4722 r4847 116 116 DoubleArray serviceTimeArray, DoubleArray readyTimeArray, DoubleArray demandArray, DoubleValue capacity, 117 117 DoubleValue fleetUsageFactor, DoubleValue timeFactor, DoubleValue distanceFactor, DoubleValue overloadPenalty, DoubleValue tardinessPenalty, 118 DoubleMatrix coordinates, I LookupParameter<DoubleMatrix>distanceMatrix, BoolValue useDistanceMatrix) {118 DoubleMatrix coordinates, IParameter distanceMatrix, BoolValue useDistanceMatrix) { 119 119 TourEvaluation eval = new TourEvaluation(); 120 120 … … 190 190 DoubleArray serviceTimeArray, DoubleArray readyTimeArray, DoubleArray demandArray, DoubleValue capacity, 191 191 DoubleValue fleetUsageFactor, DoubleValue timeFactor, DoubleValue distanceFactor, DoubleValue overloadPenalty, DoubleValue tardinessPenalty, 192 DoubleMatrix coordinates, I LookupParameter<DoubleMatrix>distanceMatrix, BoolValue useDistanceMatrix) {192 DoubleMatrix coordinates, IParameter distanceMatrix, BoolValue useDistanceMatrix) { 193 193 TourEvaluation sumEval = new TourEvaluation(); 194 194 sumEval.Distance = 0; … … 199 199 sumEval.Tardiness = 0; 200 200 201 foreach (Tour tour in solution.GetTours(distanceMatrix )) {201 foreach (Tour tour in solution.GetTours(distanceMatrix as ILookupParameter<DoubleMatrix>)) { 202 202 TourEvaluation eval = EvaluateTour(tour, dueTimeArray, serviceTimeArray, readyTimeArray, demandArray, capacity, 203 203 fleetUsageFactor, timeFactor, distanceFactor, overloadPenalty, tardinessPenalty,
Note: See TracChangeset
for help on using the changeset viewer.