GaMutableCode
interface should be implemented by chromosomes' classes which code supports random changes and inversion of its parts.
More...
#include <D:/Temp/vs/gal/source/RepresentationInterfaces.h>
Inherited by Chromosome::Representation::GaBinaryChromosome, Chromosome::Representation::GaMultiValueChromosome< TYPE >, and Chromosome::Representation::GaSingleValueChromosome< TYPE >.
Public Member Functions | |
virtual void GACALL | Flip (int start, int size)=0 |
This method changes values of chromosome's code randomly from start position to start + size position. | |
virtual void GACALL | Invert (int start, int size)=0 |
This method inverts values of chromosome's code from start position to start + size position. |
GaMutableCode
interface should be implemented by chromosomes' classes which code supports random changes and inversion of its parts.
virtual void GACALL Chromosome::Representation::GaMutableCode::Flip | ( | int | start, | |
int | size | |||
) | [pure virtual] |
This method changes values of chromosome's code randomly from start
position to start + size
position.
start | position of first value which is going to be changed. | |
size | number of values which are going to be changed. |
Implemented in Chromosome::Representation::GaBinaryChromosome, Chromosome::Representation::GaMultiValueChromosome< TYPE >, and Chromosome::Representation::GaSingleValueChromosome< TYPE >.
virtual void GACALL Chromosome::Representation::GaMutableCode::Invert | ( | int | start, | |
int | size | |||
) | [pure virtual] |
This method inverts values of chromosome's code from start
position to start + size
position.
start | position of first value which is going to be inverted. | |
size | number of values which are going to be inverted. |
Implemented in Chromosome::Representation::GaBinaryChromosome, Chromosome::Representation::GaMultiValueChromosome< TYPE >, and Chromosome::Representation::GaSingleValueChromosome< TYPE >.