Optimization Immune Algorithm (opt-IA, see e.g. http://www.artificial-immune-systems.org/algorithms.shtml).This opt-IA implements:
#include <AlgOptIA.h>
Public Member Functions | |
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. | |
bool | advanceGeneration (StateP state, DemeP deme) |
Perform a single generation on a single deme. | |
bool | cloningPhase (StateP state, DemeP deme, std::vector< IndividualP > &clones) |
bool | hypermutationPhase (StateP state, DemeP deme, std::vector< IndividualP > &clones) |
bool | agingPhase (StateP state, DemeP deme, std::vector< IndividualP > &clones) |
bool | selectionPhase (StateP state, DemeP deme, std::vector< IndividualP > &clones) |
bool | birthPhase (StateP state, DemeP deme, std::vector< IndividualP > &clones) |
bool | replacePopulation (StateP state, DemeP deme, std::vector< IndividualP > &clones) |
replace population with the contents of the clones vector | |
Static Protected Member Functions | |
static bool | sortPopulationByFitness (IndividualP ab1, IndividualP ab2) |
sort vector of antibodies in regards to their fitness | |
Protected Attributes | |
double | ubound |
double | lbound |
uint | dimension |
bool | areGenotypesAdded_ |
uint | dup |
number of clones per antibody | |
double | c |
mutation parameter | |
double | tauB |
maximum number of generations without improvement | |
bool | elitism |
specifies whether to use elitism or not |
Optimization Immune Algorithm (opt-IA, see e.g. http://www.artificial-immune-systems.org/algorithms.shtml).
This opt-IA implements:
opt-IA algorithm accepts only a single FloatingPoint genotype. Additionally, opt-IA adds a FloatingPoint genotype (age).
Definition at line 22 of file AlgOptIA.h.
bool OptIA::advanceGeneration | ( | StateP | , | |
DemeP | ||||
) | [virtual] |
Perform a single generation on a single deme.
Must be implemented by a specific algorithm class
Implements Algorithm.
Definition at line 93 of file AlgOptIA.cpp.
bool OptIA::initialize | ( | StateP | ) | [virtual] |
Initialize the algorithm, read parameters from the system, do a sanity check.
Called by the system before the algorithm starts (Algorithm::advanceGeneration)
Reimplemented from Algorithm.
Definition at line 29 of file AlgOptIA.cpp.
void OptIA::registerParameters | ( | StateP | ) | [virtual] |
Register algorithm's parameters (if any).
Called by the system before algorithm initialization (Algorithm::initialize)
Reimplemented from Algorithm.
Definition at line 16 of file AlgOptIA.cpp.