Changeset 4179 for trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Potvin/Manipulators/PotvinManipulator.cs
- Timestamp:
- 08/09/10 18:08:14 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Potvin/Manipulators/PotvinManipulator.cs
r4174 r4179 28 28 29 29 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin { 30 [Item("PotvinManipulator", "A VRP manipulation operation on a Potvin encoding.")] 30 31 [StorableClass] 31 32 public abstract class PotvinManipulator : VRPManipulator, IStochasticOperator { … … 33 34 get { return (LookupParameter<IRandom>)Parameters["Random"]; } 34 35 } 36 37 [StorableConstructor] 38 protected PotvinManipulator(bool deserializing) : base(deserializing) { } 35 39 36 40 public PotvinManipulator() { … … 76 80 77 81 public override IOperation Apply() { 78 IVRPEncoding solution = VRP SolutionParameter.ActualValue;82 IVRPEncoding solution = VRPToursParameter.ActualValue; 79 83 if (!(solution is PotvinEncoding)) { 80 VRP SolutionParameter.ActualValue = PotvinEncoding.ConvertFrom(solution);84 VRPToursParameter.ActualValue = PotvinEncoding.ConvertFrom(solution); 81 85 } 82 86 83 Manipulate(RandomParameter.ActualValue, VRP SolutionParameter.ActualValue as PotvinEncoding);87 Manipulate(RandomParameter.ActualValue, VRPToursParameter.ActualValue as PotvinEncoding); 84 88 85 89 return base.Apply();
Note: See TracChangeset
for help on using the changeset viewer.