GLBaseGaStatus Struct Reference

#include <GLBaseGaStatus.h>

Inheritance diagram for GLBaseGaStatus:

GLGaStatusStandard

List of all members.

Public Member Functions

 GLBaseGaStatus ()
 GLBaseGaStatus (const GLBaseGaStatus *source)
virtual ~GLBaseGaStatus ()
virtual GLBaseGaStatuscopy () const
virtual ostream & toStream (ostream &out) const

Public Attributes

int m_current_state
 Current status of GA.
vector< const GLBaseOrganism * > m_best_ever_organisms
int m_current_generation
 current generation number
long m_evaluator_calls
int m_generations_since_solution_improvement
int m_generations_since_new_best_found
vector< GLBaseOrganism * > m_last_generation
double m_time_required
nlutils::NLTimer m_timer


Detailed Description

Class which contains the current status of the GA. This is again mostly the data structure, so it has all the parameters open. Its content should be modified during the GA run.

Definition at line 14 of file GLBaseGaStatus.h.


Constructor & Destructor Documentation

GLBaseGaStatus::GLBaseGaStatus (  ) 

Constructor. Sets the status to the initial state.

Definition at line 10 of file GLBaseGaStatus.cpp.

GLBaseGaStatus::GLBaseGaStatus ( const GLBaseGaStatus source  ) 

Copying constructor.

Parameters:
source source of the data.

Definition at line 27 of file GLBaseGaStatus.cpp.

GLBaseGaStatus::~GLBaseGaStatus (  )  [virtual]

Destructor. Destroys everything.

Destructor. Destroys organisms from the last population.

Definition at line 48 of file GLBaseGaStatus.cpp.


Member Function Documentation

virtual GLBaseGaStatus* GLBaseGaStatus::copy (  )  const [inline, virtual]

Returns pointer to the copy of the current status.

Reimplemented in GLGaStatusStandard.

Definition at line 36 of file GLBaseGaStatus.h.

ostream & GLBaseGaStatus::toStream ( ostream &  out  )  const [virtual]

Method for output the status to stream.

Parameters:
out destination stream.

Reimplemented in GLGaStatusStandard.

Definition at line 62 of file GLBaseGaStatus.cpp.


Member Data Documentation

best ever organism(s) if more then one have the same fittness function or for Pareto front. Hard clones of the organisms in population, so they should survive the destruction of parent population.

Definition at line 50 of file GLBaseGaStatus.h.

how many times evaluator called during the GA run (evaluator must track its calls).

Definition at line 55 of file GLBaseGaStatus.h.

number of generations since new best solution was found (fitter or having the same fittness as already found best organism). it should be always <= m_generations_since_solution_improvement. For MultiObjective optimisation those 2 variables should probably be the same.

Definition at line 64 of file GLBaseGaStatus.h.

number of generations since the solution was improved -- either new fitter organism found or additional point on Pareto front.

Definition at line 58 of file GLBaseGaStatus.h.

Vector of organisms in last generation(s) for GA (after GA is done). They are hard clones of the last population, so they will survivie the population's destruction.

Definition at line 68 of file GLBaseGaStatus.h.

Time required for optimization (set after optimization is over) in seconds.

Definition at line 72 of file GLBaseGaStatus.h.

nlutils::NLTimer GLBaseGaStatus::m_timer

To be used to mesure the time required for optimisation. It is responsibility of the GA algorithm to reset the timer befor optimization starts.

Definition at line 77 of file GLBaseGaStatus.h.


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

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