realea::SelectTournament Class Reference

Tournament parent mechanism. More...

#include <select.h>

Inherits realea::ISelect.

Collaboration diagram for realea::SelectTournament:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SelectTournament (unsigned nam)
virtual void select (PopulationRealPtr pop, unsigned *mom, unsigned *dad)

Detailed Description

Tournament parent mechanism.

It select the two parents using a 2 binary tournament

Definition at line 96 of file select.h.


Constructor & Destructor Documentation

SelectTournament::SelectTournament ( unsigned  nam  ) 

Constructor.

Parameters:
random Random number generator
nam number of individuals in each tournament

Definition at line 64 of file select.cc.


Member Function Documentation

void SelectTournament::select ( PopulationRealPtr  pop,
unsigned *  mom,
unsigned *  dad 
) [virtual]

Select two new parents from a population

Parameters:
pop population from select the individuals
mom mother of the crossover
dad father of the crossover

Implements realea::ISelect.

Definition at line 97 of file select.cc.


The documentation for this class was generated from the following files:

Generated on Sun May 9 12:44:37 2010 for MA-CMA-Chains by  doxygen 1.6.1