ECF 1.7
AlgAEliGPEA2.h
1#ifndef AlgAEliGPEA2_h
2#define AlgAEliGPEA2_h
3
4#include "ParallelAlgorithm.h"
5
9class AlgAEliGpea2 : public Algorithm
10{
11public:
12 AlgAEliGpea2();
13 bool advanceGeneration(StateP state, DemeP deme);
14 bool initialize(StateP state);
15 void registerParameters(StateP state);
16
17protected:
18 uint jobSize; // no. of individuals in a single job
19 std::vector<IndividualP> myJob;
20 uint nTournament; // tournament size
21};
22typedef boost::shared_ptr<AlgAEliGpea2> AlgAEliGpea2P;
23
24#endif // AlgAEliGPEA2_h
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.