Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/08/09 11:04:49 (15 years ago)
Author:
gkronber
Message:

Adapted GP crossover operators to match the new design for crossover operators. #512 (GP crossover operators should be changed to match the new design of crossover operators (see #475)).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.GP/Recombination/SizeConstrictedGPCrossoverBase.cs

    r1212 r1286  
    4242    }
    4343
    44     internal override IFunctionTree Cross(IScope scope, TreeGardener gardener, MersenneTwister random, IFunctionTree tree0, IFunctionTree tree1) {
     44    internal override IFunctionTree Cross(IScope scope, TreeGardener gardener, IRandom random, IFunctionTree tree0, IFunctionTree tree1) {
    4545      int maxTreeHeight = GetVariableValue<IntData>("MaxTreeHeight", scope, true).Data;
    4646      int maxTreeSize = GetVariableValue<IntData>("MaxTreeSize", scope, true).Data;
     
    6262    }
    6363
    64     internal abstract IFunctionTree Cross(TreeGardener gardener, MersenneTwister random, IFunctionTree tree0, IFunctionTree tree1, int maxTreeSize, int maxTreeHeight);
     64    internal abstract IFunctionTree Cross(TreeGardener gardener, IRandom random, IFunctionTree tree0, IFunctionTree tree1, int maxTreeSize, int maxTreeHeight);
    6565
    66     private IFunctionTree TakeNextParent(IScope scope) {
    67       IFunctionTree parent = GetVariableValue<IFunctionTree>("FunctionTree", scope.SubScopes[0], false);
    68       scope.RemoveSubScope(scope.SubScopes[0]);
    69       return parent;
    70     }
     66    //private IFunctionTree TakeNextParent(IScope scope) {
     67    //  IFunctionTree parent = GetVariableValue<IFunctionTree>("FunctionTree", scope.SubScopes[0], false);
     68    //  scope.RemoveSubScope(scope.SubScopes[0]);
     69    //  return parent;
     70    //}
    7171  }
    7272}
Note: See TracChangeset for help on using the changeset viewer.