1#ifndef SELECTION_OPERATOR_H
2#define SELECTION_OPERATOR_H
22template<ProgramType T>
void bind_engine(py::module &m, string name)
The SelectionOperator class represents a base class for selection operators in a genetic algorithm.
virtual vector< size_t > select(Population< T > &pop, int island, const Parameters &p)
Selects individuals from the population based on the selection operator's strategy.
virtual ~SelectionOperator()
Destructor for the SelectionOperator class.
virtual vector< size_t > survive(Population< T > &pop, int island, const Parameters &p)
Applies the selection operator to determine which individuals survive in the population.
< nsga2 selection operator for getting the front