#include <D:/Temp/vs/gal/source/AlgorithmOperations.h>
Inherits Common::GaOperation.
Inherited by Algorithm::StopCriterias::GaFitnessCriteria, Algorithm::StopCriterias::GaFitnessProgressCriteria, and Algorithm::StopCriterias::GaGenerationCriteria.
Public Member Functions | |
virtual bool GACALL | Evaluate (const GaAlgorithm &algorithm, const GaStopCriteriaParams ¶meters) const =0 |
This method compares current state of the algorithm against desired state specified in parameters. |
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.
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.
algorithm | reference to algorithm which state is checked. | |
parameters | reference to parameters of stop criteria which describe desired state. |
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.