23template<ProgramType T>
void bind_engine(py::module &m, string name)
The SelectionOperator class represents a base class for selection operators in a genetic algorithm.
< nsga2 selection operator for getting the front
interfaces with selection operators.
vector< size_t > select(Population< T > &pop, int island, const Parameters ¶ms)
perform selection. selection uses a pop that has no offspring space
string get_type()
return type of selectionoperator
void set_type(string)
set type of selectionoperator
vector< size_t > survive(Population< T > &pop, int island, const Parameters ¶ms)
perform survival. uses a pop with offspring space
SelectionOperator< T > * pselector