GaFitnessProgressCriteria
is used to stop genetic algorithm when specified number of generations fail to meet required progress of defined type of fitness value. This stop criteria uses GaFitnessProgressCriteriaParams class as parameters.
More...
#include <D:/Temp/vs/gal/source/StopCriterias.h>
Inherits Algorithm::GaStopCriteria.
Public Member Functions | |
virtual GAL_API bool GACALL | Evaluate (const GaAlgorithm &algorithm, const GaStopCriteriaParams ¶meters) 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 ¶meters) const |
Valid parameters must have history depth larger then 0, and value of required progress mustn't be 0. |
GaFitnessProgressCriteria
is used to stop genetic algorithm when specified number of generations fail to meet required progress of defined type of fitness value. This stop criteria uses GaFitnessProgressCriteriaParams 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.
bool Algorithm::StopCriterias::GaFitnessProgressCriteria::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::GaFitnessProgressCriteria::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 Algorithm::StopCriterias::GaFitnessProgressCriteria::CheckParameters | ( | const GaParameters & | parameters | ) | const [inline, virtual] |
Valid parameters must have history depth larger then 0, and value of required progress mustn't be 0.
More details are given in specification of GaOperation::CheckParameters method.
This method is thread-safe.
Implements Common::GaOperation.