- Timestamp:
- 09/27/11 13:29:22 (13 years ago)
- Location:
- branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Crossovers/PotvinCrossover.cs
r6607 r6837 136 136 } 137 137 138 if (!allowInfeasible && !instance. Feasible(newTour))138 if (!allowInfeasible && !instance.TourFeasible(newTour, solution)) 139 139 return false; 140 140 … … 159 159 160 160 ChildParameter.ActualValue = Crossover(RandomParameter.ActualValue, parents[0] as PotvinEncoding, parents[1] as PotvinEncoding); 161 (ChildParameter.ActualValue as PotvinEncoding).Repair(); 161 162 162 163 return base.Apply(); -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Manipulators/PotvinManipulator.cs
r6607 r6837 95 95 96 96 Manipulate(RandomParameter.ActualValue, VRPToursParameter.ActualValue as PotvinEncoding); 97 (VRPToursParameter.ActualValue as PotvinEncoding).Repair(); 97 98 98 99 return base.Apply();
Note: See TracChangeset
for help on using the changeset viewer.