Changeset 17698 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Manipulators/PotvinVehicleAssignmentManipulator.cs
- Timestamp:
- 07/24/20 00:58:42 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Manipulators/PotvinVehicleAssignmentManipulator.cs
r17226 r17698 61 61 62 62 public override IOperation InstrumentedApply() { 63 IVRPEncod ingsolution = VRPToursParameter.ActualValue;64 if (!(solution is PotvinEncod ing)) {65 VRPToursParameter.ActualValue = PotvinEncod ing.ConvertFrom(solution, ProblemInstance);63 IVRPEncodedSolution solution = VRPToursParameter.ActualValue; 64 if (!(solution is PotvinEncodedSolution)) { 65 VRPToursParameter.ActualValue = PotvinEncodedSolution.ConvertFrom(solution, ProblemInstance); 66 66 } 67 67 68 68 OperationCollection next = new OperationCollection(base.InstrumentedApply()); 69 69 70 VehicleAssignmentParameter.ActualValue = (VRPToursParameter.ActualValue as PotvinEncod ing).VehicleAssignment;70 VehicleAssignmentParameter.ActualValue = (VRPToursParameter.ActualValue as PotvinEncodedSolution).VehicleAssignment; 71 71 VehicleAssignmentManipuator.Value.PermutationParameter.ActualName = VehicleAssignmentParameter.ActualName; 72 72 next.Insert(0, ExecutionContext.CreateOperation(VehicleAssignmentManipuator.Value));
Note: See TracChangeset
for help on using the changeset viewer.