-
Notifications
You must be signed in to change notification settings - Fork 1
/
color_parms.h
85 lines (63 loc) · 2.6 KB
/
color_parms.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#ifndef __COLOR_PARMS_H
#define __COLOR_PARMS_H
/**
This file is part of exactcolors.
exactcolors 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.
exactcolors 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 exactcolors. If not, see <http://www.gnu.org/licenses/>.
*/
enum COLORBranchingStrategy {
COLOR_min_strategy = 0,
COLOR_no_branching = COLOR_min_strategy,
COLOR_min_lb_strategy = 1,
COLOR_dfs_strategy = 2,
COLOR_hybrid_strategy = 3,
COLOR_max_strategy = 4
};
enum COLORRoundingStrategy {
COLOR_min_rounding_strategy = 0,
COLOR_neighbor_rounding = COLOR_min_strategy,
COLOR_uniform_rounding = 1,
COLOR_no_rounding = 2,
COLOR_max_rounding_strategy = 3
};
typedef struct COLORparms {
int write_mwis;
int initial_upper_bound;
int parallel_branching;
int branch_with_same_sequence;
int branching_strategy;
int rounding_strategy;
int delete_elists;
int delete_cclasses;
int upper_bounds_only;
double branching_cpu_limit;
char *edgefile;
char *outfile;
char *cclasses_infile;
char *cclasses_outfile;
char *color_infile;
char *backupdir;
} COLORparms;
void COLORparms_init(COLORparms*);
void COLORparms_free(COLORparms*);
int COLORparms_set_outfile(COLORparms* parms, const char* filename);
int COLORparms_set_edgefile(COLORparms* parms, const char* filename);
int COLORparms_set_cclasses_infile(COLORparms* parms, const char* filename);
int COLORparms_set_cclasses_outfile(COLORparms* parms,const char* filename);
int COLORparms_set_color_infile(COLORparms* parms, const char* filename);
int COLORparms_set_backupdir(COLORparms* parms, const char* filename);
int COLORparms_set_initial_upper_bound(COLORparms* parms,int bound);
int COLORparms_set_write_mwis(COLORparms* parms,int write_mwis);
int COLORparms_set_parallel(COLORparms* parms,int parallel);
int COLORparms_set_branching_cpu_limit(COLORparms* parms, double branching_cpu_limit);
int COLORparms_set_branching_strategy(COLORparms* parms, int strategy);
int COLORparms_set_rounding_strategy(COLORparms* parms, int strategy);
#endif