Changeset 4286
- Timestamp:
- 08/23/10 13:41:26 (14 years ago)
- Location:
- branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/AlbaEncoding.cs
r4268 r4286 64 64 65 65 public int MaxVehicles { 66 get { return Length - Cities ; }66 get { return Length - Cities + 1; } 67 67 } 68 68 … … 127 127 public static AlbaEncoding ConvertFrom(List<int> routeParam) { 128 128 List<int> route = new List<int>(routeParam); 129 route.RemoveAt(routeParam.Count - 1); 129 130 130 131 int cities = 0; -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Manipulators/LambdaInterchangeManipulator.cs
r4284 r4286 110 110 Tour route2 = tours[route2Index]; 111 111 112 int length1 = rand.Next( 1,Math.Min(lambda + 1, route1.Cities.Count + 1));112 int length1 = rand.Next(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
r4284 r4286 65 65 Tour route2 = tours[route2Index]; 66 66 67 int length1 = rand.Next( 1,Math.Min(lambda + 1, route1.Cities.Count + 1));67 int length1 = rand.Next(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.