Changeset 4231 for branches/VRP
- Timestamp:
- 08/16/10 17:04:17 (14 years ago)
- Location:
- branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/GVR/Manipulators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/GVR/Manipulators/GVRDisplacementManipulator.cs
r4230 r4231 46 46 tour.Cities.RemoveRange(breakPoint1, length); 47 47 //with a probability of 1/(2*V) create a new tour, else insert at another position 48 if (individual.GetTours().Count < VehiclesParameter.ActualValue.Value && 48 if (individual.GetTours().Count > 0 && 49 individual.GetTours().Count < VehiclesParameter.ActualValue.Value && 49 50 random.Next(individual.GetTours().Count * 2) == 0) { 50 51 Tour newTour = new Tour(); -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/GVR/Manipulators/GVRInsertionManipulator.cs
r4230 r4231 46 46 47 47 //with a probability of 1/(2*V) create a new tour, else insert at another position 48 if (individual.GetTours().Count < VehiclesParameter.ActualValue.Value && 48 if (individual.GetTours().Count > 0 && 49 individual.GetTours().Count < VehiclesParameter.ActualValue.Value && 49 50 random.Next(individual.GetTours().Count * 2) == 0) { 50 51 Tour newTour = new Tour();
Note: See TracChangeset
for help on using the changeset viewer.