ECF 1.5
main.cpp
1#include <ecf/ECF.h>
2#include "QuantumEvalOp.h"
3#include "IntGenotype.h"
4#include "WriteBest.h"
5
6
7int main(int argc, char** argv)
8{
9 StateP state (new State);
10
11 // set the evaluation operator
12 state->setEvalOp(new QuantumEvalOp);
13
14 IntGenotypeP gen(new IntGenotype::IntGenotype);
15 state->addGenotype(gen);
16
17 WriteBest* op = new WriteBest;
18 state->addOperator((OperatorP) op);
19
20 state->initialize(argc, argv);
21 state->run();
22
23 return 0;
24}
State class - backbone of the framework.
Definition: State.h:39
bool initialize(StateP state)
Perform initialization. Called before Operator::operate. By default, if the return value is false,...
Definition: WriteBest.h:17