ECF 1.5
AlgGenHookeJeeves.h
1#ifndef AlgGenHookeJeeves_h
2#define AlgGenHookeJeeves_h
3
4#include "Algorithm.h"
5
6
11{
12public:
14 bool advanceGeneration(StateP state, DemeP deme);
15 bool initialize(StateP state);
16 void registerParameters(StateP state);
17
18protected:
19 std::vector<double> delta_;
20 std::vector<bool> changed_;
21 std::vector<bool> converged_;
22 uint convergedTotal_;
23 double precision_, initialMove_;
24 double lbound_, ubound_;
25 bool localOnly_;
26 bool areGenotypesAdded_;
27 SelectionOperatorP selFitPropOp_, selBestOp_, selRandomOp_;
28};
29typedef boost::shared_ptr<GenHookeJeeves> GenHookeJeevesP;
30
31#endif // AlgGenHookeJeeves_h
32
Algorithm base class.
Definition: Algorithm.h:20
new algorithm, in development
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.