|
EvolvingObjects
|
Base class for breeders using generalized operators. More...
#include <eoGeneralBreeder.h>
Public Member Functions | |
| eoGeneralBreeder (eoSelectOne< EOT > &_select, eoGenOp< EOT > &_op, double _rate=1.0, bool _interpret_as_rate=true) | |
| Ctor: | |
| eoGeneralBreeder (eoSelectOne< EOT > &_select, eoGenOp< EOT > &_op, eoHowMany _howMany) | |
| Ctor: | |
| void | operator() (const eoPop< EOT > &_parents, eoPop< EOT > &_offspring) |
| The breeder: simply calls the genOp on a selective populator! | |
| virtual std::string | className () const |
| The class name. | |
Private Attributes | |
| eoSelectOne< EOT > & | select |
| eoGenOp< EOT > & | op |
| eoHowMany | howMany |
Base class for breeders using generalized operators.
Definition at line 48 of file eoGeneralBreeder.h.
| eoGeneralBreeder< EOT >::eoGeneralBreeder | ( | eoSelectOne< EOT > & | _select, |
| eoGenOp< EOT > & | _op, | ||
| double | _rate = 1.0, |
||
| bool | _interpret_as_rate = true |
||
| ) | [inline] |
Ctor:
| _select | a selectoOne, to be used for all selections |
| _op | a general operator (will generally be an eoOpContainer) |
| _rate | pour howMany, le nbre d'enfants a generer |
| _interpret_as_rate | explanation |
Definition at line 58 of file eoGeneralBreeder.h.
| eoGeneralBreeder< EOT >::eoGeneralBreeder | ( | eoSelectOne< EOT > & | _select, |
| eoGenOp< EOT > & | _op, | ||
| eoHowMany | _howMany | ||
| ) | [inline] |
Ctor:
| _select | a selectoOne, to be used for all selections |
| _op | a general operator (will generally be an eoOpContainer) |
| _howMany | an eoHowMany explanation |
Definition at line 71 of file eoGeneralBreeder.h.
| void eoGeneralBreeder< EOT >::operator() | ( | const eoPop< EOT > & | _parents, |
| eoPop< EOT > & | _offspring | ||
| ) | [inline, virtual] |
The breeder: simply calls the genOp on a selective populator!
| _parents | the initial population |
| _offspring | the resulting population (content -if any- is lost) |
Implements eoBF< const eoPop< EOT > &, eoPop< EOT > &, void >.
Definition at line 82 of file eoGeneralBreeder.h.