Population::ReplacementOperations::GaReplaceParents Class Reference

GaReplaceParents replaces chromosomes which are marked as parents by coupling operation to offspring chromosomes. This operation saves the best chromosomes from replacement if specified in parameters. This replacement operation use GaReplaceElitismParams class for parameters. More...

#include <D:/Temp/vs/gal/source/ReplacementOperations.h>

Inherits Population::GaReplacementOperation.

List of all members.

Public Member Functions

virtual GAL_API void GACALL operator() (GaPopulation &population, const GaReplacementParams &parameters, const GaCouplingResultSet &newChromosomes) const
 More details are given in specification of GaReplacementOperation::operator () method.
virtual GaParameters *GACALL MakeParameters () const
 More details are given in specification of GaOperation::MakeParameters method.
virtual bool GACALL CheckParameters (const GaParameters &parameters) const
 Valid parameters must have number of chromosomes which should be replaced greater then 0.


Detailed Description

GaReplaceParents replaces chromosomes which are marked as parents by coupling operation to offspring chromosomes. This operation saves the best chromosomes from replacement if specified in parameters. This replacement operation use GaReplaceElitismParams class for parameters.

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.


Member Function Documentation

void Population::ReplacementOperations::GaReplaceParents::operator() ( GaPopulation population,
const GaReplacementParams parameters,
const GaCouplingResultSet newChromosomes 
) const [virtual]

More details are given in specification of GaReplacementOperation::operator () method.

This method is thread-safe.

Implements Population::GaReplacementOperation.

virtual GaParameters* GACALL Population::ReplacementOperations::GaReplaceParents::MakeParameters (  )  const [inline, virtual]

More details are given in specification of GaOperation::MakeParameters method.

This method is thread-safe.

Returns:
Method returns new instance of GaReplaceElitismParams class.

Implements Common::GaOperation.

virtual bool GACALL Population::ReplacementOperations::GaReplaceParents::CheckParameters ( const GaParameters parameters  )  const [inline, virtual]

Valid parameters must have number of chromosomes which should be replaced greater then 0.

More details are given in specification of GaOperation::CheckParameters method.

This method is thread-safe.

Implements Common::GaOperation.


The documentation for this class was generated from the following files:

Genetic Algorithm Library
Coolsoft Software Development