ECF 1.5
AlgGeneticAnnealing.h
1#ifndef Genetic_Annealing_h
2#define Genetic_Annealing_h
3
4#include "Algorithm.h"
5
6
18{
19public:
21
22 bool advanceGeneration(StateP state, DemeP deme);
23 bool initialize(StateP state);
24 void registerParameters(StateP state);
25
26protected:
27 bool isFirstGeneration_;
28 double energyBank_;
29 double *Th; //threshold
30 double coolingF_; //factor of cooling 0<coolingF<1
31 double dE_; //reheating increment
32 SelBestOpP selBestOp_;
33 bool elitism_;
34
35};
36typedef boost::shared_ptr<GeneticAnnealing> GeneticAnnealingP;
37
38#endif // Genetic_Annealing_h
39
Algorithm base class.
Definition: Algorithm.h:20
Genetic annealing algorithm (see e.g. http://citeseerx.ist.psu.edu/viewdoc/summary?...
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.