- Timestamp:
- 01/07/14 15:05:58 (11 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Zhu
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Zhu/Crossovers/ZhuCrossover.cs
r9456 r10298 50 50 protected abstract ZhuEncoding Crossover(IRandom random, ZhuEncoding parent1, ZhuEncoding parent2); 51 51 52 public override IOperation Apply() {52 public override IOperation InstrumentedApply() { 53 53 ItemArray<IVRPEncoding> parents = new ItemArray<IVRPEncoding>(ParentsParameter.ActualValue.Length); 54 54 for (int i = 0; i < ParentsParameter.ActualValue.Length; i++) { … … 66 66 Crossover(RandomParameter.ActualValue, parents[0] as ZhuEncoding, parents[1] as ZhuEncoding); 67 67 68 return base. Apply();68 return base.InstrumentedApply(); 69 69 } 70 70 } -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Zhu/Manipulators/ZhuManipulator.cs
r9456 r10298 50 50 protected abstract void Manipulate(IRandom random, ZhuEncoding individual); 51 51 52 public override IOperation Apply() {52 public override IOperation InstrumentedApply() { 53 53 IVRPEncoding solution = VRPToursParameter.ActualValue; 54 54 if (!(solution is ZhuEncoding)) { … … 58 58 Manipulate(RandomParameter.ActualValue, VRPToursParameter.ActualValue as ZhuEncoding); 59 59 60 return base. Apply();60 return base.InstrumentedApply(); 61 61 } 62 62 }
Note: See TracChangeset
for help on using the changeset viewer.