ECF 1.5
AlgSGenGPEA.h
1#ifndef AlgSGenGPEA_h
2#define AlgSGenGPEA_h
3
4#include "ParallelAlgorithm.h"
5
11{
12public:
14 bool advanceGeneration(StateP state, DemeP deme);
15 bool initialize(StateP state);
16 void registerParameters(StateP state);
17
18protected:
19 uint jobSize; // no. of individuals in a single job
20 std::vector<IndividualP> myJob;
21
22 double crxRate;
23 double selPressure; // selection pressure
24 SelFitnessProportionalOpP selFitPropOp;
25 SelRandomOpP selRandomOp;
26 SelBestOpP selBestOp;
27};
28typedef boost::shared_ptr<AlgSGenGpea> AlgSGenGpeaP;
29
30#endif // AlgSGenGPEA_h
Synchronous generational global parallel algorithm.
Definition: AlgSGenGPEA.h:11
void registerParameters(StateP state)
Register algorithm's parameters (if any).
Definition: AlgSGenGPEA.cpp:19
bool initialize(StateP state)
Initialize the algorithm, read parameters from the system, do a sanity check.
Definition: AlgSGenGPEA.cpp:32
bool advanceGeneration(StateP state, DemeP deme)
Perform a single generation on a single deme.
Definition: AlgSGenGPEA.cpp:56
Parallel algorithm base class.