Changeset 6607 for branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Crossovers/PotvinRouteBasedCrossover.cs
- Timestamp:
- 07/28/11 14:16:21 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Crossovers/PotvinRouteBasedCrossover.cs
r4752 r6607 46 46 47 47 protected override PotvinEncoding Crossover(IRandom random, PotvinEncoding parent1, PotvinEncoding parent2) { 48 bool allowInfeasible = AllowInfeasibleSolutions.Value.Value; 49 48 50 PotvinEncoding child = parent2.Clone() as PotvinEncoding; 49 51 … … 61 63 child.Unrouted.Add(city); 62 64 63 if (Repair(random, child, replacing ))65 if (Repair(random, child, replacing, ProblemInstance, allowInfeasible) || allowInfeasible) 64 66 return child; 65 67 else {
Note: See TracChangeset
for help on using the changeset viewer.