-
Notifications
You must be signed in to change notification settings - Fork 12
/
daoopt.cpp
62 lines (55 loc) · 1.49 KB
/
daoopt.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* daoopt.cpp
*
* Copyright (C) 2008-2012 Lars Otten
* This file is part of DAOOPT.
*
* DAOOPT is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* DAOOPT is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with DAOOPT. If not, see <http://www.gnu.org/licenses/>.
*
* Created on: Oct 13, 2008
* Author: Lars Otten <[email protected]>
*/
#include "Main.h"
/* define to enable diagnostic output of memory stats */
//#define MEMDEBUG
int main(int argc, char** argv) {
daoopt::Main main;
if (!main.start())
exit(1);
if (!main.parseOptions(argc, argv))
exit(1);
if (!main.outputInfo())
exit(1);
if (!main.loadProblem())
exit(1);
if (!main.preprocessHeuristic())
exit(1);
if (!main.runSLS())
exit(1);
if (!main.findOrLoadOrdering())
exit(1);
if (!main.initDataStructs())
exit(1);
if (!main.compileHeuristic())
exit(1);
if (!main.runLDS())
exit(1);
if (!main.finishPreproc())
exit(1);
if (!main.runSearch())
exit(1);
if (!main.outputStats())
exit(1);
return 0;
}