1#ifndef Evolution_Strategy_h
2#define Evolution_Strategy_h
54 SelectionOperatorP selBestOp_, selRandomOp_;
56 static bool compare(IndividualP first, IndividualP second)
57 {
return first->fitness->isBetterThan(second->fitness); }
60typedef boost::shared_ptr<EvolutionStrategy> EvolutionStrategyP;
(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)