GPLIB++
Public Member Functions | List of all members
gplib::GeneralSelect Class Referenceabstract

GeneralSelect is the abstract base class for any selection mechanism in genetic algorithms. More...

#include <GeneralSelect.h>

Inheritance diagram for gplib::GeneralSelect:
Inheritance graph
[legend]

Public Member Functions

void Init ()
 
size_t GetOne ()
 
 GeneralSelect ()
 
virtual ~GeneralSelect ()
 

Detailed Description

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.

Constructor & Destructor Documentation

gplib::GeneralSelect::GeneralSelect ( )

Definition at line 6 of file GeneralSelect.cpp.

gplib::GeneralSelect::~GeneralSelect ( )
virtual

Definition at line 11 of file GeneralSelect.cpp.

Member Function Documentation

size_t gplib::GeneralSelect::GetOne ( )

Definition at line 15 of file GeneralSelect.cpp.

Referenced by gplib::StandardPropagation::NextGeneration().

void gplib::GeneralSelect::Init ( )
inline

Definition at line 25 of file GeneralSelect.h.

Referenced by gplib::StandardPropagation::NextGeneration().


The documentation for this class was generated from the following files: