Public Member Functions | Protected Attributes

SteadyStateTournament Class Reference

Steady state algorithm with tournament elimination operator. More...

#include <AlgSteadyStateTournament.h>

Inheritance diagram for SteadyStateTournament:
Algorithm

List of all members.

Public Member Functions

bool advanceGeneration (StateP state, DemeP deme)
bool initialize (StateP state)
void registerParameters (StateP state)

Protected Attributes

uint nTournament_
 tournament size
SelectionOperatorP selRandomOp
SelectionOperatorP selWorstOp

Detailed Description

Steady state algorithm with tournament elimination operator.

Definition at line 9 of file AlgSteadyStateTournament.h.


Member Function Documentation

bool SteadyStateTournament::advanceGeneration ( StateP  ,
DemeP   
) [virtual]

Perform a single generation on a single deme.

Must be implemented by a specific algorithm class

this algorithm: one _generation_ is 'deme->size()' _iterations_

Implements Algorithm.

Definition at line 43 of file AlgSteadyStateTournament.cpp.

bool SteadyStateTournament::initialize ( StateP   )  [virtual]

Initialize the algorithm, read parameters from the system, do a sanity check.

Called by the system before the algorithm starts (Algorithm::advanceGeneration)

Reimplemented from Algorithm.

Definition at line 24 of file AlgSteadyStateTournament.cpp.

void SteadyStateTournament::registerParameters ( StateP   )  [virtual]

Register algorithm's parameters (if any).

Called by the system before algorithm initialization (Algorithm::initialize)

Reimplemented from Algorithm.

Definition at line 18 of file AlgSteadyStateTournament.cpp.


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