#include <Mutate.hpp>
Public Member Functions | |
Mutate (int iTries=5) | |
void | mutate (Individual &ind) |
Mutate::Mutate | ( | int | iTries = 5 |
) |
Creates a new mutator object
[in] | iTries | Number of attempts made before mutation is aborted |
void Mutate::mutate | ( | Individual & | ind | ) |
Perform a mutation on an individual. This replaces the subtree of a randomly chosen node in the symbol tree with a new subtree which conforms to the grammar
[in,out] | ind | The individual to mutate |