Changeset 6607 for branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Manipulators/PotvinManipulator.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/Manipulators/PotvinManipulator.cs
r4752 r6607 38 38 } 39 39 40 public IValueParameter<BoolValue> AllowInfeasibleSolutions { 41 get { return (IValueParameter<BoolValue>)Parameters["AllowInfeasibleSolutions"]; } 42 } 43 40 44 [StorableConstructor] 41 45 protected PotvinManipulator(bool deserializing) : base(deserializing) { } … … 43 47 public PotvinManipulator() { 44 48 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic manipulation operators.")); 49 Parameters.Add(new ValueParameter<BoolValue>("AllowInfeasibleSolutions", "Indicates if infeasible solutions should be allowed.", new BoolValue(false))); 45 50 } 46 51 … … 78 83 } 79 84 80 protected bool FindInsertionPlace(PotvinEncoding individual, int city, int routeToAvoid, out int route, out int place) {85 protected bool FindInsertionPlace(PotvinEncoding individual, int city, int routeToAvoid, bool allowInfeasible, out int route, out int place) { 81 86 return individual.FindInsertionPlace( 82 city, routeToAvoid, out route, out place);87 city, routeToAvoid, allowInfeasible, out route, out place); 83 88 } 84 89
Note: See TracChangeset
for help on using the changeset viewer.