Changeset 4150 for trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Manipulators
- Timestamp:
- 08/04/10 16:11:59 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Manipulators
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Manipulators/AlbaPermutationManipulator.cs
r4068 r4150 28 28 [Item("AlbaPermutationManipulator", "An operator which manipulates an alba VRP representation.")] 29 29 [StorableClass] 30 public sealed class AlbaPermutationManipulator : VRPManipulator {30 public sealed class AlbaPermutationManipulator : AlbaManipulator { 31 31 public IValueLookupParameter<IPermutationManipulator> PermutationManipulatorParameter { 32 32 get { return (IValueLookupParameter<IPermutationManipulator>)Parameters["PermutationManipulator"]; } … … 39 39 40 40 public override IOperation Apply() { 41 IVRPEncoding solution = VRPSolutionParameter.ActualValue;42 if (!(solution is AlbaEncoding)) {43 VRPSolutionParameter.ActualValue = AlbaEncoding.ConvertFrom(solution);44 }45 46 41 OperationCollection next = new OperationCollection(base.Apply()); 47 42 IPermutationManipulator op = PermutationManipulatorParameter.ActualValue;
Note: See TracChangeset
for help on using the changeset viewer.