GaAddCrossover
crossover operation creates offspring which code has values which are calculated form corresponding values of codes of both parents by summing them.
More...
#include <D:/Temp/vs/gal/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. |
GaAddCrossover
crossover operation creates offspring which code has values which are calculated form corresponding values of codes of both parents by summing 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::GaAddCrossover::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::GaAddCrossover::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::GaAddCrossover::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.