Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/03/10 14:11:02 (14 years ago)
Author:
mkommend
Message:

Corrected SubTreeCrossover and ReplaceBranchManipulation to handle MaxExpressionDepth correctly. Additionally MaxExpressionDepth < 3 is not allowed.
(ticket #1315).

File:
1 edited

Legend:

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

    r4722 r5014  
    6666      SymbolicExpressionTreeNode crossoverPoint0;
    6767      int replacedSubtreeIndex;
    68       SelectCrossoverPoint(random, parent0, internalCrossoverPointProbability, maxTreeSize - 1, maxTreeHeight - 1, out crossoverPoint0, out replacedSubtreeIndex);
     68      SelectCrossoverPoint(random, parent0, internalCrossoverPointProbability, maxTreeSize, maxTreeHeight, out crossoverPoint0, out replacedSubtreeIndex);
    6969
    7070      // calculate the max size and height that the inserted branch can have
Note: See TracChangeset for help on using the changeset viewer.