Changeset 6838 for branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/PickupDelivery/PDRearrange
- Timestamp:
- 09/27/11 13:29:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/PickupDelivery/PDRearrange/PotvinPDRearrangeMoveMaker.cs
r6806 r6838 61 61 public static void InsertPair(PotvinEncoding solution, Tour tour, int source, int target, IVRPProblemInstance problemInstance, int positionToAvoid = -1, int positionToAvoid2 = -1) { 62 62 int stops = tour.Stops.Count; 63 VRPEvaluation eval = problemInstance.Evaluate (tour);63 VRPEvaluation eval = problemInstance.EvaluateTour(tour, solution); 64 64 double minCosts = double.MaxValue; 65 65 int sourceLocation = -1; … … 68 68 for (int i = 0; i <= stops; i++) { 69 69 tour.Stops.Insert(i, source); 70 VRPEvaluation tourEval = problemInstance.Evaluate (tour);70 VRPEvaluation tourEval = problemInstance.EvaluateTour(tour, solution); 71 71 double sourceCosts = tourEval.Quality - eval.Quality; 72 72
Note: See TracChangeset
for help on using the changeset viewer.