GaFitnessOperation class is base for fitness operations.
More...
#include <source/ChromosomeOperations.h>
Inherits Common::GaOperation.
Public Member Functions | |
| float GACALL | operator() (GaChromosomePtr chromosome) const |
This operator extract raw pointer to parent chromosomes, and delegate responsibility to operator ()(const GaChromosome*). | |
| virtual float GACALL | operator() (const GaChromosome *chromosome) const =0 |
| This operator calculates fitness value of the chromosome. | |
GaFitnessOperation class is base for fitness operations.
| float GACALL Chromosome::GaFitnessOperation::operator() | ( | GaChromosomePtr | chromosome | ) | const [inline] |
This operator extract raw pointer to parent chromosomes, and delegate responsibility to operator ()(const GaChromosome*).
| chromosome | smart pointer chromosome. |
| virtual float GACALL Chromosome::GaFitnessOperation::operator() | ( | const GaChromosome * | chromosome | ) | const [pure virtual] |
This operator calculates fitness value of the chromosome.
| chromosome | raw pointer to mutating chromosome. |