Selection operator base class. More...
#include <SelectionOperator.h>
Public Member Functions | |
| virtual bool | initialize (StateP)=0 |
| virtual IndividualP | select (const std::vector< IndividualP > &)=0 |
Protected Attributes | |
| StateP | state_ |
Selection operator base class.
All selection operators select one individual from a set, using different methods.
Definition at line 12 of file SelectionOperator.h.
| virtual bool SelectionOperator::initialize | ( | StateP | ) | [pure virtual] |
Selection operator initialization. Must be called before individual selection.
Implemented in SelBestOp, SelFitnessProportionalOp, SelRandomOp, and SelWorstOp.
| virtual IndividualP SelectionOperator::select | ( | const std::vector< IndividualP > & | ) | [pure virtual] |
Select one individual from a set.
Implemented in SelBestOp, SelFitnessProportionalOp, SelRandomOp, and SelWorstOp.
1.7.1