Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/03/10 15:17:25 (14 years ago)
Author:
mkommend
Message:

Moved check for max expression depth from tree node to the manipulator and corrected `MultiSymbolicExpressionTreeArchitectureManipulator' (ticket #1315).

File:
1 edited

Legend:

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

    r5014 r5015  
    5757      int maxHeight = maxTreeHeight - symbolicExpressionTree.Height + manipulationPoint.Node.GetHeight();
    5858      // find possible symbols for the node (also considering the existing branches below it)
    59       var allowedSymbols = from symbol in manipulationPoint.Parent.GetAllowedSymbols(manipulationPoint.Index, maxHeight)
     59      var allowedSymbols = from symbol in manipulationPoint.Parent.GetAllowedSymbols(manipulationPoint.Index)
     60                           where manipulationPoint.Node.Grammar.GetMinExpressionDepth(symbol) <= maxHeight
     61                           where manipulationPoint.Node.Grammar.GetMinExpressionLength(symbol) <= maxSize
    6062                           select symbol;
    6163      if (allowedSymbols.Count() <= 1) return;
Note: See TracChangeset for help on using the changeset viewer.