Changeset 13420 for trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/PickupDelivery
- Timestamp:
- 11/30/15 12:43:48 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/PickupDelivery/PDExchange/PotvinPDExchangeSingleMoveGenerator.cs
r12012 r13420 70 70 int oldTourIndex = individual.Tours.IndexOf(oldTour); 71 71 72 int max = individual.Tours.Count; 73 if (individual.Tours.Count < problemInstance.Vehicles.Value) 74 max = max - 1; 72 int max = individual.Tours.Count - 1; 75 73 76 74 int newTourIndex = rand.Next(max);
Note: See TracChangeset
for help on using the changeset viewer.