Changeset 17698 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Zhu/Manipulators
- Timestamp:
- 07/24/20 00:58:42 (4 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Zhu/Manipulators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Zhu/Manipulators/ZhuManipulator.cs
r17226 r17698 48 48 } 49 49 50 protected abstract void Manipulate(IRandom random, ZhuEncod ingindividual);50 protected abstract void Manipulate(IRandom random, ZhuEncodedSolution individual); 51 51 52 52 public override IOperation InstrumentedApply() { 53 IVRPEncod ingsolution = VRPToursParameter.ActualValue;54 if (!(solution is ZhuEncod ing)) {55 VRPToursParameter.ActualValue = ZhuEncod ing.ConvertFrom(solution, ProblemInstance);53 IVRPEncodedSolution solution = VRPToursParameter.ActualValue; 54 if (!(solution is ZhuEncodedSolution)) { 55 VRPToursParameter.ActualValue = ZhuEncodedSolution.ConvertFrom(solution, ProblemInstance); 56 56 } 57 57 58 Manipulate(RandomParameter.ActualValue, VRPToursParameter.ActualValue as ZhuEncod ing);58 Manipulate(RandomParameter.ActualValue, VRPToursParameter.ActualValue as ZhuEncodedSolution); 59 59 60 60 return base.InstrumentedApply(); -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Zhu/Manipulators/ZhuPermutationManipulator.cs
r17226 r17698 50 50 } 51 51 52 protected override void Manipulate(IRandom random, ZhuEncod ingindividual) {52 protected override void Manipulate(IRandom random, ZhuEncodedSolution individual) { 53 53 InnerManipulatorParameter.ActualValue.PermutationParameter.ActualName = VRPToursParameter.ActualName; 54 54
Note: See TracChangeset
for help on using the changeset viewer.