It doesn't. But you can pretty easily add it in, just override Crossover's verifyPoints(...) method to check to see if the resulting sizes would be valid. Same thing for Mutation. There are some GPNode utility methods to help you in counting nodes.
On May 2, 2012, at 11:37 AM, James McDermott wrote:
> Hi all,
> does ECJ provide any method for limiting the number of nodes in GP
> trees produced by crossover and mutation? I know that it does provide
> depth limits like max-depth = 17. I also want to set a limit in terms
> of number of nodes, like max-nodes = 750.
> Dr. James McDermott
> Natural Computing Research & Applications Group,
> Complex and Adaptive Systems Laboratory,
> University College Dublin, Ireland.