ECF 1.5
|
Fitness proportional (and inverse proportional) individual selection operator. More...
#include <SelFitnessProportionalOp.h>
Public Member Functions | |
bool | initialize (StateP) |
Selection operator initialization. Must be called before individual selection. More... | |
IndividualP | select (const std::vector< IndividualP > &) |
Select one individual from a set. More... | |
std::vector< IndividualP > | selectMany (const std::vector< IndividualP > &, uint) |
Repeatedly select from the same pool (duplicates allowed) More... | |
bool | setSelPressure (double) |
Set selection pressure value. More... | |
virtual bool | initialize (StateP)=0 |
Selection operator initialization. Must be called before individual selection. More... | |
virtual IndividualP | select (const std::vector< IndividualP > &)=0 |
Select one individual from a set. More... | |
Protected Attributes | |
double | selPressure_ |
the ratio of selection probability of the best and worst individual in the set More... | |
Protected Attributes inherited from SelectionOperator | |
StateP | state_ |
Fitness proportional (and inverse proportional) individual selection operator.
Definition at line 26 of file SelFitnessProportionalOp.h.
|
virtual |
Selection operator initialization. Must be called before individual selection.
Implements SelectionOperator.
Definition at line 8 of file SelFitnessProportionalOp.cpp.
|
virtual |
Select one individual from a set.
Implements SelectionOperator.
Definition at line 25 of file SelFitnessProportionalOp.cpp.
std::vector< IndividualP > SelFitnessProportionalOp::selectMany | ( | const std::vector< IndividualP > & | pool, |
uint | repeats | ||
) |
Repeatedly select from the same pool (duplicates allowed)
Definition at line 57 of file SelFitnessProportionalOp.cpp.
bool SelFitnessProportionalOp::setSelPressure | ( | double | selPressure | ) |
Set selection pressure value.
Definition at line 15 of file SelFitnessProportionalOp.cpp.
|
protected |
the ratio of selection probability of the best and worst individual in the set
Definition at line 29 of file SelFitnessProportionalOp.h.