Changeset 5177 for branches/ParallelEngine/HeuristicLab.Optimization.Operators/3.3/ParentCopyCrossover.cs
- Timestamp:
- 12/26/10 03:51:30 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ParallelEngine/HeuristicLab.Optimization.Operators/3.3/ParentCopyCrossover.cs
r5143 r5177 43 43 } 44 44 45 public override IOperation Apply( ) {46 IScope scope = ExecutionContext.Scope;45 public override IOperation Apply(IExecutionContext context) { 46 IScope scope = context.Scope; 47 47 int index = RandomParameter.ActualValue.Next(scope.SubScopes.Count); 48 48 IScope child = scope.SubScopes[index]; … … 51 51 scope.Variables.Add((IVariable)var.Clone()); 52 52 53 return base.Apply( );53 return base.Apply(context); 54 54 } 55 55
Note: See TracChangeset
for help on using the changeset viewer.