From f71b436120da7b742922ca4302a6502b1b19251e Mon Sep 17 00:00:00 2001 From: evomarc Date: Wed, 26 Nov 2003 11:15:59 +0000 Subject: [PATCH] THe call to randomize was forgotten after the choice of a terminal at max_depth. This was only visible if - you implemented the randomize method - you reached the maximum depth (or used ramped half-and-half). --- eo/src/gp/eoParseTreeDepthInit.h | 1 + 1 file changed, 1 insertion(+) diff --git a/eo/src/gp/eoParseTreeDepthInit.h b/eo/src/gp/eoParseTreeDepthInit.h index 3cd95b04..2f41c2fb 100644 --- a/eo/src/gp/eoParseTreeDepthInit.h +++ b/eo/src/gp/eoParseTreeDepthInit.h @@ -133,6 +133,7 @@ class eoParseTreeDepthInit : public eoInit< eoParseTree > if (the_max == 1) { // generate terminals only typename std::vector::iterator it = initializor.begin() + rng.random(last_terminal); + it->randomize(); sequence.push_front(*it); return; }