Genetic Algorithm Instance Interface. More...

#include <irinst.h>

Inheritance diagram for iRInst:
[legend]

Public Member Functions

size_t GetPopSize (void) const
 
size_t GetGen (void) const
 
size_t GetAgeBest (void) const
 
size_t GetAgeBestPop (void) const
 
virtual void Run (void)=0
 
virtual ~iRInst (void)
 

Protected Member Functions

 iRInst (size_t popsize)
 

Protected Attributes

size_t PopSize
 
size_t Gen
 
size_t AgeBest
 
size_t AgeBestPop
 
bool Pause
 

Detailed Description

Genetic Algorithm Instance Interface.

Interface for an instance of the generic GA.

Constructor & Destructor Documentation

iRInst ( size_t  popsize)
protected

Construct the instance.

Parameters
popsizeThe size of the population.
nameName of the genetic algorithm.
virtual ~iRInst ( void  )
virtual

Destruct the instance.

Member Function Documentation

size_t GetPopSize ( void  ) const
Returns
the size of the population.
size_t GetGen ( void  ) const
Returns
the number of generations run.
size_t GetAgeBest ( void  ) const
Returns
the age of the best chromosome.
size_t GetAgeBestPop ( void  ) const
Returns
the age of the best chromosome ever calculate.
virtual void Run ( void  )
pure virtual

Member Data Documentation

size_t PopSize
protected

Size of the population.

size_t Gen
protected

Number of generations.

size_t AgeBest
protected

Age of the best chromosome.

size_t AgeBestPop
protected

Age of the best chromosome ever calculate.

bool Pause
protected

Determine if the GA is paused.