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. | |
| IndividualP | select (const std::vector< IndividualP > &) |
| Select one individual from a set. | |
| std::vector< IndividualP > | selectMany (const std::vector< IndividualP > &, uint) |
| Repeatedly select from the same pool (duplicates allowed). | |
| bool | setSelPressure (double) |
| Set selection pressure value. | |
| void | setInverseProportional () |
| Set the operator to use inverse fitness (badness) proportional selection. | |
| void | setFitnessProportional () |
| Set the operator to use fitness proportional selection (the default behaviour). | |
Protected Attributes | |
| double | selPressure_ |
| the ratio of selection probability of the best and worst individual in the set | |
| bool | bInverseSelect_ |
| are we using inverse fitness proportional selection (false by default) | |
Fitness proportional (and inverse proportional) individual selection operator.
Definition at line 10 of file SelFitnessProportionalOp.h.
1.7.1