ECF 1.5
AlgAEliGPEA.h
1#ifndef AlgAEliGPEA_h
2#define AlgAEliGPEA_h
3
4#include "ParallelAlgorithm.h"
5
6
12{
13public:
15 bool advanceGeneration(StateP state, DemeP deme);
16 bool initialize(StateP state);
17 void registerParameters(StateP state);
18 void bcastTermination(StateP);
19
20protected:
21 uint jobSize_; // no. of individuals in a single job
22 std::vector<IndividualP> myJob_;
23 uint nTournament_; // tournament size
24
25 IndividualP performSingleTournament(DemeP deme);
26};
27typedef boost::shared_ptr<AlgAEliGpea> AlgAEliGpeaP;
28
29#endif // AlgAEliGPEA_h
Asynchronous elimination global parallel algorithm.
Definition: AlgAEliGPEA.h:12
void registerParameters(StateP state)
Register algorithm's parameters (if any).
Definition: AlgAEliGPEA.cpp:20
bool advanceGeneration(StateP state, DemeP deme)
Perform a single generation on a single deme.
Definition: AlgAEliGPEA.cpp:73
void bcastTermination(StateP)
Parallel ECF: broadcast termination to worker processes.
bool initialize(StateP state)
Initialize the algorithm, read parameters from the system, do a sanity check.
Definition: AlgAEliGPEA.cpp:30
Parallel algorithm base class.