scip_misc.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program */
4 /* GCG --- Generic Column Generation */
5 /* a Dantzig-Wolfe decomposition based extension */
6 /* of the branch-cut-and-price framework */
7 /* SCIP --- Solving Constraint Integer Programs */
8 /* */
9 /* Copyright (C) 2010-2018 Operations Research, RWTH Aachen University */
10 /* Zuse Institute Berlin (ZIB) */
11 /* */
12 /* This program is free software; you can redistribute it and/or */
13 /* modify it under the terms of the GNU Lesser General Public License */
14 /* as published by the Free Software Foundation; either version 3 */
15 /* of the License, or (at your option) any later version. */
16 /* */
17 /* This program is distributed in the hope that it will be useful, */
18 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
19 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
20 /* GNU Lesser General Public License for more details. */
21 /* */
22 /* You should have received a copy of the GNU Lesser General Public License */
23 /* along with this program; if not, write to the Free Software */
24 /* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.*/
25 /* */
26 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
27 
34 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
35 
36 #ifndef GCG_SCIP_MISC_H__
37 #define GCG_SCIP_MISC_H__
38 
39 #include "scip/scip.h"
40 #include "scip/cons_setppc.h"
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
47 typedef enum {
50 } consType;
51 
52 
54 extern
55 SCIP_Bool GCGisVarRelevant(
56  SCIP_VAR* var
57  );
58 
60 extern
61 consType GCGconsGetType(
62  SCIP_CONS* cons
63  );
64 
66 extern
67 SCIP_Real GCGconsGetRhs(
68  SCIP* scip,
69  SCIP_CONS* cons
70  );
71 
73 extern
74 SCIP_Real GCGconsGetLhs(
75  SCIP* scip,
76  SCIP_CONS* cons
77  );
78 
80 extern
81 SCIP_Real GCGconsGetDualfarkas(
82  SCIP* scip,
83  SCIP_CONS* cons
84  );
85 
87 extern
88 SCIP_Real GCGconsGetDualsol(
89  SCIP* scip,
90  SCIP_CONS* cons
91  );
92 
94 extern
95 int GCGconsGetNVars(
96  SCIP* scip,
97  SCIP_CONS* cons
98  );
99 
101 extern
102 SCIP_RETCODE GCGconsGetVars(
103  SCIP* scip,
104  SCIP_CONS* cons,
105  SCIP_VAR** vars,
106  int nvars
107  );
108 
110 extern
111 SCIP_RETCODE GCGconsGetVals(
112  SCIP* scip,
113  SCIP_CONS* cons,
114  SCIP_Real* vals,
115  int nvals
116  );
117 
119 SCIP_Bool GCGconsIsRanged(
120  SCIP* scip,
121  SCIP_CONS* cons
122 );
123 
125 SCIP_Bool GCGgetConsIsSetppc(
126  SCIP* scip,
127  SCIP_CONS* cons,
128  SCIP_SETPPCTYPE* setppctype
129  );
130 
132  SCIP* scip,
133  SCIP_CONS* cons
134 );
135 
136 
138 extern
139 SCIP_Bool GCGisRootNode(
140  SCIP* scip
141  );
142 
143 extern
144 SCIP_RETCODE GCGincludeDialogsGraph(
145  SCIP* scip
146  );
147 
148 #ifdef __cplusplus
149 }
150 #endif
151 
152 #endif /* GCG_SCIP_MISC_H_ */
SCIP_Bool GCGisVarRelevant(SCIP_VAR *var)
Definition: scip_misc.c:41
Definition: scip_misc.h:49
SCIP_Real GCGconsGetRhs(SCIP *scip, SCIP_CONS *cons)
Definition: scip_misc.c:107
SCIP_Real GCGconsGetDualfarkas(SCIP *scip, SCIP_CONS *cons)
Definition: scip_misc.c:302
Definition: scip_misc.h:49
consType
Definition: scip_misc.h:47
SCIP_Real GCGconsGetDualsol(SCIP *scip, SCIP_CONS *cons)
Definition: scip_misc.c:367
SCIP_Bool GCGgetConsIsCardinalityCons(SCIP *scip, SCIP_CONS *cons)
Definition: scip_misc.c:848
SCIP_Real GCGconsGetLhs(SCIP *scip, SCIP_CONS *cons)
Definition: scip_misc.c:205
int GCGconsGetNVars(SCIP *scip, SCIP_CONS *cons)
Definition: scip_misc.c:433
consType GCGconsGetType(SCIP_CONS *cons)
Definition: scip_misc.c:51
SCIP_RETCODE GCGincludeDialogsGraph(SCIP *scip)
SCIP_Bool GCGgetConsIsSetppc(SCIP *scip, SCIP_CONS *cons, SCIP_SETPPCTYPE *setppctype)
Definition: scip_misc.c:762
SCIP_RETCODE GCGconsGetVars(SCIP *scip, SCIP_CONS *cons, SCIP_VAR **vars, int nvars)
Definition: scip_misc.c:489
SCIP_RETCODE GCGconsGetVals(SCIP *scip, SCIP_CONS *cons, SCIP_Real *vals, int nvals)
Definition: scip_misc.c:620
SCIP_Bool GCGisRootNode(SCIP *scip)
Definition: scip_misc.c:920
SCIP_Bool GCGconsIsRanged(SCIP *scip, SCIP_CONS *cons)
Definition: scip_misc.c:743