Changeset 13457 for stable/HeuristicLab.Problems.VehicleRouting
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 13420
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.VehicleRouting
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.VehicleRouting merged: 13420
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/PickupDelivery/PDExchange/PotvinPDExchangeSingleMoveGenerator.cs
r12009 r13457 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.