It represents an Evolutionary Algorithm.
More...
#include <ea.h>
Inherits Resetable.
List of all members.
Detailed Description
It represents an Evolutionary Algorithm.
Definition at line 40 of file ea.h.
Constructor & Destructor Documentation
EAlgorithm::EAlgorithm |
( |
IEAlgorithm * |
alg, |
|
|
ProblemParamPtr |
problem | |
|
) |
| | |
Constructor.
- Parameters:
-
Definition at line 29 of file ea.cc.
EAlgorithm::~EAlgorithm |
( |
void |
|
) |
[virtual] |
Destructor. Remove the Populations.
Definition at line 67 of file ea.cc.
Member Function Documentation
unsigned EAlgorithm::apply |
( |
tChromosomeReal & |
sol, |
|
|
tFitness * |
pfitness | |
|
) |
| | |
Apply the algorithm
- Parameters:
-
| sol | best found solution, output |
| pfitness | fitness of the best solution, output |
- Returns:
- the evaluation numbers required for achieve the solution
Este método es el llamado para resolver el algoritmo evolutivo, si no se especificó una llamada de popsize le asigna el menor valor
Definition at line 111 of file ea.cc.
- Returns:
- the running criterion.
Definition at line 87 of file ea.cc.
void EAlgorithm::setMaxEval |
( |
unsigned int |
maxeval |
) |
|
Set the maximum number of evaluations
- Parameters:
-
Definition at line 79 of file ea.cc.
void EAlgorithm::setPopsize |
( |
unsigned int |
popsize |
) |
[virtual] |
Allow to set the popsize
- Parameters:
-
| popsize | size of population |
Definition at line 83 of file ea.cc.
void EAlgorithm::setShow |
( |
Statistics * |
stat |
) |
|
Set the class that obtain the statistical information
- Parameters:
-
Definition at line 33 of file ea.cc.
Member Data Documentation
Default Popsize (obtained by setDefaultSize)
Definition at line 126 of file ea.h.
Eval the solution
- Parameters:
-
| newind | individual, it is updated with the fitness IEAlgorithm |
Definition at line 123 of file ea.h.
Crossover operator
Definition at line 127 of file ea.h.
Statistical class
Definition at line 128 of file ea.h.
The documentation for this class was generated from the following files: