ECF 1.5
main.cpp
1#include<iostream>
2#include "ECF/ECF.h"
3#include "../API/SolverSHC.h"
4#include "../API/SolverTournamentEA.h"
5#include "FlowshopEvalOp.h"
6
7
8int main(int argc, char** argv)
9{
10 StateP state (new State);
11
12 // add dynamic components
13 state->addAlgorithm((AlgorithmP) new SolverSHC);
14 state->addAlgorithm((AlgorithmP) new SolverTournamentEA);
15
16 // set problem (evaluator)
17 state->setEvalOp(new FlowshopEvalOp());
18
19 state->initialize(argc, argv);
20 state->run();
21
22 return 0;
23}
State class - backbone of the framework.
Definition: State.h:39