Changeset 17698 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/GVR/Manipulators/GVRManipulator.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/GVR/Manipulators/GVRManipulator.cs
r17226 r17698 47 47 } 48 48 49 protected abstract void Manipulate(IRandom random, GVREncod ingindividual);49 protected abstract void Manipulate(IRandom random, GVREncodedSolution individual); 50 50 51 51 public override IOperation InstrumentedApply() { 52 IVRPEncod ingsolution = VRPToursParameter.ActualValue;53 if (!(solution is GVREncod ing)) {54 VRPToursParameter.ActualValue = GVREncod ing.ConvertFrom(solution, ProblemInstance);52 IVRPEncodedSolution solution = VRPToursParameter.ActualValue; 53 if (!(solution is GVREncodedSolution)) { 54 VRPToursParameter.ActualValue = GVREncodedSolution.ConvertFrom(solution, ProblemInstance); 55 55 } 56 56 57 Manipulate(RandomParameter.ActualValue, VRPToursParameter.ActualValue as GVREncod ing);57 Manipulate(RandomParameter.ActualValue, VRPToursParameter.ActualValue as GVREncodedSolution); 58 58 59 59 return base.InstrumentedApply();
Note: See TracChangeset
for help on using the changeset viewer.