Changeset 5177 for branches/ParallelEngine/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Crossovers/AlbaCrossover.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/Alba/Crossovers/AlbaCrossover.cs
r4722 r5177 44 44 } 45 45 46 protected abstract AlbaEncoding Crossover(I Random random, AlbaEncoding parent1, AlbaEncoding parent2);46 protected abstract AlbaEncoding Crossover(IExecutionContext context, IRandom random, AlbaEncoding parent1, AlbaEncoding parent2); 47 47 48 public override IOperation Apply( ) {48 public override IOperation Apply(IExecutionContext context) { 49 49 ItemArray<IVRPEncoding> parents = new ItemArray<IVRPEncoding>(ParentsParameter.ActualValue.Length); 50 50 for (int i = 0; i < ParentsParameter.ActualValue.Length; i++) { … … 61 61 62 62 ChildParameter.ActualValue = 63 Crossover( RandomParameter.ActualValue, parents[0] as AlbaEncoding, parents[1] as AlbaEncoding);63 Crossover(context, RandomParameter.ActualValue, parents[0] as AlbaEncoding, parents[1] as AlbaEncoding); 64 64 65 return base.Apply( );65 return base.Apply(context); 66 66 } 67 67 }
Note: See TracChangeset
for help on using the changeset viewer.