Changeset 6760 for branches/PersistenceSpeedUp/HeuristicLab.Problems.VehicleRouting/3.3/Evaluators/VRPEvaluator.cs
- Timestamp:
- 09/14/11 13:59:25 (13 years ago)
- Location:
- branches/PersistenceSpeedUp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceSpeedUp
- Property svn:ignore
-
old new 12 12 *.psess 13 13 *.vsp 14 *.docstates
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/PersistenceSpeedUp/HeuristicLab.Problems.VehicleRouting
- Property svn:mergeinfo changed
-
branches/PersistenceSpeedUp/HeuristicLab.Problems.VehicleRouting/3.3/Evaluators/VRPEvaluator.cs
r5445 r6760 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.