ramped half and half initialization has been added to eoParseTreeDepthInit

This commit is contained in:
jeggermo 2002-05-09 15:43:01 +00:00
commit 07f2de55dc
2 changed files with 34 additions and 11 deletions

View file

@ -70,8 +70,8 @@ int main(int argc, char *argv[])
// the parameters are passed on as well
RegFitness eval(generationCounter, initSequence, parameter);
// Depth Initializor, defaults to grow method.
eoParseTreeDepthInit<FitnessType, Node> initializer(parameter.InitMaxDepth, initSequence);
// Depth Initializor, set for Ramped Half and Half Initialization
eoParseTreeDepthInit<FitnessType, Node> initializer(parameter.InitMaxDepth, initSequence, true, true);
// create the initial population
Pop pop(parameter.population_size, initializer);