Scippy

SCIP

Solving Constraint Integer Programs

implics.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program and library */
4 /* SCIP --- Solving Constraint Integer Programs */
5 /* */
6 /* Copyright (C) 2002-2016 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SCIP is distributed under the terms of the ZIB Academic License. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SCIP; see the file COPYING. If not email to scip@zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file implics.h
17  * @brief methods for implications, variable bounds, and cliques
18  * @author Tobias Achterberg
19  */
20 
21 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
22 
23 #ifndef __SCIP_IMPLICS_H__
24 #define __SCIP_IMPLICS_H__
25 
26 
27 #include "scip/def.h"
28 #include "blockmemshell/memory.h"
29 #include "scip/type_retcode.h"
30 #include "scip/type_set.h"
31 #include "scip/type_stat.h"
32 #include "scip/type_event.h"
33 #include "scip/type_lp.h"
34 #include "scip/type_var.h"
35 #include "scip/type_implics.h"
36 #include "scip/type_branch.h"
37 #include "scip/pub_implics.h"
38 
39 #ifdef NDEBUG
40 #include "scip/struct_implics.h"
41 #endif
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
47 /*
48  * Methods for Variable Bounds
49  */
50 
51 /** frees a variable bounds data structure */
52 extern
53 void SCIPvboundsFree(
54  SCIP_VBOUNDS** vbounds, /**< pointer to store variable bounds data structure */
55  BMS_BLKMEM* blkmem /**< block memory */
56  );
57 
58 /** adds a variable bound to the variable bounds data structure */
59 extern
61  SCIP_VBOUNDS** vbounds, /**< pointer to variable bounds data structure */
62  BMS_BLKMEM* blkmem, /**< block memory */
63  SCIP_SET* set, /**< global SCIP settings */
64  SCIP_BOUNDTYPE vboundtype, /**< type of variable bound (LOWER or UPPER) */
65  SCIP_VAR* var, /**< variable z in x <= b*z + d or x >= b*z + d */
66  SCIP_Real coef, /**< coefficient b in x <= b*z + d or x >= b*z + d */
67  SCIP_Real constant, /**< constant d in x <= b*z + d or x >= b*z + d */
68  SCIP_Bool* added /**< pointer to store whether the variable bound was added */
69  );
70 
71 /** removes from variable x a variable bound x >=/<= b*z + d with binary or integer z */
72 extern
74  SCIP_VBOUNDS** vbounds, /**< pointer to variable bounds data structure */
75  BMS_BLKMEM* blkmem, /**< block memory */
76  SCIP_VAR* vbdvar, /**< variable z in x >=/<= b*z + d */
77  SCIP_Bool negativecoef /**< is coefficient b negative? */
78  );
79 
80 /** reduces the number of variable bounds stored in the given variable bounds data structure */
82  SCIP_VBOUNDS** vbounds, /**< pointer to variable bounds data structure */
83  BMS_BLKMEM* blkmem, /**< block memory */
84  int newnvbds /**< new number of variable bounds */
85  );
86 
87 
88 /** gets number of variable bounds contained in given variable bounds data structure */
89 extern
91  SCIP_VBOUNDS* vbounds /**< variable bounds data structure */
92  );
93 
94 /** gets array of variables contained in given variable bounds data structure */
95 extern
97  SCIP_VBOUNDS* vbounds /**< variable bounds data structure */
98  );
99 
100 /** gets array of coefficients contained in given variable bounds data structure */
101 extern
103  SCIP_VBOUNDS* vbounds /**< variable bounds data structure */
104  );
105 
106 /** gets array of constants contained in given variable bounds data structure */
107 extern
109  SCIP_VBOUNDS* vbounds /**< variable bounds data structure */
110  );
111 
112 #ifdef NDEBUG
113 
114 /* In optimized mode, the function calls are overwritten by defines to reduce the number of function calls and
115  * speed up the algorithms.
116  */
117 
118 #define SCIPvboundsGetNVbds(vbounds) ((vbounds) != NULL ? (vbounds)->len : 0)
119 #define SCIPvboundsGetVars(vbounds) ((vbounds) != NULL ? (vbounds)->vars : NULL)
120 #define SCIPvboundsGetCoefs(vbounds) ((vbounds) != NULL ? (vbounds)->coefs : NULL)
121 #define SCIPvboundsGetConstants(vbounds) ((vbounds) != NULL ? (vbounds)->constants : NULL)
122 
123 #endif
124 
125 
126 
127 
128 /*
129  * Methods for Implications
130  */
131 
132 /** frees an implications data structure */
133 extern
134 void SCIPimplicsFree(
135  SCIP_IMPLICS** implics, /**< pointer of implications data structure to free */
136  BMS_BLKMEM* blkmem /**< block memory */
137  );
138 
139 /** adds an implication x == 0/1 -> y <= b or y >= b to the implications data structure;
140  * the implication must be non-redundant
141  */
142 extern
144  SCIP_IMPLICS** implics, /**< pointer to implications data structure */
145  BMS_BLKMEM* blkmem, /**< block memory */
146  SCIP_SET* set, /**< global SCIP settings */
147  SCIP_STAT* stat, /**< problem statistics */
148  SCIP_Bool varfixing, /**< FALSE if implication for x == 0 has to be added, TRUE for x == 1 */
149  SCIP_VAR* implvar, /**< variable y in implication y <= b or y >= b */
150  SCIP_BOUNDTYPE impltype, /**< type of implication y <= b (SCIP_BOUNDTYPE_UPPER) or y >= b (SCIP_BOUNDTYPE_LOWER) */
151  SCIP_Real implbound, /**< bound b in implication y <= b or y >= b */
152  SCIP_Bool isshortcut, /**< is the implication a shortcut, i.e., added as part of the transitive closure of another implication? */
153  SCIP_Bool* conflict, /**< pointer to store whether implication causes a conflict for variable x */
154  SCIP_Bool* added /**< pointer to store whether the implication was added */
155  );
156 
157 /** removes the implication x <= 0 or x >= 1 ==> y <= b or y >= b from the implications data structure */
158 extern
160  SCIP_IMPLICS** implics, /**< pointer to implications data structure */
161  BMS_BLKMEM* blkmem, /**< block memory */
162  SCIP_SET* set, /**< global SCIP settings */
163  SCIP_Bool varfixing, /**< FALSE if y should be removed from implications for x <= 0, TRUE for x >= 1 */
164  SCIP_VAR* implvar, /**< variable y in implication y <= b or y >= b */
165  SCIP_BOUNDTYPE impltype /**< type of implication y <= b (SCIP_BOUNDTYPE_UPPER) or y >= b (SCIP_BOUNDTYPE_LOWER) */
166  );
167 
168 /** returns which implications on given variable y are contained in implications for x == 0 or x == 1 */
169 extern
171  SCIP_IMPLICS* implics, /**< implications data structure */
172  SCIP_Bool varfixing, /**< FALSE if y should be searched in implications for x == 0, TRUE for x == 1 */
173  SCIP_VAR* implvar, /**< variable y to search for */
174  SCIP_Bool* haslowerimplic, /**< pointer to store whether there exists an implication y >= l */
175  SCIP_Bool* hasupperimplic /**< pointer to store whether there exists an implication y <= u */
176  );
177 
178 /** returns whether an implication y <= b or y >= b is contained in implications for x == 0 or x == 1 */
179 extern
181  SCIP_IMPLICS* implics, /**< implications data structure */
182  SCIP_Bool varfixing, /**< FALSE if y should be searched in implications for x == 0, TRUE for x == 1 */
183  SCIP_VAR* implvar, /**< variable y to search for */
184  SCIP_BOUNDTYPE impltype /**< type of implication y <=/>= b to search for */
185  );
186 
187 
188 /** gets number of implications for a given binary variable fixing */
189 extern
191  SCIP_IMPLICS* implics, /**< implication data */
192  SCIP_Bool varfixing /**< should the implications on var == FALSE or var == TRUE be returned? */
193  );
194 
195 /** gets array with implied variables for a given binary variable fixing */
196 extern
198  SCIP_IMPLICS* implics, /**< implication data */
199  SCIP_Bool varfixing /**< should the implications on var == FALSE or var == TRUE be returned? */
200  );
201 
202 /** gets array with implication types for a given binary variable fixing */
203 extern
205  SCIP_IMPLICS* implics, /**< implication data */
206  SCIP_Bool varfixing /**< should the implications on var == FALSE or var == TRUE be returned? */
207  );
208 
209 /** gets array with implication bounds for a given binary variable fixing */
210 extern
212  SCIP_IMPLICS* implics, /**< implication data */
213  SCIP_Bool varfixing /**< should the implications on var == FALSE or var == TRUE be returned? */
214  );
215 
216 /** Gets array with unique implication identifiers for a given binary variable fixing.
217  * If an implication is a shortcut, i.e., it was added as part of the transitive closure of another implication,
218  * its id is negative, otherwise it is nonnegative.
219  */
220 extern
221 int* SCIPimplicsGetIds(
222  SCIP_IMPLICS* implics, /**< implication data */
223  SCIP_Bool varfixing /**< should the implications on var == FALSE or var == TRUE be returned? */
224  );
225 
226 #ifdef NDEBUG
227 
228 /* In optimized mode, the function calls are overwritten by defines to reduce the number of function calls and
229  * speed up the algorithms.
230  */
231 
232 #define SCIPimplicsGetNImpls(implics, varfixing) ((implics) != NULL ? (implics)->nimpls[varfixing] : 0)
233 #define SCIPimplicsGetNBinImpls(implics, varfixing) ((implics) != NULL ? (implics)->nbinimpls[varfixing] : 0)
234 #define SCIPimplicsGetVars(implics, varfixing) ((implics) != NULL ? (implics)->vars[varfixing] : NULL)
235 #define SCIPimplicsGetTypes(implics, varfixing) ((implics) != NULL ? (implics)->types[varfixing] : NULL)
236 #define SCIPimplicsGetBounds(implics, varfixing) ((implics) != NULL ? (implics)->bounds[varfixing] : NULL)
237 #define SCIPimplicsGetIds(implics, varfixing) ((implics) != NULL ? (implics)->ids[varfixing] : NULL)
238 
239 #endif
240 
241 
242 
243 
244 /*
245  * methods for cliques
246  */
247 
248 /** adds a single variable to the given clique */
249 extern
251  SCIP_CLIQUE* clique, /**< clique data structure */
252  BMS_BLKMEM* blkmem, /**< block memory */
253  SCIP_SET* set, /**< global SCIP settings */
254  SCIP_VAR* var, /**< variable to add to the clique */
255  SCIP_Bool value, /**< value of the variable in the clique */
256  SCIP_Bool* doubleentry, /**< pointer to store whether the variable and value occurs twice in the clique */
257  SCIP_Bool* oppositeentry /**< pointer to store whether the variable with opposite value is in the clique */
258  );
259 
260 /** removes a single variable from the given clique */
261 extern
262 void SCIPcliqueDelVar(
263  SCIP_CLIQUE* clique, /**< clique data structure */
264  SCIP_CLIQUETABLE* cliquetable, /**< clique table data structure */
265  SCIP_VAR* var, /**< variable to remove from the clique */
266  SCIP_Bool value /**< value of the variable in the clique */
267  );
268 
269 /** frees a clique list data structure */
270 extern
271 void SCIPcliquelistFree(
272  SCIP_CLIQUELIST** cliquelist, /**< pointer to the clique list data structure */
273  BMS_BLKMEM* blkmem /**< block memory */
274  );
275 
276 /** adds a clique to the clique list */
277 extern
279  SCIP_CLIQUELIST** cliquelist, /**< pointer to the clique list data structure */
280  BMS_BLKMEM* blkmem, /**< block memory */
281  SCIP_SET* set, /**< global SCIP settings */
282  SCIP_Bool value, /**< value of the variable for which the clique list should be extended */
283  SCIP_CLIQUE* clique /**< clique that should be added to the clique list */
284  );
285 
286 /** removes a clique from the clique list */
287 extern
289  SCIP_CLIQUELIST** cliquelist, /**< pointer to the clique list data structure */
290  BMS_BLKMEM* blkmem, /**< block memory */
291  SCIP_Bool value, /**< value of the variable for which the clique list should be reduced */
292  SCIP_CLIQUE* clique /**< clique that should be deleted from the clique list */
293  );
294 
295 /** returns whether the given clique lists have a non-empty intersection, i.e. whether there is a clique that appears
296  * in both lists
297  */
298 extern
300  SCIP_CLIQUELIST* cliquelist1, /**< first clique list data structure */
301  SCIP_Bool value1, /**< value of first variable */
302  SCIP_CLIQUELIST* cliquelist2, /**< second clique list data structure */
303  SCIP_Bool value2 /**< value of second variable */
304  );
305 
306 /** removes all listed entries from the cliques */
307 extern
309  SCIP_CLIQUELIST* cliquelist, /**< clique list data structure */
310  SCIP_CLIQUETABLE* cliquetable, /**< clique table data structure */
311  SCIP_VAR* var, /**< active problem variable the clique list belongs to */
312  SCIP_Bool irrelevantvar /**< has the variable become irrelevant, meaning that equality
313  * cliques need to be relaxed? */
314  );
315 
316 /** creates a clique table data structure */
317 extern
319  SCIP_CLIQUETABLE** cliquetable, /**< pointer to store clique table data structure */
320  SCIP_SET* set, /**< global SCIP settings */
321  BMS_BLKMEM* blkmem /**< block memory */
322  );
323 
324 /** frees a clique table data structure */
325 extern
327  SCIP_CLIQUETABLE** cliquetable, /**< pointer to store clique table data structure */
328  BMS_BLKMEM* blkmem /**< block memory */
329  );
330 
331 /** adds a clique to the clique table, using the given values for the given variables;
332  * performs implications if the clique contains the same variable twice
333  */
334 extern
336  SCIP_CLIQUETABLE* cliquetable, /**< clique table data structure */
337  BMS_BLKMEM* blkmem, /**< block memory */
338  SCIP_SET* set, /**< global SCIP settings */
339  SCIP_STAT* stat, /**< problem statistics */
340  SCIP_PROB* transprob, /**< transformed problem */
341  SCIP_PROB* origprob, /**< original problem */
342  SCIP_TREE* tree, /**< branch and bound tree if in solving stage */
343  SCIP_REOPT* reopt, /**< reoptimization data structure */
344  SCIP_LP* lp, /**< current LP data */
345  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
346  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
347  SCIP_VAR** vars, /**< binary variables in the clique: at most one can be set to the given value */
348  SCIP_Bool* values, /**< values of the variables in the clique; NULL to use TRUE for all vars */
349  int nvars, /**< number of variables in the clique */
350  SCIP_Bool isequation, /**< is the clique an equation or an inequality? */
351  SCIP_Bool* infeasible, /**< pointer to store whether an infeasibility was detected */
352  int* nbdchgs /**< pointer to count the number of performed bound changes, or NULL */
353  );
354 
355 /** removes all empty and single variable cliques from the clique table; removes double entries from the clique table
356  *
357  * @note cliques can be processed several times by this method
358  */
359 extern
361  SCIP_CLIQUETABLE* cliquetable, /**< clique table data structure */
362  BMS_BLKMEM* blkmem, /**< block memory */
363  SCIP_SET* set, /**< global SCIP settings */
364  SCIP_STAT* stat, /**< problem statistics */
365  SCIP_PROB* transprob, /**< transformed problem */
366  SCIP_PROB* origprob, /**< original problem */
367  SCIP_TREE* tree, /**< branch and bound tree if in solving stage */
368  SCIP_REOPT* reopt, /**< reoptimization data structure */
369  SCIP_LP* lp, /**< current LP data */
370  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
371  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
372  int* nchgbds, /**< pointer to store number of fixed variables */
373  SCIP_Bool* infeasible /**< pointer to store whether an infeasibility was detected */
374  );
375 
376 /** returns the number of cliques stored in the clique list */
377 extern
379  SCIP_CLIQUELIST* cliquelist, /**< clique list data structure */
380  SCIP_Bool value /**< value of the variable for which the cliques should be returned */
381  );
382 
383 /** returns the cliques stored in the clique list, or NULL if the clique list is empty */
384 extern
386  SCIP_CLIQUELIST* cliquelist, /**< clique list data structure */
387  SCIP_Bool value /**< value of the variable for which the cliques should be returned */
388  );
389 
390 /** checks whether variable is contained in all cliques of the cliquelist */
391 extern
393  SCIP_CLIQUELIST* cliquelist, /**< clique list data structure */
394  SCIP_VAR* var /**< variable, the clique list belongs to */
395  );
396 
397 /** gets the number of cliques stored in the clique table */
398 extern
400  SCIP_CLIQUETABLE* cliquetable /**< clique table data structure */
401  );
402 
403 /** gets the array of cliques stored in the clique table */
404 extern
406  SCIP_CLIQUETABLE* cliquetable /**< clique table data structure */
407  );
408 
409 /** gets the number of entries in the whole clique table */
410 extern
412  SCIP_CLIQUETABLE* cliquetable /**< clique table data structure */
413  );
414 
415 #ifdef NDEBUG
416 
417 /* In optimized mode, the function calls are overwritten by defines to reduce the number of function calls and
418  * speed up the algorithms.
419  */
420 
421 #define SCIPcliquelistGetNCliques(cliquelist, value) ((cliquelist) != NULL ? (cliquelist)->ncliques[value] : 0)
422 #define SCIPcliquelistGetCliques(cliquelist, value) ((cliquelist) != NULL ? (cliquelist)->cliques[value] : NULL)
423 #define SCIPcliquelistCheck(cliquelist, var) /**/
424 #define SCIPcliquetableGetNCliques(cliquetable) ((cliquetable)->ncliques)
425 #define SCIPcliquetableGetCliques(cliquetable) ((cliquetable)->cliques)
426 #define SCIPcliquetableGetNEntries(cliquetable) ((cliquetable)->nentries)
427 
428 #endif
429 
430 #ifdef __cplusplus
431 }
432 #endif
433 
434 #endif
enum SCIP_BoundType SCIP_BOUNDTYPE
Definition: type_lp.h:50
void SCIPvboundsShrink(SCIP_VBOUNDS **vbounds, BMS_BLKMEM *blkmem, int newnvbds)
Definition: implics.c:326
SCIP_Longint SCIPcliquetableGetNEntries(SCIP_CLIQUETABLE *cliquetable)
Definition: implics.c:3243
type definitions for implications, variable bounds, and cliques
public methods for implications, variable bounds, and cliques
SCIP_RETCODE SCIPcliquetableCleanup(SCIP_CLIQUETABLE *cliquetable, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, int *nchgbds, SCIP_Bool *infeasible)
Definition: implics.c:2780
SCIP_RETCODE SCIPcliquelistAdd(SCIP_CLIQUELIST **cliquelist, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_Bool value, SCIP_CLIQUE *clique)
Definition: implics.c:1466
SCIP_Real * SCIPvboundsGetConstants(SCIP_VBOUNDS *vbounds)
Definition: implics.c:3045
SCIP_Real * SCIPvboundsGetCoefs(SCIP_VBOUNDS *vbounds)
Definition: implics.c:3037
SCIP_RETCODE SCIPcliqueAddVar(SCIP_CLIQUE *clique, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_VAR *var, SCIP_Bool value, SCIP_Bool *doubleentry, SCIP_Bool *oppositeentry)
Definition: implics.c:1135
int SCIPcliquetableGetNCliques(SCIP_CLIQUETABLE *cliquetable)
Definition: implics.c:3223
int SCIPimplicsGetNImpls(SCIP_IMPLICS *implics, SCIP_Bool varfixing)
Definition: implics.c:3053
int SCIPvboundsGetNVbds(SCIP_VBOUNDS *vbounds)
Definition: implics.c:3021
SCIP_Bool SCIPcliquelistsHaveCommonClique(SCIP_CLIQUELIST *cliquelist1, SCIP_Bool value1, SCIP_CLIQUELIST *cliquelist2, SCIP_Bool value2)
Definition: implics.c:1589
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:53
type definitions for global SCIP settings
type definitions for return codes for SCIP methods
SCIP_RETCODE SCIPcliquetableCreate(SCIP_CLIQUETABLE **cliquetable, SCIP_SET *set, BMS_BLKMEM *blkmem)
Definition: implics.c:1776
SCIP_RETCODE SCIPimplicsDel(SCIP_IMPLICS **implics, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_Bool varfixing, SCIP_VAR *implvar, SCIP_BOUNDTYPE impltype)
Definition: implics.c:837
type definitions for branching rules
type definitions for problem statistics
SCIP_Bool SCIPimplicsContainsImpl(SCIP_IMPLICS *implics, SCIP_Bool varfixing, SCIP_VAR *implvar, SCIP_BOUNDTYPE impltype)
Definition: implics.c:917
SCIP_RETCODE SCIPcliquetableAdd(SCIP_CLIQUETABLE *cliquetable, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_VAR **vars, SCIP_Bool *values, int nvars, SCIP_Bool isequation, SCIP_Bool *infeasible, int *nbdchgs)
Definition: implics.c:2240
type definitions for LP management
void SCIPimplicsGetVarImplics(SCIP_IMPLICS *implics, SCIP_Bool varfixing, SCIP_VAR *implvar, SCIP_Bool *haslowerimplic, SCIP_Bool *hasupperimplic)
Definition: implics.c:895
void SCIPcliquelistRemoveFromCliques(SCIP_CLIQUELIST *cliquelist, SCIP_CLIQUETABLE *cliquetable, SCIP_VAR *var, SCIP_Bool irrelevantvar)
Definition: implics.c:1667
SCIP_RETCODE SCIPimplicsAdd(SCIP_IMPLICS **implics, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_Bool varfixing, SCIP_VAR *implvar, SCIP_BOUNDTYPE impltype, SCIP_Real implbound, SCIP_Bool isshortcut, SCIP_Bool *conflict, SCIP_Bool *added)
Definition: implics.c:630
SCIP_VAR ** SCIPimplicsGetVars(SCIP_IMPLICS *implics, SCIP_Bool varfixing)
Definition: implics.c:3062
SCIP_CLIQUE ** SCIPcliquetableGetCliques(SCIP_CLIQUETABLE *cliquetable)
Definition: implics.c:3233
SCIP_CLIQUE ** SCIPcliquelistGetCliques(SCIP_CLIQUELIST *cliquelist, SCIP_Bool value)
Definition: implics.c:3172
SCIP_BOUNDTYPE * SCIPimplicsGetTypes(SCIP_IMPLICS *implics, SCIP_Bool varfixing)
Definition: implics.c:3071
type definitions for problem variables
void SCIPcliqueDelVar(SCIP_CLIQUE *clique, SCIP_CLIQUETABLE *cliquetable, SCIP_VAR *var, SCIP_Bool value)
Definition: implics.c:1269
type definitions for managing events
datastructures for implications, variable bounds, and cliques
int * SCIPimplicsGetIds(SCIP_IMPLICS *implics, SCIP_Bool varfixing)
Definition: implics.c:3092
void SCIPvboundsFree(SCIP_VBOUNDS **vbounds, BMS_BLKMEM *blkmem)
Definition: implics.c:66
#define SCIP_Bool
Definition: def.h:53
SCIP_RETCODE SCIPcliquetableFree(SCIP_CLIQUETABLE **cliquetable, BMS_BLKMEM *blkmem)
Definition: implics.c:1808
void SCIPcliquelistCheck(SCIP_CLIQUELIST *cliquelist, SCIP_VAR *var)
Definition: implics.c:3181
void SCIPimplicsFree(SCIP_IMPLICS **implics, BMS_BLKMEM *blkmem)
Definition: implics.c:444
SCIP_RETCODE SCIPvboundsDel(SCIP_VBOUNDS **vbounds, BMS_BLKMEM *blkmem, SCIP_VAR *vbdvar, SCIP_Bool negativecoef)
Definition: implics.c:281
void SCIPcliquelistFree(SCIP_CLIQUELIST **cliquelist, BMS_BLKMEM *blkmem)
Definition: implics.c:1425
SCIP_VAR ** SCIPvboundsGetVars(SCIP_VBOUNDS *vbounds)
Definition: implics.c:3029
SCIP_Real * SCIPimplicsGetBounds(SCIP_IMPLICS *implics, SCIP_Bool varfixing)
Definition: implics.c:3080
#define SCIP_Real
Definition: def.h:127
#define SCIP_Longint
Definition: def.h:112
common defines and data types used in all packages of SCIP
struct BMS_BlkMem BMS_BLKMEM
Definition: memory.h:392
SCIP_RETCODE SCIPvboundsAdd(SCIP_VBOUNDS **vbounds, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_BOUNDTYPE vboundtype, SCIP_VAR *var, SCIP_Real coef, SCIP_Real constant, SCIP_Bool *added)
Definition: implics.c:199
int SCIPcliquelistGetNCliques(SCIP_CLIQUELIST *cliquelist, SCIP_Bool value)
Definition: implics.c:3163
SCIP_RETCODE SCIPcliquelistDel(SCIP_CLIQUELIST **cliquelist, BMS_BLKMEM *blkmem, SCIP_Bool value, SCIP_CLIQUE *clique)
Definition: implics.c:1511
memory allocation routines