Changeset 7276 for branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/MultiDepotVRP/MDCVRP/MDCVRPTW
- Timestamp:
- 01/05/12 10:55:39 (13 years ago)
- Location:
- branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/MultiDepotVRP/MDCVRP/MDCVRPTW
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/MultiDepotVRP/MDCVRP/MDCVRPTW/MDCVRPPDTW/MDCVRPPDTWEvaluator.cs
r6883 r7276 50 50 TourInsertionInfo tourInfo = new TourInsertionInfo(solution.GetVehicleAssignment(solution.GetTourIndex(tour))); 51 51 eval.InsertionInfo.AddTourInsertionInfo(tourInfo); 52 double originalQuality = eval.Quality; 52 53 53 54 IHeterogenousCapacitatedProblemInstance cvrpInstance = instance as IHeterogenousCapacitatedProblemInstance; … … 183 184 eval.Quality += time * vrptw.TimeFactor.Value; 184 185 tourInfo.Penalty = tourPenalty; 186 tourInfo.Quality = eval.Quality - originalQuality; 185 187 } 186 188 -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/MultiDepotVRP/MDCVRP/MDCVRPTW/MDCVRPTWEvaluator.cs
r6883 r7276 54 54 TourInsertionInfo tourInfo = new TourInsertionInfo(solution.GetVehicleAssignment(solution.GetTourIndex(tour))); 55 55 eval.InsertionInfo.AddTourInsertionInfo(tourInfo); 56 double originalQuality = eval.Quality; 56 57 57 58 IHeterogenousCapacitatedProblemInstance cvrpInstance = instance as IHeterogenousCapacitatedProblemInstance; … … 163 164 eval.Quality += time * vrptw.TimeFactor.Value; 164 165 tourInfo.Penalty = tourPenalty; 166 tourInfo.Quality = eval.Quality - originalQuality; 165 167 } 166 168
Note: See TracChangeset
for help on using the changeset viewer.