[go: up one dir, main page]

Menu

[5e16fc]: / mct / main.tpl  Maximize  Restore  History

Download this file

47 lines (31 with data), 948 Bytes

 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 $name
// ===================================
#include <stdlib.h>
#include <math.h>
#include <iostream>
#include "../OptFrame/Util/RandGenMersenneTwister.hpp"
#include "../OptFrame/Util/CheckCommand.hpp"
#include "$project.h"
using namespace std;
using namespace optframe;
using namespace $project;
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);
NSSeq$neighborhood ns1(p, rg);
Constructive$constructive c1(p);
CheckCommand<Rep$project> check;
check.add(ev);
check.add(c1);
check.add(ns1);
check.run(10,10);
cout << "Program ended successfully" << endl;
return 0;
}