Changeset 7276 for branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP
- Timestamp:
- 01/05/12 10:55:39 (13 years ago)
- Location:
- branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPEvaluator.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 IHomogenousCapacitatedProblemInstance cvrpInstance = instance as IHomogenousCapacitatedProblemInstance; … … 101 102 eval.Quality += penalty; 102 103 tourInfo.Penalty = penalty; 104 tourInfo.Quality = eval.Quality - originalQuality; 103 105 } 104 106 -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPPDTW/CVRPPDTWEvaluator.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 IHomogenousCapacitatedProblemInstance cvrpInstance = instance as IHomogenousCapacitatedProblemInstance; … … 168 169 eval.Quality += time * vrptw.TimeFactor.Value; 169 170 tourInfo.Penalty = tourPenalty; 171 tourInfo.Quality = eval.Quality - originalQuality; 170 172 } 171 173 -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPTWEvaluator.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 IHomogenousCapacitatedProblemInstance cvrpInstance = instance as IHomogenousCapacitatedProblemInstance; … … 151 152 eval.Quality += time * vrptw.TimeFactor.Value; 152 153 tourInfo.Penalty = tourPenalty; 154 tourInfo.Quality = eval.Quality - originalQuality; 153 155 } 154 156
Note: See TracChangeset
for help on using the changeset viewer.