ECF 1.5
SolverEvolutionStrategy.h
1#ifndef Solver_Evolution_Strategy_h
2#define Solver_Evolution_Strategy_h
3
4#include "Solver.h"
5
6
8{
9public:
11 bool advanceGeneration(StateP state, DemeP deme);
12 bool initialize(StateP state);
13 void registerParameters(StateP state);
14
15protected:
16 uint lambda_;
17 uint rho_;
18 uint mu_;
21 SelectionOperatorP selBestOp_, selRandomOp_;
22
23 static bool compare(IndividualP first, IndividualP second)
24 { return first->fitness->isBetterThan(second->fitness); }
25
26};
27typedef boost::shared_ptr<SolverEvolutionStrategy> SolverEvolutionStrategyP;
28
29#endif // Evolution_Strategy_h
30
bool initialize(StateP state)
Initialize the algorithm, read parameters from the system, do a sanity check.
void registerParameters(StateP state)
Register algorithm's parameters (if any).
uint rho_
number of parents (1 or 2)
bool advanceGeneration(StateP state, DemeP deme)
Perform a single generation on a single deme.
uint lambda_
number of offspring
uint mu_
the size of the parent population
uint subPopulations_
how many parent populations are in a deme
bool plusSelection_
type of selection (plus or comma)
Definition: Solver.h:9