Tournament parent mechanism. More...
#include <select.h>
Inherits realea::ISelect.
Public Member Functions | |
SelectTournament (unsigned nam) | |
virtual void | select (PopulationRealPtr pop, unsigned *mom, unsigned *dad) |
Tournament parent mechanism.
It select the two parents using a 2 binary tournament
Definition at line 96 of file select.h.
SelectTournament::SelectTournament | ( | unsigned | nam | ) |
void SelectTournament::select | ( | PopulationRealPtr | pop, | |
unsigned * | mom, | |||
unsigned * | dad | |||
) | [virtual] |
Select two new parents from a population
pop | population from select the individuals | |
mom | mother of the crossover | |
dad | father of the crossover |
Implements realea::ISelect.