ECF
1.5
D:
Projekt
ECF_trunk
examples
quantum
main.cpp
1
#include <ecf/ECF.h>
2
#include "QuantumEvalOp.h"
3
#include "IntGenotype.h"
4
#include "WriteBest.h"
5
6
7
int
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
}
IntGenotype::IntGenotype
Definition:
IntGenotype.h:14
QuantumEvalOp
Definition:
QuantumEvalOp.h:8
State
State class - backbone of the framework.
Definition:
State.h:39
WriteBest
Definition:
WriteBest.h:8
WriteBest::initialize
bool initialize(StateP state)
Perform initialization. Called before Operator::operate. By default, if the return value is false,...
Definition:
WriteBest.h:17
Generated on Wed Aug 3 2022 17:50:41 for ECF by
1.9.4