Algorithm::StopCriterias::GaFitnessCriteria Class Reference

GaFitnessCriteria is used to stop genetic algorithm when specified type of fitness value reaches desired value. This stop criteria uses GaFitnessCriteriaParams class as parameters. More...

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

Inherits Algorithm::GaStopCriteria.

List of all members.

Public Member Functions

virtual bool GACALL Evaluate (const GaAlgorithm &algorithm, const GaStopCriteriaParams &parameters) const
 More details are given in specification of GaStopCriteria::Evaluate method.
virtual GaParameters *GACALL MakeParameters () const
 More details are given in specification of GaOperation::MakeParameters method.
virtual bool GACALL CheckParameters (const GaParameters &parameters) const
 More details are given in specification of GaOperation::CheckParameters method.


Detailed Description

GaFitnessCriteria is used to stop genetic algorithm when specified type of fitness value reaches desired value. This stop criteria uses GaFitnessCriteriaParams class as 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

bool Algorithm::StopCriterias::GaFitnessCriteria::Evaluate ( const GaAlgorithm algorithm,
const GaStopCriteriaParams parameters 
) const [virtual]

More details are given in specification of GaStopCriteria::Evaluate method.

This method is thread-safe.

Implements Algorithm::GaStopCriteria.

virtual GaParameters* GACALL Algorithm::StopCriterias::GaFitnessCriteria::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 GaFitnessCriteriaParams class.

Implements Common::GaOperation.

virtual bool GACALL Algorithm::StopCriterias::GaFitnessCriteria::CheckParameters ( const GaParameters parameters  )  const [inline, virtual]

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

This method is thread-safe.

Returns:
Method always returns true.

Implements Common::GaOperation.


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

Genetic Algorithm Library
Coolsoft Software Development