GLGaStopperMaxGenerations Class Reference

#include <GLGaStopperMaxGenerations.h>

Inheritance diagram for GLGaStopperMaxGenerations:

GLBaseGaStopper

List of all members.

Public Member Functions

 GLGaStopperMaxGenerations (int max_generations=100)
virtual ~GLGaStopperMaxGenerations ()
virtual bool stop (const GLBaseGaStatus *ga_status)


Detailed Description

Class which stops the GA once it reached the maximum number of generations. This class requires, that status passed to the stop method was actually GLGaStatusStandard.

Definition at line 11 of file GLGaStopperMaxGenerations.h.


Constructor & Destructor Documentation

GLGaStopperMaxGenerations::GLGaStopperMaxGenerations ( int  max_generations = 100  ) 

Constructor.

Parameters:
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.


Member Function Documentation

bool GLGaStopperMaxGenerations::stop ( const GLBaseGaStatus ga_status  )  [virtual]

Method which determines whether it is time to stop a GA based on its status.

Parameters:
ga_status current status of the ga (should point to the exemplar of GLGaStatusStandard class).
Returns:
true when GA should stop.

Implements GLBaseGaStopper.

Definition at line 22 of file GLGaStopperMaxGenerations.cpp.


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

Generated on Sat Jun 13 13:58:09 2009 for GenLib by  doxygen 1.5.9