Changeset 5177 for branches/ParallelEngine/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Prins/Crossovers/PrinsCrossover.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/Prins/Crossovers/PrinsCrossover.cs
r4722 r5177 65 65 } 66 66 67 protected abstract PrinsEncoding Crossover(I Random random, PrinsEncoding parent1, PrinsEncoding parent2);67 protected abstract PrinsEncoding Crossover(IExecutionContext context, IRandom random, PrinsEncoding parent1, PrinsEncoding parent2); 68 68 69 public override IOperation Apply( ) {69 public override IOperation Apply(IExecutionContext context) { 70 70 ItemArray<IVRPEncoding> parents = new ItemArray<IVRPEncoding>(ParentsParameter.ActualValue.Length); 71 71 for (int i = 0; i < ParentsParameter.ActualValue.Length; i++) { … … 95 95 96 96 ChildParameter.ActualValue = 97 Crossover( RandomParameter.ActualValue, parents[0] as PrinsEncoding, parents[1] as PrinsEncoding);97 Crossover(context, RandomParameter.ActualValue, parents[0] as PrinsEncoding, parents[1] as PrinsEncoding); 98 98 99 return base.Apply( );99 return base.Apply(context); 100 100 } 101 101 }
Note: See TracChangeset
for help on using the changeset viewer.