Convenience alias
Genetic algorithm for genomes in the form of a tree. Particularly well suited for growing algorithms.
T | Type of the tree. Should be the return type and parameter type of the functions composing the tree |
PopSize | The size of the population |
depth | Maximum depth of the tree |
fitness | User defined fitness function. Must return double |
selector | Selection method used to pick parents of next generation. |
crossover | Used to crossover individuals to create the new generation. |
mutator | Used to alter the population. |
comp | Used to determine whether a larger or smaller fitness is better. |
Create a tree GA with the given generator.
Whether to generate a graph of the tree after 'evolution' completes
Generate a a Graphviz dot file named filename with additional description 'description' using node
Add initial population using generator
Preform add new members by crossing-over the population left after selection, keeping 'crossoverRate' precent in the population.
Preform mutation on members of the population