|
GPLIB++
|
GeneralSelect is the abstract base class for any selection mechanism in genetic algorithms. More...
#include <GeneralSelect.h>

Public Member Functions | |
| void | Init () |
| size_t | GetOne () |
| GeneralSelect () | |
| virtual | ~GeneralSelect () |
GeneralSelect is the abstract base class for any selection mechanism in genetic algorithms.
GeneralSelect defines to abstract functions: Init and GetOne. Init has to be called once per iteration and sets all the necessary parameters depending on probabilities and crowding distance GetOne then returns the index of a selected population member and is called every time a population member has to be selected by a selection operator. There is no default implementation !
Definition at line 16 of file GeneralSelect.h.
| gplib::GeneralSelect::GeneralSelect | ( | ) |
Definition at line 6 of file GeneralSelect.cpp.
|
virtual |
Definition at line 11 of file GeneralSelect.cpp.
| size_t gplib::GeneralSelect::GetOne | ( | ) |
Definition at line 15 of file GeneralSelect.cpp.
Referenced by gplib::StandardPropagation::NextGeneration().
|
inline |
Definition at line 25 of file GeneralSelect.h.
Referenced by gplib::StandardPropagation::NextGeneration().
1.8.6