53 #if !defined(LIBEVOCOSM_REPRODUCER_H)
54 #define LIBEVOCOSM_REPRODUCER_H
71 template <
class OrganismType>
96 virtual vector<OrganismType>
breed(
const vector<OrganismType> & a_population,
size_t a_limit) = 0;
A toolkit and framework for implementing evolutionary algorithms.
Definition: analyzer.h:60
Elements shared by all classes in Evocosm.
Definition: evocommon.h:117
virtual ~reproducer()
Virtual destructor.
Definition: reproducer.h:83
Creates new organisms from an existing population.
Definition: reproducer.h:72
virtual vector< OrganismType > breed(const vector< OrganismType > &a_population, size_t a_limit)=0
Creates children.