eoSGA< EOT > Class Template Reference

The Simple Genetic Algorithm, following Holland and Goldberg. More...

#include <eoSGA.h>

Inheritance diagram for eoSGA< EOT >:

eoAlgo< EOT > eoUF< A1, R > eoFunctorBase

List of all members.

Public Member Functions

 eoSGA (eoSelectOne< EOT > &_select, eoQuadOp< EOT > &_cross, float _crate, eoMonOp< EOT > &_mutate, float _mrate, eoEvalFunc< EOT > &_eval, eoContinue< EOT > &_cont)
void operator() (eoPop< EOT > &_pop)

Private Attributes

eoContinue< EOT > & cont
eoInvalidateMonOp< EOTmutate
 eoInvalidateMonOp invalidates the embedded operator
float mutationRate
eoInvalidateQuadOp< EOTcross
float crossoverRate
eoSelectPerc< EOTselect
eoEvalFunc< EOT > & eval

Detailed Description

template<class EOT>
class eoSGA< EOT >

The Simple Genetic Algorithm, following Holland and Goldberg.

Needs a selector (class eoSelectOne) a crossover (eoQuad, i.e. a 2->2 operator) and a mutation with their respective rates, of course an evaluation function (eoEvalFunc) and a continuator (eoContinue) which gives the stopping criterion. Performs full generational replacement.

Definition at line 49 of file eoSGA.h.

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

Generated on Thu Jan 1 23:19:50 2009 for EvolvingObjects by  doxygen 1.5.5