#include <imutation.h>
Inherited by realea::MutationBGA.
Public Member Functions | |
virtual tGen | mutate (tChromosomeReal &sol, unsigned posi)=0 |
void | setRandom (Random *random) |
This class define the mutation type
To create a new mutation crossover, the class must inherit from this interface and redefine the apply method
Definition at line 38 of file imutation.h.
virtual tGen realea::IMutation::mutate | ( | tChromosomeReal & | sol, | |
unsigned | posi | |||
) | [pure virtual] |
Make de mutation (changing a gen of the chromosome sol).
sol | the chromosome to update, it is modified | |
gen | the position of gen to change |
void realea::IMutation::setRandom | ( | Random * | random | ) | [inline] |
Set the random variable
It must be speficied if Mutation is going to use it.
random | the random generation numbers. |
Definition at line 56 of file imutation.h.