-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainODBFT.cpp
executable file
·46 lines (31 loc) · 929 Bytes
/
mainODBFT.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// ===================================
// Main.cpp file generated by OptFrame
// Project ODBFT
// ===================================
#include <stdlib.h>
#include <math.h>
#include <iostream>
#include "../OptFrame/Util/RandGenMersenneTwister.hpp"
#include "../OptFrame/Util/CheckCommand.hpp"
#include "ODBFT.h"
using namespace std;
using namespace optframe;
using namespace ODBFT;
int main(int argc, char **argv)
{
RandGenMersenneTwister rg; // not using system rand() anymore
// Initialize here all your OptFrame components
// (ProblemInstance, Evaluator, Constructive, ...)
Scanner scanner("");
ProblemInstance p(scanner);
MyEvaluator ev(p);
NSSeqChangeNode ns1(p, rg);
ConstructiveRandom c1(p);
CheckCommand<RepODBFT> check;
check.add(ev);
check.add(c1);
check.add(ns1);
check.run(10,10);
cout << "Program ended successfully" << endl;
return 0;
}