Changeset 6459 for trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Potvin/Crossovers/PotvinSequenceBasedCrossover.cs
- Timestamp:
- 06/21/11 10:27:03 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Potvin/Crossovers/PotvinSequenceBasedCrossover.cs
r6449 r6459 51 51 DoubleValue capacity = CapacityParameter.ActualValue; 52 52 53 bool allowInfeasible = AllowInfeasibleSolutions.Value.Value; 54 53 55 PotvinEncoding child = parent1.Clone() as PotvinEncoding; 54 56 Tour newTour = new Tour(); … … 79 81 child.Unrouted.Add(city); 80 82 81 if (Repair(random, child, newTour, distMatrix, dueTime, readyTime, serviceTime, demand, capacity )) {83 if (Repair(random, child, newTour, distMatrix, dueTime, readyTime, serviceTime, demand, capacity, allowInfeasible) || allowInfeasible) { 82 84 return child; 83 85 } else {
Note: See TracChangeset
for help on using the changeset viewer.