ECF 1.5
AlgElimination.h
1#ifndef Elimination_h
2#define Elimination_h
3
4#include "Algorithm.h"
5#include "SelFitnessProportionalOp.h"
6#include "SelRandomOp.h"
7#include "SelBestOp.h"
8
25class Elimination : public Algorithm
26{
27public:
29 bool advanceGeneration(StateP state, DemeP deme);
30 bool initialize(StateP state);
31 void registerParameters(StateP state);
32
33protected:
34 double genGap_;
35 double selPressure_;
36 SelFitnessProportionalOpP selFitPropOp;
37 SelRandomOpP selRandomOp;
38 SelBestOpP selBestOp;
39};
40typedef boost::shared_ptr<Elimination> EliminationP;
41
42#endif // Elimination_h
Algorithm base class.
Definition: Algorithm.h:20
Elimination (generation gap) algorithm with roulette wheel elimination selection operator.
double selPressure_
selection pressure
double genGap_
generation gap
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.