ECF 1.5
AlgSteadyStateTournament.h
1#ifndef Steady_State_Tournament_h
2#define Steady_State_Tournament_h
3
4#include "Algorithm.h"
5
28{
29public:
31 bool advanceGeneration(StateP state, DemeP deme);
32 bool initialize(StateP state);
33 void registerParameters(StateP state);
34
35protected:
37 SelectionOperatorP selRandomOp, selWorstOp;
38
39};
40typedef boost::shared_ptr<SteadyStateTournament> SteadyStateTournamentP;
41
42#endif // Steady_State_Tournament_h
43
Algorithm base class.
Definition: Algorithm.h:20
Steady state algorithm with tournament elimination operator.
bool advanceGeneration(StateP state, DemeP deme)
Perform a single generation on a single deme.
void registerParameters(StateP state)
Register algorithm's parameters (if any).
bool initialize(StateP state)
Initialize the algorithm, read parameters from the system, do a sanity check.
uint nTournament_
tournament size