13 this->survival =
false;
18template<ProgramType T>
25 this->survival = survival;
29template<ProgramType T>
32 if (this->type ==
"nsga2")
34 else if (this->type ==
"lexicase")
42template<ProgramType T>
46template<ProgramType T>
50template<ProgramType T>
54 return pselector->select(pop,
island, params);
58template<ProgramType T>
62 return pselector->survive(pop,
island, params);
void bind_engine(py::module &m, string name)
#define HANDLE_ERROR_THROW(err)
bool in(const V &v, const T &i)
check if element is in vector.
< nsga2 selection operator for getting the front
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