Changeset 5177 for branches/ParallelEngine/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Zhu/Crossovers/ZhuCrossover.cs
- Timestamp:
- 12/26/10 03:51:30 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ParallelEngine/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Zhu/Crossovers/ZhuCrossover.cs
r4722 r5177 45 45 } 46 46 47 protected abstract ZhuEncoding Crossover(I Random random, ZhuEncoding parent1, ZhuEncoding parent2);47 protected abstract ZhuEncoding Crossover(IExecutionContext context, IRandom random, ZhuEncoding parent1, ZhuEncoding parent2); 48 48 49 public override IOperation Apply( ) {49 public override IOperation Apply(IExecutionContext context) { 50 50 ItemArray<IVRPEncoding> parents = new ItemArray<IVRPEncoding>(ParentsParameter.ActualValue.Length); 51 51 for (int i = 0; i < ParentsParameter.ActualValue.Length; i++) { … … 70 70 71 71 ChildParameter.ActualValue = 72 Crossover( RandomParameter.ActualValue, parents[0] as ZhuEncoding, parents[1] as ZhuEncoding);72 Crossover(context, RandomParameter.ActualValue, parents[0] as ZhuEncoding, parents[1] as ZhuEncoding); 73 73 74 return base.Apply( );74 return base.Apply(context); 75 75 } 76 76 }
Note: See TracChangeset
for help on using the changeset viewer.