Changeset 5177 for branches/ParallelEngine/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/General/Crossovers/RandomParentCloneCrossover.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/General/Crossovers/RandomParentCloneCrossover.cs
r4722 r5177 57 57 } 58 58 59 public override IOperation Apply( ) {59 public override IOperation Apply(IExecutionContext context) { 60 60 if (RandomParameter.ActualValue.Next() < 0.5) 61 61 ChildParameter.ActualValue = ParentsParameter.ActualValue[0].Clone() as IVRPEncoding; … … 63 63 ChildParameter.ActualValue = ParentsParameter.ActualValue[1].Clone() as IVRPEncoding; 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.