00001 #ifndef GLGASTOPPERMAXGENERATIONS_H_ 00002 #define GLGASTOPPERMAXGENERATIONS_H_ 00003 00004 #include "GLBaseGaStopper.h" 00005 00011 class GLGaStopperMaxGenerations: public GLBaseGaStopper 00012 { 00013 public: 00018 GLGaStopperMaxGenerations(int max_generations = 100); 00019 00023 virtual ~GLGaStopperMaxGenerations() {}; 00024 00032 virtual bool stop(const GLBaseGaStatus* ga_status); 00033 00034 private: 00035 int m_max_generations; //number of generations to run before GA stop. 00036 }; 00037 00038 #endif /*GLGASTOPPERMAXGENERATIONS_H_*/