5#include "floatingpoint/FloatingPoint.h"
29 bool areGenotypesAdded_;
37 static bool sortPopulationByFitness (IndividualP ab1,IndividualP ab2) {
return ( ab1->fitness->isBetterThan(ab2->fitness)); }
46 bool cloningPhase(StateP state, DemeP deme, std::vector<IndividualP> &clones);
47 bool hypermutationPhase(StateP state, DemeP deme, std::vector<IndividualP> &clones);
48 bool agingPhase(StateP state, DemeP deme, std::vector<IndividualP> &clones);
49 bool selectionPhase(StateP state, DemeP deme, std::vector<IndividualP> &clones);
50 bool birthPhase(StateP state, DemeP deme, std::vector<IndividualP> &clones);
51 bool replacePopulation(StateP state, DemeP deme, std::vector<IndividualP> &clones);
54typedef boost::shared_ptr<OptIA> OptIAP;
Optimization Immune Algorithm (opt-IA, see e.g. http://www.artificial-immune-systems....
void registerParameters(StateP state)
Register algorithm's parameters (if any).
bool advanceGeneration(StateP state, DemeP deme)
Perform a single generation on a single deme.
bool replacePopulation(StateP state, DemeP deme, std::vector< IndividualP > &clones)
replace population with the contents of the clones vector
double c
mutation parameter
double tauB
maximum number of generations without improvement
bool initialize(StateP state)
Initialize the algorithm, read parameters from the system, do a sanity check.
bool elitism
specifies whether to use elitism or not
static bool sortPopulationByFitness(IndividualP ab1, IndividualP ab2)
sort vector of antibodies in regards to their fitness
uint dup
number of clones per antibody