Population::SelectionOperations::GaSelectWorst Class Reference

GaSelectWorst selection is selects defined number of worst chromosomes. If population is not-sorted, this selection can only select chromosomes which are in worst sorted group. This selection use GaSelectionParams class for parameters. More...

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

Inherits Population::GaSelectionOperation.

List of all members.

Public Member Functions

virtual GAL_API void GACALL operator() (const GaPopulation &population, const GaSelectionParams &parameters, GaSelectionResultSet &result) const
 More details are given in specification of GaSelectionOperation::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 selection size grater then 0.


Detailed Description

GaSelectWorst selection is selects defined number of worst chromosomes. If population is not-sorted, this selection can only select chromosomes which are in worst sorted group. This selection use GaSelectionParams 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::SelectionOperations::GaSelectWorst::operator() ( const GaPopulation population,
const GaSelectionParams parameters,
GaSelectionResultSet result 
) const [virtual]

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

This method is thread-safe.

Implements Population::GaSelectionOperation.

virtual GaParameters* GACALL Population::SelectionOperations::GaSelectWorst::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 GaSelectionParams class.

Implements Common::GaOperation.

virtual bool GACALL Population::SelectionOperations::GaSelectWorst::CheckParameters ( const GaParameters parameters  )  const [inline, virtual]

Valid parameters must have selection size grater 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