-
Notifications
You must be signed in to change notification settings - Fork 2
/
config_params.h
58 lines (44 loc) · 1.2 KB
/
config_params.h
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
#ifndef CLUSTERING_CONFIG_PARAMS_H
#define CLUSTERING_CONFIG_PARAMS_H
#define BEST_FIRST 0
#define DEPTH_FIRST 1
#define BREADTH_FIRST 2
#define ZERO 0
#define ONE 1
#define IN 2
#define BINARY 2
#define TERNARY 3
extern std::ofstream log_file;
extern std::stringstream log_string;
typedef struct Config {
const char *data_path;
const char *log_path;
const char *result_path;
// branch and bound setting
double branch_and_bound_tol;
int branch_and_bound_parallel;
int branch_and_bound_max_nodes;
int branch_and_bound_visiting_strategy;
int branch_and_bound_fixing;
double branch_and_bound_fixing_tol;
// matlab setting
int matlab_session_threads_root;
int matlab_session_threads_child;
const char *matlab_source_folder;
// sdp setting
double sdp_solver_tol;
int sdp_solver_verbose;
// additional solvers
const char *snopt_folder;
const char *snopt_license;
const char *gurobi_folder;
const char *sdpnal_folder;
// cutting plane setting
int cp_max_iter;
double cp_tol;
int cp_max_ineq;
double cp_perc_ineq;
double cp_eps_ineq;
double cp_eps_active;
} Config;
#endif //CLUSTERING_CONFIG_PARAMS_H