Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/13/10 20:44:31 (14 years ago)
Author:
gkronber
Message:

Fixed bugs related to dynamic symbol constraints with ADFs. #290 (Implement ADFs)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/SymbolicExpressionTreeCrossover.cs

    r3294 r3338  
    6767
    6868      IRandom random = RandomParameter.ActualValue;
    69       ISymbolicExpressionGrammar grammar = SymbolicExpressionGrammarParameter.ActualValue;
    7069
    7170      // randomly swap parents to remove a possible bias from selection (e.g. when using gender-specific selection)
     
    7776
    7877      bool success;
    79       SymbolicExpressionTree result = Cross(random, grammar, parent0, parent1,
     78      SymbolicExpressionTree result = Cross(random, parent0, parent1,
    8079        MaxTreeSizeParameter.ActualValue, MaxTreeHeightParameter.ActualValue, out success);
    8180     
     
    8988    }
    9089
    91     protected abstract SymbolicExpressionTree Cross(IRandom random, ISymbolicExpressionGrammar grammar,
     90    protected abstract SymbolicExpressionTree Cross(IRandom random,
    9291      SymbolicExpressionTree parent0, SymbolicExpressionTree parent1,
    9392      IntValue maxTreeSize, IntValue maxTreeHeight, out bool success);
Note: See TracChangeset for help on using the changeset viewer.