#include <GLGaStopperMaxGenerations.h>
Public Member Functions | |
GLGaStopperMaxGenerations (int max_generations=100) | |
virtual | ~GLGaStopperMaxGenerations () |
virtual bool | stop (const GLBaseGaStatus *ga_status) |
Definition at line 11 of file GLGaStopperMaxGenerations.h.
GLGaStopperMaxGenerations::GLGaStopperMaxGenerations | ( | int | max_generations = 100 |
) |
Constructor.
max_generations | number of generations to run before stop. |
Definition at line 10 of file GLGaStopperMaxGenerations.cpp.
virtual GLGaStopperMaxGenerations::~GLGaStopperMaxGenerations | ( | ) | [inline, virtual] |
Simple GA stopper.
Definition at line 23 of file GLGaStopperMaxGenerations.h.
bool GLGaStopperMaxGenerations::stop | ( | const GLBaseGaStatus * | ga_status | ) | [virtual] |
Method which determines whether it is time to stop a GA based on its status.
ga_status | current status of the ga (should point to the exemplar of GLGaStatusStandard class). |
Implements GLBaseGaStopper.
Definition at line 22 of file GLGaStopperMaxGenerations.cpp.