ECF 1.5
glavni.cpp
1#include "ecf/ECF.h"
2
3class EvalOp : public EvaluateOp
4{
5protected:
6 StateP state_;
7
8public:
9 void registerParameters(StateP);
10// FitnessP evaluate(IndividualP individual);
11// std::vector<int> getTT(IndividualP individual, int& vars, uint genId = 0);
12// bool initialize(StateP);
13
14 uint nVariables;
15 int varijanta;
16 int targetNl;
17 std::vector< std::vector<bool> > inputMap;
18 std::vector< std::string > inputNames;
19 std::vector<bool> results;
20 std::vector<int> tt;
21 bool showTruth;
22 bool zadano;
23
24};
25typedef boost::shared_ptr<EvalOp> EvalOpP;
26
27
28void EvalOp::registerParameters(StateP state)
29{
30 state->getRegistry()->registerEntry("varijable", (voidP) (new uint(1)), ECF::UINT);
31 state->getRegistry()->registerEntry("varijanta", (voidP) (new int(1)), ECF::INT);
32 state->getRegistry()->registerEntry("nelinearnost", (voidP) (new int(0)), ECF::INT);
33}
34
35
36
37int main()
38{
39 return 0;
40}
Definition: EvalOp.h:6
void registerParameters(StateP)
Register evaluator parameters. Called before EvaluateOp::initialize method.
Evaluation base class.
Definition: EvaluateOp.h:17