Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/26/08 18:57:58 (16 years ago)
Author:
gkronber
Message:

improved sizefair crossover operator. #393 (Refactor GP crossover operators to extract common code into the abstract base class GPCrossoverBase)

File:
1 edited

Legend:

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

    r832 r833  
    6161      } else newTree = tree0;
    6262
    63       // check if the new tree is valid and if the height of is still in the allowed bounds (we are not so strict for the max-size)
    64       Debug.Assert(gardener.IsValidTree(newTree) && newTree.Height <= maxTreeHeight && newTree.Size <= maxTreeSize);
     63      // check if the size and height of the new tree are still within the allowed bounds
     64      Debug.Assert(newTree.Height <= maxTreeHeight);
     65      Debug.Assert(newTree.Size <= maxTreeSize);
    6566      return newTree;
    6667    }
Note: See TracChangeset for help on using the changeset viewer.