Algorithm::GaStopCriteria Class Reference

This class is interface for stop criteria of genetic algorithm. More...

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

Inherits Common::GaOperation.

Inherited by Algorithm::StopCriterias::GaFitnessCriteria, Algorithm::StopCriterias::GaFitnessProgressCriteria, and Algorithm::StopCriterias::GaGenerationCriteria.

List of all members.

Public Member Functions

virtual bool GACALL Evaluate (const GaAlgorithm &algorithm, const GaStopCriteriaParams &parameters) const =0
 This method compares current state of the algorithm against desired state specified in parameters.


Detailed Description

This class is interface for stop criteria of genetic algorithm.

This class is abstract and has no built-in synchronizator, so LOCK_OBJECT and LOCK_THIS_OBJECT macros cannot be used with instances of this class, but because all built-in stop criterias operations are stateless they are thread-safe.


Member Function Documentation

virtual bool GACALL Algorithm::GaStopCriteria::Evaluate ( const GaAlgorithm algorithm,
const GaStopCriteriaParams parameters 
) const [pure virtual]

This method compares current state of the algorithm against desired state specified in parameters.

Parameters:
algorithm reference to algorithm which state is checked.
parameters reference to parameters of stop criteria which describe desired state.
Returns:
Method returns true if current state of the algorithm satisfies desired state. If the algorithm hasn't reached desired state, method returns false.

Implemented in Algorithm::StopCriterias::GaGenerationCriteria, Algorithm::StopCriterias::GaFitnessCriteria, and Algorithm::StopCriterias::GaFitnessProgressCriteria.


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

Genetic Algorithm Library
Coolsoft Software Development