Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

GA Class Reference

#include <GA.h>

Inheritance diagram for GA::

GABurauSolver GAFastBurMat GAMatrixBurau GANagata List of all members.

Public Methods

 GA (const GAConfig &GAC)
 ~GA ()
virtual void initPopulation ()=0
virtual int fitness (const PM *pm)=0
void computeFitness ()
void adjustFitness ()
void doCrossover ()
void doMutation ()
void doReplacement ()

Protected Attributes

const GAConfiggac
PM** pop
PM ** newPop
int popSize
int* fit
int * copyFit
int minFit
int maxFit
int minFitInd
bool bFirstGen
UniformRandom r

Private Methods

 GA (const GA &)
GA& operator= (const GA &)

Constructor & Destructor Documentation

GA::GA ( const GAConfig & GAC )
 

GA::~GA ( )
 

GA::GA ( const GA & ) [private]
 


Member Function Documentation

virtual void GA::initPopulation ( ) [pure virtual]
 

Reimplemented in GABurauSolver, GAFastBurMat, GAMatrixBurau, and GANagata.

virtual int GA::fitness ( const PM * pm ) [pure virtual]
 

Reimplemented in GABurauSolver, GAFastBurMat, GAMatrixBurau, and GANagata.

void GA::computeFitness ( )
 

void GA::adjustFitness ( )
 

void GA::doCrossover ( )
 

void GA::doMutation ( )
 

void GA::doReplacement ( )
 

GA& GA::operator= ( const GA & ) [private]
 


Member Data Documentation

const GAConfig& GA::gac [protected]
 

Definition at line 117 of file GA.h.

PM** GA::pop [protected]
 

Definition at line 118 of file GA.h.

PM ** GA::newPop [protected]
 

Definition at line 118 of file GA.h.

int GA::popSize [protected]
 

Definition at line 119 of file GA.h.

int* GA::fit [protected]
 

Definition at line 120 of file GA.h.

int * GA::copyFit [protected]
 

Definition at line 120 of file GA.h.

int GA::minFit [protected]
 

Definition at line 121 of file GA.h.

int GA::maxFit [protected]
 

Definition at line 121 of file GA.h.

int GA::minFitInd [protected]
 

Definition at line 121 of file GA.h.

bool GA::bFirstGen [protected]
 

Definition at line 122 of file GA.h.

UniformRandom GA::r [protected]
 

Definition at line 123 of file GA.h.


The documentation for this class was generated from the following file:
Generated at Tue Jun 19 09:49:53 2001 for Magnus Classes by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001