2#include "FunctionMinEvalOp.h"
4#include "ecf/AlgGenHookeJeeves.h"
13int main(
int argc,
char **argv)
15 StateP state (
new State);
21 state->addAlgorithm(alg);
23 state->initialize(argc, argv);
30 ofstream fajl(
"popis.txt");
31 for(uint i = 0; i < state->getPopulation()->getLocalDeme()->getSize(); i++) {
32 IndividualP ind = state->getPopulation()->getLocalDeme()->at(i);
33 fajl << ind->fitness->getValue() <<
"\t";
34 FloatingPointP fp = boost::static_pointer_cast<FloatingPoint::FloatingPoint> (ind->getGenotype());
35 for(uint dim = 0; dim < fp->realValue.size(); dim++)
36 fajl << fp->realValue[dim] <<
"\t";
37 fp = boost::static_pointer_cast<FloatingPoint::FloatingPoint> (ind->getGenotype(2));
38 fajl << fp->realValue[0];
Function minimization evaluation class.
new algorithm, in development
State class - backbone of the framework.