ECF 1.5
AlgEvolutionStrategy.h
1#ifndef Evolution_Strategy_h
2#define Evolution_Strategy_h
3
4#include "Algorithm.h"
5
6
41{
42public:
44 bool advanceGeneration(StateP state, DemeP deme);
45 bool initialize(StateP state);
46 void registerParameters(StateP state);
47
48protected:
49 uint lambda_;
50 uint rho_;
51 uint mu_;
54 SelectionOperatorP selBestOp_, selRandomOp_;
55
56 static bool compare(IndividualP first, IndividualP second)
57 { return first->fitness->isBetterThan(second->fitness); }
58
59};
60typedef boost::shared_ptr<EvolutionStrategy> EvolutionStrategyP;
61
62#endif // Evolution_Strategy_h
63
Algorithm base class.
Definition: Algorithm.h:20
(mu/rho +/, lambda) - Evolution Strategy (ES) algorithm.
uint rho_
number of parents (1 or 2)
uint mu_
the size of the parent population
void registerParameters(StateP state)
Register algorithm's parameters (if any).
uint lambda_
number of offspring
bool initialize(StateP state)
Initialize the algorithm, read parameters from the system, do a sanity check.
bool advanceGeneration(StateP state, DemeP deme)
Perform a single generation on a single deme.
uint subPopulations_
how many parent populations are in a deme
bool plusSelection_
type of selection (plus or comma)