GaSubCrossover crossover operation creates offspring which code has values which are calculated form corresponding values of codes of both parents by subtracting them.
More...
#include <source/CrossoverOperations.h>
Inherits Chromosome::GaCrossoverOperation.
Public Member Functions | |
| virtual GAL_API GaChromosomePtr GACALL | operator() (const GaChromosome *parent1, const GaChromosome *parent2) const |
| More details are given in specification of GaCrossoverOperation::operator () method. | |
| virtual GaParameters *GACALL | MakeParameters () const |
| More details are given in specification of GaOperation::MakeParameters method. | |
| virtual bool GACALL | CheckParameters (const GaParameters ¶meters) const |
| More details are given in specification of GaOperation::CheckParameters method. | |
GaSubCrossover crossover operation creates offspring which code has values which are calculated form corresponding values of codes of both parents by subtracting them.
This class has no built-in synchronizator, so LOCK_OBJECT and LOCK_THIS_OBJECT macros cannot be used with instances of this class. Because this genetic operation is stateless all public method are thread-safe.
| GaChromosomePtr Chromosome::CrossoverOperations::GaSubCrossover::operator() | ( | const GaChromosome * | parent1, | |
| const GaChromosome * | parent2 | |||
| ) | const [virtual] |
More details are given in specification of GaCrossoverOperation::operator () method.
This method is thread-safe.
Implements Chromosome::GaCrossoverOperation.
| virtual GaParameters* GACALL Chromosome::CrossoverOperations::GaSubCrossover::MakeParameters | ( | ) | const [inline, virtual] |
More details are given in specification of GaOperation::MakeParameters method.
This method is thread-safe.
Implements Common::GaOperation.
| virtual bool GACALL Chromosome::CrossoverOperations::GaSubCrossover::CheckParameters | ( | const GaParameters & | parameters | ) | const [inline, virtual] |
More details are given in specification of GaOperation::CheckParameters method.
This method is thread-safe.
true.Implements Common::GaOperation.