Changeset 4284
- Timestamp:
- 08/23/10 11:32:15 (14 years ago)
- Location:
- branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Manipulators/LambdaInterchangeManipulator.cs
r4230 r4284 110 110 Tour route2 = tours[route2Index]; 111 111 112 int length1 = rand.Next( Math.Min(lambda + 1, route1.Cities.Count + 1));112 int length1 = rand.Next(1, Math.Min(lambda + 1, route1.Cities.Count + 1)); 113 113 int index1 = rand.Next(route1.Cities.Count - length1 + 1); 114 114 -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/LambdaInterchange/StochasticLambdaInterchangeSingleMoveGenerator.cs
r4230 r4284 65 65 Tour route2 = tours[route2Index]; 66 66 67 int length1 = rand.Next( Math.Min(lambda + 1, route1.Cities.Count + 1));67 int length1 = rand.Next(1, Math.Min(lambda + 1, route1.Cities.Count + 1)); 68 68 int index1 = rand.Next(route1.Cities.Count - length1 + 1); 69 69
Note: See TracChangeset
for help on using the changeset viewer.