BALL
1.4.79
|
#include <BALL/DOCKING/GENETICDOCK/geneticAlgorithm.h>
Public Member Functions | |
GeneticAlgorithm () | |
GeneticAlgorithm (const GeneticAlgorithm &ga) | |
GeneticAlgorithm (DockingAlgorithm *docker, DockProblem *, int pop_number, int iter, int init, int pop, int surv, double mrate, int save, int citer, double cvalue, int cstart) | |
virtual | ~GeneticAlgorithm () |
virtual GeneticAlgorithm & | operator= (const GeneticAlgorithm &ga) |
void | setup (DockProblem *, int pop_number, int iter, int init, int pop, int surv, double mrate, int save, int citer, double cvalue, int cstart) |
virtual void | start () |
virtual double | getValue () |
GeneticIndividual * | getIndividual (Index i) |
bool | registerParameter (GenericParameter *) |
Protected Member Functions | |
double | calculate (GeneticIndividual *) |
void | select (Size) |
void | mate () |
void | mutate () |
void | cleanUp () |
void | cleanPool (vector< GeneticIndividual > &pool) |
bool | multiDemeCheck () |
void | updatePool () |
Protected Attributes | |
vector< GenericParameter * > | parameters_ |
Size | population_size_ |
std::vector< std::vector < GeneticIndividual > > | pools_ |
std::vector< std::pair < GeneticIndividual *, GeneticIndividual * > > | selected_ |
std::vector< double > | probabilities_ |
DockProblem * | gp_ |
Size | max_iterations_ |
Size | immune_ |
double | mutation_rate_ |
Size | iteration_ |
Size | survivors_ |
int | conv_start_ |
bool | finished_ |
DockingAlgorithm * | docking_algorithm_ |
RandomNumberGenerator | rng_ |
GeneticIndividual | template_individual_ |
Friends | |
class | EvolutionaryDocking |
Definition at line 21 of file geneticAlgorithm.h.
BALL::GeneticAlgorithm::GeneticAlgorithm | ( | ) |
default constructor
BALL::GeneticAlgorithm::GeneticAlgorithm | ( | const GeneticAlgorithm & | ga | ) |
copy constructor
BALL::GeneticAlgorithm::GeneticAlgorithm | ( | DockingAlgorithm * | docker, |
DockProblem * | , | ||
int | pop_number, | ||
int | iter, | ||
int | init, | ||
int | pop, | ||
int | surv, | ||
double | mrate, | ||
int | save, | ||
int | citer, | ||
double | cvalue, | ||
int | cstart | ||
) |
constructor
|
virtual |
default destructor
|
protected |
|
protected |
sorts the given pool according to the fitness values of its members and keeps only the best survivors_>ones (#best ones = survivors_)
|
protected |
discard individuals
GeneticIndividual* BALL::GeneticAlgorithm::getIndividual | ( | Index | i | ) |
get i-th individual?!?!?
|
inlinevirtual |
Definition at line 83 of file geneticAlgorithm.h.
|
protected |
produce offsprings
|
protected |
check for migration between populations
|
protected |
random alteration
|
virtual |
assignment operator
bool BALL::GeneticAlgorithm::registerParameter | ( | GenericParameter * | ) |
register a parameter for optimization
|
protected |
select individuals for mating
void BALL::GeneticAlgorithm::setup | ( | DockProblem * | , |
int | pop_number, | ||
int | iter, | ||
int | init, | ||
int | pop, | ||
int | surv, | ||
double | mrate, | ||
int | save, | ||
int | citer, | ||
double | cvalue, | ||
int | cstart | ||
) |
clone methodsetup method
|
virtual |
optimize pool
|
protected |
assign fitness score
|
friend |
Definition at line 24 of file geneticAlgorithm.h.
|
protected |
iteration for the first convergence test
Definition at line 168 of file geneticAlgorithm.h.
|
protected |
Definition at line 174 of file geneticAlgorithm.h.
|
protected |
true if algorithm has stopped
Definition at line 172 of file geneticAlgorithm.h.
|
protected |
assings fitness score to individuals
Definition at line 144 of file geneticAlgorithm.h.
|
protected |
number of individuals immune to mutation
Definition at line 152 of file geneticAlgorithm.h.
|
protected |
count iterations during optimizaton
Definition at line 160 of file geneticAlgorithm.h.
|
protected |
number of iterations
Definition at line 148 of file geneticAlgorithm.h.
|
protected |
fraction of individuals to be mutated
Definition at line 156 of file geneticAlgorithm.h.
|
protected |
Definition at line 97 of file geneticAlgorithm.h.
|
protected |
vector of populations
Definition at line 132 of file geneticAlgorithm.h.
|
protected |
size of one population
Definition at line 128 of file geneticAlgorithm.h.
|
protected |
probabilities for rank weighting
Definition at line 140 of file geneticAlgorithm.h.
|
protected |
Definition at line 178 of file geneticAlgorithm.h.
|
protected |
vector of selected individuals
Definition at line 136 of file geneticAlgorithm.h.
|
protected |
number of individuals surviving an iteration
Definition at line 164 of file geneticAlgorithm.h.
|
protected |
used to initialize new individuals
Definition at line 182 of file geneticAlgorithm.h.