Scippy

SCIP

Solving Constraint Integer Programs

var.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-2019 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 visit scip.zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file var.h
17  * @ingroup INTERNALAPI
18  * @brief internal methods for problem variables
19  * @author Tobias Achterberg
20  */
21 
22 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
23 
24 #ifndef __SCIP_VAR_H__
25 #define __SCIP_VAR_H__
26 
27 
28 #include "blockmemshell/memory.h"
29 #include "scip/def.h"
30 #include "scip/type_branch.h"
31 #include "scip/type_cons.h"
32 #include "scip/type_event.h"
33 #include "scip/type_history.h"
34 #include "scip/type_implics.h"
35 #include "scip/type_lp.h"
36 #include "scip/type_message.h"
37 #include "scip/type_misc.h"
38 #include "scip/type_primal.h"
39 #include "scip/type_prob.h"
40 #include "scip/type_prop.h"
41 #include "scip/type_relax.h"
42 #include "scip/type_reopt.h"
43 #include "scip/type_result.h"
44 #include "scip/type_retcode.h"
45 #include "scip/type_scip.h"
46 #include "scip/type_set.h"
47 #include "scip/type_sol.h"
48 #include "scip/type_stat.h"
49 #include "scip/type_tree.h"
50 #include "scip/type_var.h"
51 
52 #ifndef NDEBUG
53 #include "scip/struct_var.h"
54 #else
55 #include "scip/event.h"
56 #include "scip/pub_history.h"
57 #endif
58 
59 #ifdef __cplusplus
60 extern "C" {
61 #endif
62 
63 /*
64  * domain change methods
65  */
66 
67 /** applies single bound change */
69  SCIP_BOUNDCHG* boundchg, /**< bound change to apply */
70  BMS_BLKMEM* blkmem, /**< block memory */
71  SCIP_SET* set, /**< global SCIP settings */
72  SCIP_STAT* stat, /**< problem statistics */
73  SCIP_LP* lp, /**< current LP data */
74  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
75  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
76  int depth, /**< depth in the tree, where the bound change takes place */
77  int pos, /**< position of the bound change in its bound change array */
78  SCIP_Bool* cutoff /**< pointer to store whether an infeasible bound change was detected */
79  );
80 
81 /** undoes single bound change */
83  SCIP_BOUNDCHG* boundchg, /**< bound change to remove */
84  BMS_BLKMEM* blkmem, /**< block memory */
85  SCIP_SET* set, /**< global SCIP settings */
86  SCIP_STAT* stat, /**< problem statistics */
87  SCIP_LP* lp, /**< current LP data */
88  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
89  SCIP_EVENTQUEUE* eventqueue /**< event queue */
90  );
91 
92 /** applies domain change to the global problem */
94  SCIP_DOMCHG* domchg, /**< domain change to apply */
95  BMS_BLKMEM* blkmem, /**< block memory */
96  SCIP_SET* set, /**< global SCIP settings */
97  SCIP_STAT* stat, /**< problem statistics */
98  SCIP_LP* lp, /**< current LP data */
99  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
100  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
101  SCIP_CLIQUETABLE* cliquetable, /**< clique table data structure */
102  SCIP_Bool* cutoff /**< pointer to store whether an infeasible domain change was detected */
103  );
104 
105 /** frees domain change data */
107  SCIP_DOMCHG** domchg, /**< pointer to domain change */
108  BMS_BLKMEM* blkmem, /**< block memory */
109  SCIP_SET* set, /**< global SCIP settings */
110  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
111  SCIP_LP* lp /**< current LP data */
112  );
113 
114 /** converts a dynamic domain change data into a static one, using less memory than for a dynamic one */
116  SCIP_DOMCHG** domchg, /**< pointer to domain change data */
117  BMS_BLKMEM* blkmem, /**< block memory */
118  SCIP_SET* set, /**< global SCIP settings */
119  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
120  SCIP_LP* lp /**< current LP data */
121  );
122 
123 /** applies domain change */
125  SCIP_DOMCHG* domchg, /**< domain change to apply */
126  BMS_BLKMEM* blkmem, /**< block memory */
127  SCIP_SET* set, /**< global SCIP settings */
128  SCIP_STAT* stat, /**< problem statistics */
129  SCIP_LP* lp, /**< current LP data */
130  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
131  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
132  int depth, /**< depth in the tree, where the domain change takes place */
133  SCIP_Bool* cutoff /**< pointer to store whether an infeasible domain change was detected */
134  );
135 
136 /** undoes domain change */
138  SCIP_DOMCHG* domchg, /**< domain change to remove */
139  BMS_BLKMEM* blkmem, /**< block memory */
140  SCIP_SET* set, /**< global SCIP settings */
141  SCIP_STAT* stat, /**< problem statistics */
142  SCIP_LP* lp, /**< current LP data */
143  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
144  SCIP_EVENTQUEUE* eventqueue /**< event queue */
145  );
146 
147 /** adds bound change to domain changes */
149  SCIP_DOMCHG** domchg, /**< pointer to domain change data structure */
150  BMS_BLKMEM* blkmem, /**< block memory */
151  SCIP_SET* set, /**< global SCIP settings */
152  SCIP_VAR* var, /**< variable to change the bounds for */
153  SCIP_Real newbound, /**< new value for bound */
154  SCIP_BOUNDTYPE boundtype, /**< type of bound for var: lower or upper bound */
155  SCIP_BOUNDCHGTYPE boundchgtype, /**< type of bound change: branching decision or inference */
156  SCIP_Real lpsolval, /**< solval of variable in last LP on path to node, or SCIP_INVALID if unknown */
157  SCIP_VAR* infervar, /**< variable that was changed (parent of var, or var itself) */
158  SCIP_CONS* infercons, /**< constraint that deduced the bound change, or NULL */
159  SCIP_PROP* inferprop, /**< propagator that deduced the bound change, or NULL */
160  int inferinfo, /**< user information for inference to help resolving the conflict */
161  SCIP_BOUNDTYPE inferboundtype /**< type of bound for inference var: lower or upper bound */
162  );
163 
164 /** adds hole change to domain changes */
166  SCIP_DOMCHG** domchg, /**< pointer to domain change data structure */
167  BMS_BLKMEM* blkmem, /**< block memory */
168  SCIP_SET* set, /**< global SCIP settings */
169  SCIP_HOLELIST** ptr, /**< changed list pointer */
170  SCIP_HOLELIST* newlist, /**< new value of list pointer */
171  SCIP_HOLELIST* oldlist /**< old value of list pointer */
172  );
173 
174 /** creates an artificial bound change information object with depth = INT_MAX and pos = -1 */
176  SCIP_BDCHGINFO** bdchginfo, /**< pointer to store bound change information */
177  BMS_BLKMEM* blkmem, /**< block memory */
178  SCIP_VAR* var, /**< active variable that changed the bounds */
179  SCIP_BOUNDTYPE boundtype, /**< type of bound for var: lower or upper bound */
180  SCIP_Real oldbound, /**< old value for bound */
181  SCIP_Real newbound /**< new value for bound */
182  );
183 
184 /** frees a bound change information object */
185 void SCIPbdchginfoFree(
186  SCIP_BDCHGINFO** bdchginfo, /**< pointer to store bound change information */
187  BMS_BLKMEM* blkmem /**< block memory */
188  );
189 
190 /** returns the relaxed bound change type */
192  SCIP_BDCHGINFO* bdchginfo /**< bound change to add to the conflict set */
193  );
194 
195 /*
196  * methods for variables
197  */
198 
199 /** creates and captures an original problem variable; an integer variable with bounds
200  * zero and one is automatically converted into a binary variable
201  */
203  SCIP_VAR** var, /**< pointer to variable data */
204  BMS_BLKMEM* blkmem, /**< block memory */
205  SCIP_SET* set, /**< global SCIP settings */
206  SCIP_STAT* stat, /**< problem statistics */
207  const char* name, /**< name of variable */
208  SCIP_Real lb, /**< lower bound of variable */
209  SCIP_Real ub, /**< upper bound of variable */
210  SCIP_Real obj, /**< objective function value */
211  SCIP_VARTYPE vartype, /**< type of variable */
212  SCIP_Bool initial, /**< should var's column be present in the initial root LP? */
213  SCIP_Bool removable, /**< is var's column removable from the LP (due to aging or cleanup)? */
214  SCIP_DECL_VARDELORIG ((*vardelorig)), /**< frees user data of original variable, or NULL */
215  SCIP_DECL_VARTRANS ((*vartrans)), /**< creates transformed user data by transforming original user data, or NULL */
216  SCIP_DECL_VARDELTRANS ((*vardeltrans)), /**< frees user data of transformed variable, or NULL */
217  SCIP_DECL_VARCOPY ((*varcopy)), /**< copies variable data if wanted to subscip, or NULL */
218  SCIP_VARDATA* vardata /**< user data for this specific variable */
219  );
220 
221 /** creates and captures a loose variable belonging to the transformed problem; an integer variable with bounds
222  * zero and one is automatically converted into a binary variable
223  */
225  SCIP_VAR** var, /**< pointer to variable data */
226  BMS_BLKMEM* blkmem, /**< block memory */
227  SCIP_SET* set, /**< global SCIP settings */
228  SCIP_STAT* stat, /**< problem statistics */
229  const char* name, /**< name of variable */
230  SCIP_Real lb, /**< lower bound of variable */
231  SCIP_Real ub, /**< upper bound of variable */
232  SCIP_Real obj, /**< objective function value */
233  SCIP_VARTYPE vartype, /**< type of variable */
234  SCIP_Bool initial, /**< should var's column be present in the initial root LP? */
235  SCIP_Bool removable, /**< is var's column removable from the LP (due to aging or cleanup)? */
236  SCIP_DECL_VARDELORIG ((*vardelorig)), /**< frees user data of original variable, or NULL */
237  SCIP_DECL_VARTRANS ((*vartrans)), /**< creates transformed user data by transforming original user data, or NULL */
238  SCIP_DECL_VARDELTRANS ((*vardeltrans)), /**< frees user data of transformed variable, or NULL */
239  SCIP_DECL_VARCOPY ((*varcopy)), /**< copies variable data if wanted to subscip, or NULL */
240  SCIP_VARDATA* vardata /**< user data for this specific variable */
241  );
242 
243 /** copies and captures a variable from source to target SCIP; an integer variable with bounds zero and one is
244  * automatically converted into a binary variable; in case the variable data cannot be copied the variable is not
245  * copied at all
246  */
248  SCIP_VAR** var, /**< pointer to store the target variable */
249  BMS_BLKMEM* blkmem, /**< block memory */
250  SCIP_SET* set, /**< global SCIP settings */
251  SCIP_STAT* stat, /**< problem statistics */
252  SCIP* sourcescip, /**< source SCIP data structure */
253  SCIP_VAR* sourcevar, /**< source variable */
254  SCIP_HASHMAP* varmap, /**< a hashmap to store the mapping of source variables corresponding
255  * target variables */
256  SCIP_HASHMAP* consmap, /**< a hashmap to store the mapping of source constraints to the corresponding
257  * target constraints */
258  SCIP_Bool global /**< should global or local bounds be used? */
259  );
260 
261 /** parses variable information (in cip format) out of a string; if the parsing process was successful an original
262  * variable is created and captured; if variable is of integral type, fractional bounds are automatically rounded; an
263  * integer variable with bounds zero and one is automatically converted into a binary variable
264  */
266  SCIP_VAR** var, /**< pointer to variable data */
267  BMS_BLKMEM* blkmem, /**< block memory */
268  SCIP_SET* set, /**< global SCIP settings */
269  SCIP_MESSAGEHDLR* messagehdlr, /**< message handler */
270  SCIP_STAT* stat, /**< problem statistics */
271  const char* str, /**< string to parse */
272  SCIP_Bool initial, /**< should var's column be present in the initial root LP? */
273  SCIP_Bool removable, /**< is var's column removable from the LP (due to aging or cleanup)? */
274  SCIP_DECL_VARCOPY ((*varcopy)), /**< copies variable data if wanted to subscip, or NULL */
275  SCIP_DECL_VARDELORIG ((*vardelorig)), /**< frees user data of original variable */
276  SCIP_DECL_VARTRANS ((*vartrans)), /**< creates transformed user data by transforming original user data */
277  SCIP_DECL_VARDELTRANS ((*vardeltrans)), /**< frees user data of transformed variable */
278  SCIP_VARDATA* vardata, /**< user data for this specific variable */
279  char** endptr, /**< pointer to store the final string position if successfully */
280  SCIP_Bool* success /**< pointer store if the paring process was successful */
281  );
282 
283 /** parses variable information (in cip format) out of a string; if the parsing process was successful a loose variable
284  * belonging to the transformed problem is created and captured; if variable is of integral type, fractional bounds are
285  * automatically rounded; an integer variable with bounds zero and one is automatically converted into a binary
286  * variable
287  */
289  SCIP_VAR** var, /**< pointer to variable data */
290  BMS_BLKMEM* blkmem, /**< block memory */
291  SCIP_SET* set, /**< global SCIP settings */
292  SCIP_MESSAGEHDLR* messagehdlr, /**< message handler */
293  SCIP_STAT* stat, /**< problem statistics */
294  const char* str, /**< string to parse */
295  SCIP_Bool initial, /**< should var's column be present in the initial root LP? */
296  SCIP_Bool removable, /**< is var's column removable from the LP (due to aging or cleanup)? */
297  SCIP_DECL_VARCOPY ((*varcopy)), /**< copies variable data if wanted to subscip, or NULL */
298  SCIP_DECL_VARDELORIG ((*vardelorig)), /**< frees user data of original variable */
299  SCIP_DECL_VARTRANS ((*vartrans)), /**< creates transformed user data by transforming original user data */
300  SCIP_DECL_VARDELTRANS ((*vardeltrans)), /**< frees user data of transformed variable */
301  SCIP_VARDATA* vardata, /**< user data for this specific variable */
302  char** endptr, /**< pointer to store the final string position if successfully */
303  SCIP_Bool* success /**< pointer store if the paring process was successful */
304  );
305 
306 /** increases usage counter of variable */
307 void SCIPvarCapture(
308  SCIP_VAR* var /**< variable */
309  );
310 
311 /** decreases usage counter of variable, and frees memory if necessary */
313  SCIP_VAR** var, /**< pointer to variable */
314  BMS_BLKMEM* blkmem, /**< block memory */
315  SCIP_SET* set, /**< global SCIP settings */
316  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
317  SCIP_LP* lp /**< current LP data (may be NULL, if it's not a column variable) */
318  );
319 
320 /** change variable name */
321 /** change variable name */
323  SCIP_VAR* var, /**< problem variable */
324  BMS_BLKMEM* blkmem, /**< block memory */
325  const char* name /**< name of variable */
326  );
327 
328 /** initializes variable data structure for solving */
329 void SCIPvarInitSolve(
330  SCIP_VAR* var /**< problem variable */
331  );
332 
333 /** gets and captures transformed variable of a given variable; if the variable is not yet transformed,
334  * a new transformed variable for this variable is created
335  */
337  SCIP_VAR* origvar, /**< original problem variable */
338  BMS_BLKMEM* blkmem, /**< block memory of transformed problem */
339  SCIP_SET* set, /**< global SCIP settings */
340  SCIP_STAT* stat, /**< problem statistics */
341  SCIP_OBJSENSE objsense, /**< objective sense of original problem; transformed is always MINIMIZE */
342  SCIP_VAR** transvar /**< pointer to store the transformed variable */
343  );
344 
345 /** gets corresponding transformed variable of an original or negated original variable */
347  SCIP_VAR* origvar, /**< original problem variable */
348  BMS_BLKMEM* blkmem, /**< block memory of transformed problem */
349  SCIP_SET* set, /**< global SCIP settings */
350  SCIP_STAT* stat, /**< problem statistics */
351  SCIP_VAR** transvar /**< pointer to store the transformed variable, or NULL if not existing yet */
352  );
353 
354 /** converts transformed variable into column variable and creates LP column */
356  SCIP_VAR* var, /**< problem variable */
357  BMS_BLKMEM* blkmem, /**< block memory */
358  SCIP_SET* set, /**< global SCIP settings */
359  SCIP_STAT* stat, /**< problem statistics */
360  SCIP_PROB* prob, /**< problem data */
361  SCIP_LP* lp /**< current LP data */
362  );
363 
364 /** converts column transformed variable back into loose variable, frees LP column */
366  SCIP_VAR* var, /**< problem variable */
367  BMS_BLKMEM* blkmem, /**< block memory */
368  SCIP_SET* set, /**< global SCIP settings */
369  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
370  SCIP_PROB* prob, /**< problem data */
371  SCIP_LP* lp /**< current LP data */
372  );
373 
374 /** converts variable into fixed variable */
376  SCIP_VAR* var, /**< problem variable */
377  BMS_BLKMEM* blkmem, /**< block memory */
378  SCIP_SET* set, /**< global SCIP settings */
379  SCIP_STAT* stat, /**< problem statistics */
380  SCIP_PROB* transprob, /**< tranformed problem data */
381  SCIP_PROB* origprob, /**< original problem data */
382  SCIP_PRIMAL* primal, /**< primal data */
383  SCIP_TREE* tree, /**< branch and bound tree */
384  SCIP_REOPT* reopt, /**< reoptimization data structure */
385  SCIP_LP* lp, /**< current LP data */
386  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
387  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
388  SCIP_CLIQUETABLE* cliquetable, /**< clique table data structure */
389  SCIP_Real fixedval, /**< value to fix variable at */
390  SCIP_Bool* infeasible, /**< pointer to store whether the fixing is infeasible */
391  SCIP_Bool* fixed /**< pointer to store whether the fixing was performed (variable was unfixed) */
392  );
393 
394 /** transforms given variables, scalars and constant to the corresponding active variables, scalars and constant
395  *
396  * If the number of needed active variables is greater than the available slots in the variable array, nothing happens except
397  * that the required size is stored in the corresponding variable; hence, if afterwards the required size is greater than the
398  * available slots (varssize), nothing happens; otherwise, the active variable representation is stored in the arrays.
399  *
400  * The reason for this approach is that we cannot reallocate memory, since we do not know how the
401  * memory has been allocated (e.g., by a C++ 'new' or SCIP functions).
402  */
404  SCIP_SET* set, /**< global SCIP settings */
405  SCIP_VAR** vars, /**< variable array to get active variables */
406  SCIP_Real* scalars, /**< scalars a_1, ..., a_n in linear sum a_1*x_1 + ... + a_n*x_n + c */
407  int* nvars, /**< pointer to number of variables and values in vars and vals array */
408  int varssize, /**< available slots in vars and scalars array */
409  SCIP_Real* constant, /**< pointer to constant c in linear sum a_1*x_1 + ... + a_n*x_n + c */
410  int* requiredsize, /**< pointer to store the required array size for the active variables */
411  SCIP_Bool mergemultiples /**< should multiple occurrences of a var be replaced by a single coeff? */
412  );
413 
414 /** transforms given variable, scalar and constant to the corresponding active, fixed, or
415  * multi-aggregated variable, scalar and constant; if the variable resolves to a fixed variable,
416  * "scalar" will be 0.0 and the value of the sum will be stored in "constant"; a multi-aggregation
417  * with only one active variable (this can happen due to fixings after the multi-aggregation),
418  * is treated like an aggregation; if the multi-aggregation constant is infinite, "scalar" will be 0.0
419  */
421  SCIP_VAR** var, /**< pointer to problem variable x in sum a*x + c */
422  SCIP_SET* set, /**< global SCIP settings */
423  SCIP_Real* scalar, /**< pointer to scalar a in sum a*x + c */
424  SCIP_Real* constant /**< pointer to constant c in sum a*x + c */
425  );
426 
427 
428 /** flattens aggregation graph of multi-aggregated variable in order to avoid exponential recursion later-on */
430  SCIP_VAR* var, /**< problem variable */
431  BMS_BLKMEM* blkmem, /**< block memory */
432  SCIP_SET* set /**< global SCIP settings */
433  );
434 
435 /** return for given variables all their active counterparts; all active variables will be pairwise different */
437  SCIP_SET* set, /**< global SCIP settings */
438  SCIP_VAR** vars, /**< variable array with given variables and as output all active
439  * variables, if enough slots exist
440  */
441  int* nvars, /**< number of given variables, and as output number of active variables,
442  * if enough slots exist
443  */
444  int varssize, /**< available slots in vars array */
445  int* requiredsize /**< pointer to store the required array size for the active variables */
446  );
447 
448 /** performs second step of SCIPaggregateVars():
449  * the variable to be aggregated is chosen among active problem variables x' and y', preferring a less strict variable
450  * type as aggregation variable (i.e. continuous variables are preferred over implicit integers, implicit integers
451  * or integers over binaries). If none of the variables is continuous, it is tried to find an integer
452  * aggregation (i.e. integral coefficients a'' and b'', such that a''*x' + b''*y' == c''). This can lead to
453  * the detection of infeasibility (e.g. if c'' is fractional), or to a rejection of the aggregation (denoted by
454  * aggregated == FALSE), if the resulting integer coefficients are too large and thus numerically instable.
455  */
457  SCIP_SET* set, /**< global SCIP settings */
458  BMS_BLKMEM* blkmem, /**< block memory */
459  SCIP_STAT* stat, /**< problem statistics */
460  SCIP_PROB* transprob, /**< tranformed problem data */
461  SCIP_PROB* origprob, /**< original problem data */
462  SCIP_PRIMAL* primal, /**< primal data */
463  SCIP_TREE* tree, /**< branch and bound tree */
464  SCIP_REOPT* reopt, /**< reoptimization data structure */
465  SCIP_LP* lp, /**< current LP data */
466  SCIP_CLIQUETABLE* cliquetable, /**< clique table data structure */
467  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
468  SCIP_EVENTFILTER* eventfilter, /**< event filter for global (not variable dependent) events */
469  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
470  SCIP_VAR* varx, /**< variable x in equality a*x + b*y == c */
471  SCIP_VAR* vary, /**< variable y in equality a*x + b*y == c */
472  SCIP_Real scalarx, /**< multiplier a in equality a*x + b*y == c */
473  SCIP_Real scalary, /**< multiplier b in equality a*x + b*y == c */
474  SCIP_Real rhs, /**< right hand side c in equality a*x + b*y == c */
475  SCIP_Bool* infeasible, /**< pointer to store whether the aggregation is infeasible */
476  SCIP_Bool* aggregated /**< pointer to store whether the aggregation was successful */
477  );
478 
479 /** converts loose variable into aggregated variable */
481  SCIP_VAR* var, /**< loose problem variable */
482  BMS_BLKMEM* blkmem, /**< block memory */
483  SCIP_SET* set, /**< global SCIP settings */
484  SCIP_STAT* stat, /**< problem statistics */
485  SCIP_PROB* transprob, /**< tranformed problem data */
486  SCIP_PROB* origprob, /**< original problem data */
487  SCIP_PRIMAL* primal, /**< primal data */
488  SCIP_TREE* tree, /**< branch and bound tree */
489  SCIP_REOPT* reopt, /**< reoptimization data structure */
490  SCIP_LP* lp, /**< current LP data */
491  SCIP_CLIQUETABLE* cliquetable, /**< clique table data structure */
492  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
493  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
494  SCIP_VAR* aggvar, /**< loose variable y in aggregation x = a*y + c */
495  SCIP_Real scalar, /**< multiplier a in aggregation x = a*y + c */
496  SCIP_Real constant, /**< constant shift c in aggregation x = a*y + c */
497  SCIP_Bool* infeasible, /**< pointer to store whether the aggregation is infeasible */
498  SCIP_Bool* aggregated /**< pointer to store whether the aggregation was successful */
499  );
500 
501 /** converts variable into multi-aggregated variable */
503  SCIP_VAR* var, /**< problem variable */
504  BMS_BLKMEM* blkmem, /**< block memory */
505  SCIP_SET* set, /**< global SCIP settings */
506  SCIP_STAT* stat, /**< problem statistics */
507  SCIP_PROB* transprob, /**< tranformed problem data */
508  SCIP_PROB* origprob, /**< original problem data */
509  SCIP_PRIMAL* primal, /**< primal data */
510  SCIP_TREE* tree, /**< branch and bound tree */
511  SCIP_REOPT* reopt, /**< reoptimization data structure */
512  SCIP_LP* lp, /**< current LP data */
513  SCIP_CLIQUETABLE* cliquetable, /**< clique table data structure */
514  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
515  SCIP_EVENTFILTER* eventfilter, /**< event filter for global (not variable dependent) events */
516  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
517  int naggvars, /**< number n of variables in aggregation x = a_1*y_1 + ... + a_n*y_n + c */
518  SCIP_VAR** aggvars, /**< variables y_i in aggregation x = a_1*y_1 + ... + a_n*y_n + c */
519  SCIP_Real* scalars, /**< multipliers a_i in aggregation x = a_1*y_1 + ... + a_n*y_n + c */
520  SCIP_Real constant, /**< constant shift c in aggregation x = a_1*y_1 + ... + a_n*y_n + c */
521  SCIP_Bool* infeasible, /**< pointer to store whether the aggregation is infeasible */
522  SCIP_Bool* aggregated /**< pointer to store whether the aggregation was successful */
523  );
524 
525 /** returns whether variable is not allowed to be multi-aggregated */
527  SCIP_VAR* var /**< problem variable */
528  );
529 
530 /** returns whether the variable was flagged for deletion from global structures (cliques etc.) */
532  SCIP_VAR* var /**< problem variable */
533  );
534 
535 /** gets negated variable x' = offset - x of problem variable x; the negated variable is created if not yet existing;
536  * the negation offset of binary variables is always 1, the offset of other variables is fixed to lb + ub when the
537  * negated variable is created
538  */
540  SCIP_VAR* var, /**< problem variable to negate */
541  BMS_BLKMEM* blkmem, /**< block memory of transformed problem */
542  SCIP_SET* set, /**< global SCIP settings */
543  SCIP_STAT* stat, /**< problem statistics */
544  SCIP_VAR** negvar /**< pointer to store the negated variable */
545  );
546 
547 /** informs variable that its position in problem's vars array changed */
549  SCIP_VAR* var, /**< problem variable */
550  int probindex /**< new problem index of variable */
551  );
552 
553 /** gives the variable a new name
554  *
555  * @note the old pointer is overwritten, which might result in a memory leakage
556  */
558  SCIP_VAR* var, /**< problem variable */
559  const char* name /**< new name of variable */
560  );
561 
562 /** informs variable that it will be removed from the problem; adjusts probindex and removes variable from the
563  * implication graph;
564  * If 'final' is TRUE, the thorough implication graph removal is not performed. Instead, only the
565  * variable bounds and implication data structures of the variable are freed. Since in the final removal
566  * of all variables from the transformed problem, this deletes the implication graph completely and is faster
567  * than removing the variables one by one, each time updating all lists of the other variables.
568  */
570  SCIP_VAR* var, /**< problem variable */
571  BMS_BLKMEM* blkmem, /**< block memory buffer */
572  SCIP_CLIQUETABLE* cliquetable, /**< clique table data structure */
573  SCIP_SET* set, /**< global SCIP settings */
574  SCIP_Bool final /**< is this the final removal of all problem variables? */
575  );
576 
577 /** marks the variable to be deleted from the problem */
578 void SCIPvarMarkDeleted(
579  SCIP_VAR* var /**< problem variable */
580  );
581 
582 /** marks the variable to not to be multi-aggregated */
584  SCIP_VAR* var /**< problem variable */
585  );
586 
587 /** modifies lock numbers for rounding */
589  SCIP_VAR* var, /**< problem variable */
590  BMS_BLKMEM* blkmem, /**< block memory */
591  SCIP_SET* set, /**< global SCIP settings */
592  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
593  SCIP_LOCKTYPE locktype, /**< type of the variable locks */
594  int addnlocksdown, /**< increase in number of rounding down locks */
595  int addnlocksup /**< increase in number of rounding up locks */
596  );
597 
598 /** changes type of variable; cannot be called, if var belongs to a problem */
600  SCIP_VAR* var, /**< problem variable to change */
601  SCIP_VARTYPE vartype /**< new type of variable */
602  );
603 
604 /** changes objective value of variable */
606  SCIP_VAR* var, /**< variable to change */
607  BMS_BLKMEM* blkmem, /**< block memory */
608  SCIP_SET* set, /**< global SCIP settings */
609  SCIP_PROB* prob, /**< problem data */
610  SCIP_PRIMAL* primal, /**< primal data */
611  SCIP_LP* lp, /**< current LP data */
612  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
613  SCIP_Real newobj /**< new objective value for variable */
614  );
615 
616 /** adds value to objective value of variable */
618  SCIP_VAR* var, /**< variable to change */
619  BMS_BLKMEM* blkmem, /**< block memory */
620  SCIP_SET* set, /**< global SCIP settings */
621  SCIP_STAT* stat, /**< problem statistics */
622  SCIP_PROB* transprob, /**< tranformed problem data */
623  SCIP_PROB* origprob, /**< original problem data */
624  SCIP_PRIMAL* primal, /**< primal data */
625  SCIP_TREE* tree, /**< branch and bound tree */
626  SCIP_REOPT* reopt, /**< reoptimization data structure */
627  SCIP_LP* lp, /**< current LP data */
628  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
629  SCIP_Real addobj /**< additional objective value for variable */
630  );
631 
632 /** changes objective value of variable in current dive */
634  SCIP_VAR* var, /**< problem variable to change */
635  SCIP_SET* set, /**< global SCIP settings */
636  SCIP_LP* lp, /**< current LP data */
637  SCIP_Real newobj /**< new objective value for variable */
638  );
639 
640 /** adjust lower bound to integral value, if variable is integral */
641 void SCIPvarAdjustLb(
642  SCIP_VAR* var, /**< problem variable */
643  SCIP_SET* set, /**< global SCIP settings */
644  SCIP_Real* lb /**< pointer to lower bound to adjust */
645  );
646 
647 /** adjust upper bound to integral value, if variable is integral */
648 void SCIPvarAdjustUb(
649  SCIP_VAR* var, /**< problem variable */
650  SCIP_SET* set, /**< global SCIP settings */
651  SCIP_Real* ub /**< pointer to upper bound to adjust */
652  );
653 
654 /** adjust lower or upper bound to integral value, if variable is integral */
655 void SCIPvarAdjustBd(
656  SCIP_VAR* var, /**< problem variable */
657  SCIP_SET* set, /**< global SCIP settings */
658  SCIP_BOUNDTYPE boundtype, /**< type of bound to adjust */
659  SCIP_Real* bd /**< pointer to bound to adjust */
660  );
661 
662 /** changes lower bound of original variable in original problem */
664  SCIP_VAR* var, /**< problem variable to change */
665  SCIP_SET* set, /**< global SCIP settings */
666  SCIP_Real newbound /**< new bound for variable */
667  );
668 
669 /** changes upper bound of original variable in original problem */
671  SCIP_VAR* var, /**< problem variable to change */
672  SCIP_SET* set, /**< global SCIP settings */
673  SCIP_Real newbound /**< new bound for variable */
674  );
675 
676 /** changes global lower bound of variable; if possible, adjusts bound to integral value;
677  * updates local lower bound if the global bound is tighter
678  */
680  SCIP_VAR* var, /**< problem variable to change */
681  BMS_BLKMEM* blkmem, /**< block memory */
682  SCIP_SET* set, /**< global SCIP settings */
683  SCIP_STAT* stat, /**< problem statistics */
684  SCIP_LP* lp, /**< current LP data, may be NULL for original variables */
685  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage, may be NULL for original variables */
686  SCIP_EVENTQUEUE* eventqueue, /**< event queue, may be NULL for original variables */
687  SCIP_CLIQUETABLE* cliquetable, /**< clique table data structure */
688  SCIP_Real newbound /**< new bound for variable */
689  );
690 
691 /** changes global upper bound of variable; if possible, adjusts bound to integral value;
692  * updates local upper bound if the global bound is tighter
693  */
695  SCIP_VAR* var, /**< problem variable to change */
696  BMS_BLKMEM* blkmem, /**< block memory */
697  SCIP_SET* set, /**< global SCIP settings */
698  SCIP_STAT* stat, /**< problem statistics */
699  SCIP_LP* lp, /**< current LP data, may be NULL for original variables */
700  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage, may be NULL for original variables */
701  SCIP_EVENTQUEUE* eventqueue, /**< event queue, may be NULL for original variables */
702  SCIP_CLIQUETABLE* cliquetable, /**< clique table data structure */
703  SCIP_Real newbound /**< new bound for variable */
704  );
705 
706 /** changes global bound of variable; if possible, adjusts bound to integral value;
707  * updates local bound if the global bound is tighter
708  */
710  SCIP_VAR* var, /**< problem variable to change */
711  BMS_BLKMEM* blkmem, /**< block memory */
712  SCIP_SET* set, /**< global SCIP settings */
713  SCIP_STAT* stat, /**< problem statistics */
714  SCIP_LP* lp, /**< current LP data, may be NULL for original variables */
715  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage, may be NULL for original variables */
716  SCIP_EVENTQUEUE* eventqueue, /**< event queue, may be NULL for original variables */
717  SCIP_CLIQUETABLE* cliquetable, /**< clique table data structure */
718  SCIP_Real newbound, /**< new bound for variable */
719  SCIP_BOUNDTYPE boundtype /**< type of bound: lower or upper bound */
720  );
721 
722 /** changes current local lower bound of variable; if possible, adjusts bound to integral value; stores inference
723  * information in variable
724  */
726  SCIP_VAR* var, /**< problem variable to change */
727  BMS_BLKMEM* blkmem, /**< block memory */
728  SCIP_SET* set, /**< global SCIP settings */
729  SCIP_STAT* stat, /**< problem statistics */
730  SCIP_LP* lp, /**< current LP data, may be NULL for original variables */
731  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage, may be NULL for original variables */
732  SCIP_EVENTQUEUE* eventqueue, /**< event queue, may be NULL for original variables */
733  SCIP_Real newbound /**< new bound for variable */
734  );
735 
736 /** changes current local upper bound of variable; if possible, adjusts bound to integral value; stores inference
737  * information in variable
738  */
740  SCIP_VAR* var, /**< problem variable to change */
741  BMS_BLKMEM* blkmem, /**< block memory */
742  SCIP_SET* set, /**< global SCIP settings */
743  SCIP_STAT* stat, /**< problem statistics */
744  SCIP_LP* lp, /**< current LP data, may be NULL for original variables */
745  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage, may be NULL for original variables */
746  SCIP_EVENTQUEUE* eventqueue, /**< event queue, may be NULL for original variables */
747  SCIP_Real newbound /**< new bound for variable */
748  );
749 
750 /** changes current local bound of variable; if possible, adjusts bound to integral value; stores inference
751  * information in variable
752  */
754  SCIP_VAR* var, /**< problem variable to change */
755  BMS_BLKMEM* blkmem, /**< block memory */
756  SCIP_SET* set, /**< global SCIP settings */
757  SCIP_STAT* stat, /**< problem statistics */
758  SCIP_LP* lp, /**< current LP data, may be NULL for original variables */
759  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage, may be NULL for original variables */
760  SCIP_EVENTQUEUE* eventqueue, /**< event queue, may be NULL for original variables */
761  SCIP_Real newbound, /**< new bound for variable */
762  SCIP_BOUNDTYPE boundtype /**< type of bound: lower or upper bound */
763  );
764 
765 /** changes lazy lower bound of the variable, this is only possible if the variable is not in the LP yet */
767  SCIP_VAR* var, /**< problem variable */
768  SCIP_SET* set, /**< global SCIP settings */
769  SCIP_Real lazylb /**< the lazy lower bound to be set */
770  );
771 
772 /** changes lazy upper bound of the variable, this is only possible if the variable is not in the LP yet */
774  SCIP_VAR* var, /**< problem variable */
775  SCIP_SET* set, /**< global SCIP settings */
776  SCIP_Real lazylb /**< the lazy lower bound to be set */
777  );
778 
779 /** changes lower bound of variable in current dive; if possible, adjusts bound to integral value */
781  SCIP_VAR* var, /**< problem variable to change */
782  SCIP_SET* set, /**< global SCIP settings */
783  SCIP_LP* lp, /**< current LP data */
784  SCIP_Real newbound /**< new bound for variable */
785  );
786 
787 /** changes upper bound of variable in current dive; if possible, adjusts bound to integral value */
789  SCIP_VAR* var, /**< problem variable to change */
790  SCIP_SET* set, /**< global SCIP settings */
791  SCIP_LP* lp, /**< current LP data */
792  SCIP_Real newbound /**< new bound for variable */
793  );
794 
795 /** for a multi-aggregated variable, gives the local lower bound computed by adding the local bounds from all aggregation variables
796  * this lower bound may be tighter than the one given by SCIPvarGetLbLocal, since the latter is not updated if bounds of aggregation variables are changing
797  * calling this function for a non-multi-aggregated variable is not allowed
798  */
800  SCIP_VAR* var, /**< problem variable */
801  SCIP_SET* set /**< global SCIP settings */
802  );
803 
804 /** for a multi-aggregated variable, gives the local upper bound computed by adding the local bounds from all aggregation variables
805  * this upper bound may be tighter than the one given by SCIPvarGetUbLocal, since the latter is not updated if bounds of aggregation variables are changing
806  * calling this function for a non-multi-aggregated variable is not allowed
807  */
809  SCIP_VAR* var, /**< problem variable */
810  SCIP_SET* set /**< global SCIP settings */
811  );
812 
813 /** for a multi-aggregated variable, gives the global lower bound computed by adding the global bounds from all aggregation variables
814  * this global bound may be tighter than the one given by SCIPvarGetLbGlobal, since the latter is not updated if bounds of aggregation variables are changing
815  * calling this function for a non-multi-aggregated variable is not allowed
816  */
818  SCIP_VAR* var, /**< problem variable */
819  SCIP_SET* set /**< global SCIP settings */
820  );
821 
822 /** for a multi-aggregated variable, gives the global upper bound computed by adding the global bounds from all aggregation variables
823  * this upper bound may be tighter than the one given by SCIPvarGetUbGlobal, since the latter is not updated if bounds of aggregation variables are changing
824  * calling this function for a non-multi-aggregated variable is not allowed
825  */
827  SCIP_VAR* var, /**< problem variable */
828  SCIP_SET* set /**< global SCIP settings */
829  );
830 
831 /** adds a hole to the original domain of the variable*/
833  SCIP_VAR* var, /**< problem variable */
834  BMS_BLKMEM* blkmem, /**< block memory */
835  SCIP_SET* set, /**< global SCIP settings */
836  SCIP_Real left, /**< left bound of open interval in new hole */
837  SCIP_Real right /**< right bound of open interval in new hole */
838  );
839 
840 /** adds a hole to the variable's global domain */
842  SCIP_VAR* var, /**< problem variable */
843  BMS_BLKMEM* blkmem, /**< block memory */
844  SCIP_SET* set, /**< global SCIP settings */
845  SCIP_STAT* stat, /**< problem statistics */
846  SCIP_EVENTQUEUE* eventqueue, /**< event queue, may be NULL for original variables */
847  SCIP_Real left, /**< left bound of open interval in new hole */
848  SCIP_Real right, /**< right bound of open interval in new hole */
849  SCIP_Bool* added /**< pointer to store whether the hole was added, or NULL */
850  );
851 
852 /** adds a hole to the variable's current local domain */
854  SCIP_VAR* var, /**< problem variable */
855  BMS_BLKMEM* blkmem, /**< block memory */
856  SCIP_SET* set, /**< global SCIP settings */
857  SCIP_STAT* stat, /**< problem statistics */
858  SCIP_EVENTQUEUE* eventqueue, /**< event queue, may be NULL for original variables */
859  SCIP_Real left, /**< left bound of open interval in new hole */
860  SCIP_Real right, /**< right bound of open interval in new hole */
861  SCIP_Bool* added /**< pointer to store whether the hole was added, or NULL */
862  );
863 
864 /** resets the global and local bounds of original variable to their original values */
866  SCIP_VAR* var, /**< problem variable */
867  BMS_BLKMEM* blkmem, /**< block memory */
868  SCIP_SET* set, /**< global SCIP settings */
869  SCIP_STAT* stat /**< problem statistics */
870  );
871 
872 /** returns at which depth in the tree a bound change was applied to the variable that conflicts with the
873  * given bound; returns -1 if the bound does not conflict with the current local bounds of the variable
874  */
876  SCIP_VAR* var, /**< problem variable */
877  SCIP_SET* set, /**< global SCIP settings */
878  SCIP_BOUNDTYPE boundtype, /**< bound type of the conflicting bound */
879  SCIP_Real bound /**< conflicting bound */
880  );
881 
882 /** informs variable x about a globally valid variable lower bound x >= b*z + d with integer variable z;
883  * if z is binary, the corresponding valid implication for z is also added;
884  * improves the global bounds of the variable and the vlb variable if possible
885  */
887  SCIP_VAR* var, /**< problem variable */
888  BMS_BLKMEM* blkmem, /**< block memory */
889  SCIP_SET* set, /**< global SCIP settings */
890  SCIP_STAT* stat, /**< problem statistics */
891  SCIP_PROB* transprob, /**< transformed problem */
892  SCIP_PROB* origprob, /**< original problem */
893  SCIP_TREE* tree, /**< branch and bound tree if in solving stage */
894  SCIP_REOPT* reopt, /**< reoptimization data structure */
895  SCIP_LP* lp, /**< current LP data */
896  SCIP_CLIQUETABLE* cliquetable, /**< clique table data structure */
897  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
898  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
899  SCIP_VAR* vlbvar, /**< variable z in x >= b*z + d */
900  SCIP_Real vlbcoef, /**< coefficient b in x >= b*z + d */
901  SCIP_Real vlbconstant, /**< constant d in x >= b*z + d */
902  SCIP_Bool transitive, /**< should transitive closure of implication also be added? */
903  SCIP_Bool* infeasible, /**< pointer to store whether an infeasibility was detected */
904  int* nbdchgs /**< pointer to store the number of performed bound changes, or NULL */
905  );
906 
907 /** informs variable x about a globally valid variable upper bound x <= b*z + d with integer variable z;
908  * if z is binary, the corresponding valid implication for z is also added;
909  * updates the global bounds of the variable and the vub variable correspondingly
910  */
912  SCIP_VAR* var, /**< problem variable */
913  BMS_BLKMEM* blkmem, /**< block memory */
914  SCIP_SET* set, /**< global SCIP settings */
915  SCIP_STAT* stat, /**< problem statistics */
916  SCIP_PROB* transprob, /**< transformed problem */
917  SCIP_PROB* origprob, /**< original problem */
918  SCIP_TREE* tree, /**< branch and bound tree if in solving stage */
919  SCIP_REOPT* reopt, /**< reoptimization data structure */
920  SCIP_LP* lp, /**< current LP data */
921  SCIP_CLIQUETABLE* cliquetable, /**< clique table data structure */
922  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
923  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
924  SCIP_VAR* vubvar, /**< variable z in x <= b*z + d */
925  SCIP_Real vubcoef, /**< coefficient b in x <= b*z + d */
926  SCIP_Real vubconstant, /**< constant d in x <= b*z + d */
927  SCIP_Bool transitive, /**< should transitive closure of implication also be added? */
928  SCIP_Bool* infeasible, /**< pointer to store whether an infeasibility was detected */
929  int* nbdchgs /**< pointer to store the number of performed bound changes, or NULL */
930  );
931 
932 /** informs binary variable x about a globally valid implication: x == 0 or x == 1 ==> y <= b or y >= b;
933  * also adds the corresponding implication or variable bound to the implied variable;
934  * if the implication is conflicting, the variable is fixed to the opposite value;
935  * if the variable is already fixed to the given value, the implication is performed immediately;
936  * if the implication is redundant with respect to the variables' global bounds, it is ignored
937  */
939  SCIP_VAR* var, /**< problem variable */
940  BMS_BLKMEM* blkmem, /**< block memory */
941  SCIP_SET* set, /**< global SCIP settings */
942  SCIP_STAT* stat, /**< problem statistics */
943  SCIP_PROB* transprob, /**< transformed problem */
944  SCIP_PROB* origprob, /**< original problem */
945  SCIP_TREE* tree, /**< branch and bound tree if in solving stage */
946  SCIP_REOPT* reopt, /**< reoptimization data structure */
947  SCIP_LP* lp, /**< current LP data */
948  SCIP_CLIQUETABLE* cliquetable, /**< clique table data structure */
949  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
950  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
951  SCIP_Bool varfixing, /**< FALSE if y should be added in implications for x == 0, TRUE for x == 1 */
952  SCIP_VAR* implvar, /**< variable y in implication y <= b or y >= b */
953  SCIP_BOUNDTYPE impltype, /**< type of implication y <= b (SCIP_BOUNDTYPE_UPPER) or y >= b (SCIP_BOUNDTYPE_LOWER) */
954  SCIP_Real implbound, /**< bound b in implication y <= b or y >= b */
955  SCIP_Bool transitive, /**< should transitive closure of implication also be added? */
956  SCIP_Bool* infeasible, /**< pointer to store whether an infeasibility was detected */
957  int* nbdchgs /**< pointer to store the number of performed bound changes, or NULL */
958  );
959 
960 /** fixes the bounds of a binary variable to the given value, counting bound changes and detecting infeasibility */
962  SCIP_VAR* var, /**< problem variable */
963  BMS_BLKMEM* blkmem, /**< block memory */
964  SCIP_SET* set, /**< global SCIP settings */
965  SCIP_STAT* stat, /**< problem statistics */
966  SCIP_PROB* transprob, /**< transformed problem */
967  SCIP_PROB* origprob, /**< original problem */
968  SCIP_TREE* tree, /**< branch and bound tree if in solving stage */
969  SCIP_REOPT* reopt, /**< reoptimization data structure */
970  SCIP_LP* lp, /**< current LP data */
971  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
972  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
973  SCIP_CLIQUETABLE* cliquetable, /**< clique table data structure */
974  SCIP_Bool value, /**< value to fix variable to */
975  SCIP_Bool* infeasible, /**< pointer to store whether an infeasibility was detected */
976  int* nbdchgs /**< pointer to count the number of performed bound changes, or NULL */
977  );
978 
979 /** adds the variable to the given clique and updates the list of cliques the binary variable is member of;
980  * if the variable now appears twice in the clique with the same value, it is fixed to the opposite value;
981  * if the variable now appears twice in the clique with opposite values, all other variables are fixed to
982  * the opposite of the value they take in the clique
983  */
985  SCIP_VAR* var, /**< problem variable */
986  BMS_BLKMEM* blkmem, /**< block memory */
987  SCIP_SET* set, /**< global SCIP settings */
988  SCIP_STAT* stat, /**< problem statistics */
989  SCIP_PROB* transprob, /**< transformed problem */
990  SCIP_PROB* origprob, /**< original problem */
991  SCIP_TREE* tree, /**< branch and bound tree if in solving stage */
992  SCIP_REOPT* reopt, /**< reoptimization data structure */
993  SCIP_LP* lp, /**< current LP data */
994  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
995  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
996  SCIP_CLIQUETABLE* cliquetable, /**< clique table data structure */
997  SCIP_Bool value, /**< value of the variable in the clique */
998  SCIP_CLIQUE* clique, /**< clique the variable should be added to */
999  SCIP_Bool* infeasible, /**< pointer to store whether an infeasibility was detected */
1000  int* nbdchgs /**< pointer to count the number of performed bound changes, or NULL */
1001  );
1002 
1003 /** adds a filled clique to the cliquelists of all corresponding variables */
1005  SCIP_VAR** vars, /**< problem variables */
1006  SCIP_Bool* values, /**< values of the variables in the clique */
1007  int nvars, /**< number of problem variables */
1008  BMS_BLKMEM* blkmem, /**< block memory */
1009  SCIP_SET* set, /**< global SCIP settings */
1010  SCIP_CLIQUE* clique /**< clique that contains all given variables and values */
1011  );
1012 
1013 /** deletes the variable from the given clique and updates the list of cliques the binary variable is member of */
1015  SCIP_VAR* var, /**< problem variable */
1016  BMS_BLKMEM* blkmem, /**< block memory */
1017  SCIP_CLIQUETABLE* cliquetable, /**< clique table data structure */
1018  SCIP_Bool value, /**< value of the variable in the clique */
1019  SCIP_CLIQUE* clique /**< clique the variable should be removed from */
1020  );
1021 
1022 /** adds a clique to the list of cliques of the given binary variable, but does not change the clique
1023  * itself
1024  */
1026  SCIP_VAR* var, /**< problem variable */
1027  BMS_BLKMEM* blkmem, /**< block memory */
1028  SCIP_SET* set, /**< global SCIP settings */
1029  SCIP_Bool value, /**< value of the variable in the clique */
1030  SCIP_CLIQUE* clique /**< clique that should be removed from the variable's clique list */
1031  );
1032 
1033 /** deletes a clique from the list of cliques the binary variable is member of, but does not change the clique
1034  * itself
1035  */
1037  SCIP_VAR* var, /**< problem variable */
1038  BMS_BLKMEM* blkmem, /**< block memory */
1039  SCIP_Bool value, /**< value of the variable in the clique */
1040  SCIP_CLIQUE* clique /**< clique that should be removed from the variable's clique list */
1041  );
1042 
1043 /** sets the branch factor of the variable; this value can be used in the branching methods to scale the score
1044  * values of the variables; higher factor leads to a higher probability that this variable is chosen for branching
1045  */
1047  SCIP_VAR* var, /**< problem variable */
1048  SCIP_SET* set, /**< global SCIP settings */
1049  SCIP_Real branchfactor /**< factor to weigh variable's branching score with */
1050  );
1051 
1052 /** sets the branch priority of the variable; variables with higher branch priority are always preferred to variables
1053  * with lower priority in selection of branching variable
1054  */
1056  SCIP_VAR* var, /**< problem variable */
1057  int branchpriority /**< branching priority of the variable */
1058  );
1059 
1060 /** sets the branch direction of the variable; variables with higher branch direction are always preferred to variables
1061  * with lower direction in selection of branching variable
1062  */
1064  SCIP_VAR* var, /**< problem variable */
1065  SCIP_BRANCHDIR branchdirection /**< preferred branch direction of the variable (downwards, upwards, auto) */
1066  );
1067 
1068 /** gets objective value of variable in current SCIP_LP; the value can be different from the bound stored in the variable's own
1069  * data due to diving, that operate only on the LP without updating the variables
1070  */
1072  SCIP_VAR* var /**< problem variable */
1073  );
1074 
1075 /** gets lower bound of variable in current SCIP_LP; the bound can be different from the bound stored in the variable's own
1076  * data due to diving or conflict analysis, that operate only on the LP without updating the variables
1077  */
1079  SCIP_VAR* var, /**< problem variable */
1080  SCIP_SET* set /**< global SCIP settings */
1081  );
1082 
1083 /** gets upper bound of variable in current SCIP_LP; the bound can be different from the bound stored in the variable's own
1084  * data due to diving or conflict analysis, that operate only on the LP without updating the variables
1085  */
1087  SCIP_VAR* var, /**< problem variable */
1088  SCIP_SET* set /**< global SCIP settings */
1089  );
1090 
1091 /** returns solution value and index of variable lower bound that is closest to the variable's value in the given primal solution
1092  * or current LP solution if no primal solution is given; returns an index of -1 if no variable lower bound is available
1093  */
1095  SCIP_VAR* var, /**< active problem variable */
1096  SCIP_SOL* sol, /**< primal solution, or NULL for LP solution */
1097  SCIP_SET* set, /**< global SCIP settings */
1098  SCIP_STAT* stat, /**< problem statistics */
1099  SCIP_Real* closestvlb, /**< pointer to store the value of the closest variable lower bound */
1100  int* closestvlbidx /**< pointer to store the index of the closest variable lower bound */
1101  );
1102 
1103 /** returns solution value and index of variable upper bound that is closest to the variable's value in the given primal solution;
1104  * or current LP solution if no primal solution is given; returns an index of -1 if no variable upper bound is available
1105  */
1107  SCIP_VAR* var, /**< active problem variable */
1108  SCIP_SOL* sol, /**< primal solution, or NULL for LP solution */
1109  SCIP_SET* set, /**< global SCIP settings */
1110  SCIP_STAT* stat, /**< problem statistics */
1111  SCIP_Real* closestvub, /**< pointer to store the value of the closest variable upper bound */
1112  int* closestvubidx /**< pointer to store the index of the closest variable upper bound */
1113  );
1114 
1115 /** remembers the current solution as root solution in the problem variables */
1116 void SCIPvarStoreRootSol(
1117  SCIP_VAR* var, /**< problem variable */
1118  SCIP_Bool roothaslp /**< is the root solution from LP? */
1119  );
1120 
1121 /** updates the current solution as best root solution in the problem variables if it is better */
1123  SCIP_VAR* var, /**< problem variable */
1124  SCIP_SET* set, /**< global SCIP settings */
1125  SCIP_Real rootsol, /**< root solution value */
1126  SCIP_Real rootredcost, /**< root reduced cost */
1127  SCIP_Real rootlpobjval /**< objective value of the root LP */
1128  );
1129 
1130 /** returns the solution value of the problem variables in the relaxation solution */
1132  SCIP_VAR* var, /**< problem variable */
1133  SCIP_SET* set /**< global SCIP settings */
1134  );
1135 
1136 /** returns the solution value of the transformed problem variable in the relaxation solution */
1138  SCIP_VAR* var /**< problem variable */
1139  );
1140 
1141 /** returns for the given binary variable the reduced cost which are given by the variable itself and its implication if
1142  * the binary variable is fixed to the given value
1143  */
1145  SCIP_VAR* var, /**< problem variable */
1146  SCIP_SET* set, /**< global SCIP settings */
1147  SCIP_Bool varfixing, /**< FALSE if for x == 0, TRUE for x == 1 */
1148  SCIP_STAT* stat, /**< problem statistics */
1149  SCIP_PROB* prob, /**< transformed problem, or NULL */
1150  SCIP_LP* lp /**< current LP data */
1151  );
1152 
1153 
1154 /** stores the solution value as relaxation solution in the problem variable */
1156  SCIP_VAR* var, /**< problem variable */
1157  SCIP_SET* set, /**< global SCIP settings */
1158  SCIP_RELAXATION* relaxation, /**< global relaxation data */
1159  SCIP_Real solval, /**< solution value in the current relaxation solution */
1160  SCIP_Bool updateobj /**< should the objective value be updated? */
1161  );
1162 
1163 /** stores the solution value as NLP solution in the problem variable */
1165  SCIP_VAR* var, /**< problem variable */
1166  SCIP_SET* set, /**< global SCIP settings */
1167  SCIP_Real solval /**< solution value in the current NLP solution */
1168  );
1169 
1170 /** resolves variable to columns and adds them with the coefficient to the row */
1172  SCIP_VAR* var, /**< problem variable */
1173  BMS_BLKMEM* blkmem, /**< block memory */
1174  SCIP_SET* set, /**< global SCIP settings */
1175  SCIP_STAT* stat, /**< problem statistics */
1176  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
1177  SCIP_PROB* prob, /**< problem data */
1178  SCIP_LP* lp, /**< current LP data */
1179  SCIP_ROW* row, /**< LP row */
1180  SCIP_Real val /**< value of coefficient */
1181  );
1182 
1183 
1184 /** merge two variable histories together; a typical use case is that \p othervar is an image of the target variable
1185  * in a SCIP copy. Method should be applied with care, especially because no internal checks are performed whether
1186  * the history merge is reasonable
1187  *
1188  * @note Do not use this method if the two variables originate from two SCIP's with different objective functions, since
1189  * this corrupts the variable pseudo costs
1190  * @note Apply with care; no internal checks are performed if the two variables should be merged
1191  */
1193  SCIP_VAR* targetvar, /**< the variable that should contain both histories afterwards */
1194  SCIP_VAR* othervar, /**< the variable whose history is to be merged with that of the target variable */
1195  SCIP_STAT* stat /**< problem statistics */
1196  );
1197 
1198 /** sets the history of a variable; this method is typacally used within reoptimization to keep and update the variable
1199  * history over several iteraions
1200  */
1201 void SCIPvarSetHistory(
1202  SCIP_VAR* var, /**< variable */
1203  SCIP_HISTORY* history, /**< the history which is to set */
1204  SCIP_STAT* stat /**< problem statistics */
1205  );
1206 
1207 /** updates the pseudo costs of the given variable and the global pseudo costs after a change of
1208  * "solvaldelta" in the variable's solution value and resulting change of "objdelta" in the in the LP's objective value
1209  */
1211  SCIP_VAR* var, /**< problem variable */
1212  SCIP_SET* set, /**< global SCIP settings */
1213  SCIP_STAT* stat, /**< problem statistics */
1214  SCIP_Real solvaldelta, /**< difference of variable's new LP value - old LP value */
1215  SCIP_Real objdelta, /**< difference of new LP's objective value - old LP's objective value */
1216  SCIP_Real weight /**< weight in (0,1] of this update in pseudo cost sum */
1217  );
1218 
1219 /** gets the variable's pseudo cost value for the given step size "solvaldelta" in the variable's LP solution value */
1221  SCIP_VAR* var, /**< problem variable */
1222  SCIP_STAT* stat, /**< problem statistics */
1223  SCIP_Real solvaldelta /**< difference of variable's new LP value - old LP value */
1224  );
1225 
1226 /** gets the variable's pseudo cost value for the given step size "solvaldelta" in the variable's LP solution value,
1227  * only using the pseudo cost information of the current run
1228  */
1230  SCIP_VAR* var, /**< problem variable */
1231  SCIP_STAT* stat, /**< problem statistics */
1232  SCIP_Real solvaldelta /**< difference of variable's new LP value - old LP value */
1233  );
1234 
1235 /** gets the variable's (possible fractional) number of pseudo cost updates for the given direction */
1237  SCIP_VAR* var, /**< problem variable */
1238  SCIP_BRANCHDIR dir /**< branching direction (downwards, or upwards) */
1239  );
1240 
1241 /** gets the variable's (possible fractional) number of pseudo cost updates for the given direction,
1242  * only using the pseudo cost information of the current run
1243  */
1245  SCIP_VAR* var, /**< problem variable */
1246  SCIP_BRANCHDIR dir /**< branching direction (downwards, or upwards) */
1247  );
1248 
1249 
1250 /** compares both possible directions for rounding the given solution value and returns the minimum pseudo-costs of the variable */
1252  SCIP_VAR* var, /**< problem variable */
1253  SCIP_STAT* stat, /**< problem statistics */
1254  SCIP_SET* set, /**< global SCIP settings */
1255  SCIP_Real solval /**< solution value, e.g., LP solution value */
1256  );
1257 
1258 /** gets the an estimate of the variable's pseudo cost variance in direction \p dir */
1260  SCIP_VAR* var, /**< problem variable */
1261  SCIP_BRANCHDIR dir, /**< branching direction (downwards, or upwards) */
1262  SCIP_Bool onlycurrentrun /**< return pseudo cost variance only for current branch and bound run */
1263  );
1264 
1265 /** calculates a confidence bound for this variable under the assumption of normally distributed pseudo costs
1266  *
1267  * The confidence bound \f$ \theta \geq 0\f$ denotes the interval borders \f$ [X - \theta, \ X + \theta]\f$, which contains
1268  * the true pseudo costs of the variable, i.e., the expected value of the normal distribution, with a probability
1269  * of 95 %.
1270  *
1271  * @return value of confidence bound for this variable
1272  */
1274  SCIP_VAR* var, /**< variable in question */
1275  SCIP_SET* set, /**< global SCIP settings */
1276  SCIP_BRANCHDIR dir, /**< the branching direction for the confidence bound */
1277  SCIP_Bool onlycurrentrun, /**< should only the current run be taken into account */
1278  SCIP_CONFIDENCELEVEL clevel /**< confidence level for the interval */
1279  );
1280 
1281 /** check if the current pseudo cost relative error in a direction violates the given threshold. The Relative
1282  * Error is calculated at a specific confidence level
1283  */
1285  SCIP_VAR* var, /**< variable in question */
1286  SCIP_SET* set, /**< global SCIP settings */
1287  SCIP_STAT* stat, /**< problem statistics */
1288  SCIP_Real threshold, /**< threshold for relative errors to be considered reliable (enough) */
1289  SCIP_CONFIDENCELEVEL clevel /**< a given confidence level */
1290  );
1291 
1292 /** check if variable pseudo-costs have a significant difference in location. The significance depends on
1293  * the choice of \p clevel and on the kind of tested hypothesis. The one-sided hypothesis, which
1294  * should be rejected, is that fracy * mu_y >= fracx * mu_x, where mu_y and mu_x denote the
1295  * unknown location means of the underlying pseudo-cost distributions of x and y.
1296  *
1297  * This method is applied best if variable x has a better pseudo-cost score than y. The method hypothesizes that y were actually
1298  * better than x (despite the current information), meaning that y can be expected to yield branching
1299  * decisions as least as good as x in the long run. If the method returns TRUE, the current history information is
1300  * sufficient to safely rely on the alternative hypothesis that x yields indeed a better branching score (on average)
1301  * than y.
1302  *
1303  * @note The order of x and y matters for the one-sided hypothesis
1304  *
1305  * @note set \p onesided to FALSE if you are not sure which variable is better. The hypothesis tested then reads
1306  * fracy * mu_y == fracx * mu_x vs the alternative hypothesis fracy * mu_y != fracx * mu_x.
1307  *
1308  * @return TRUE if the hypothesis can be safely rejected at the given confidence level
1309  */
1311  SCIP_SET* set, /**< global SCIP settings */
1312  SCIP_STAT* stat, /**< problem statistics */
1313  SCIP_VAR* varx, /**< variable x */
1314  SCIP_Real fracx, /**< the fractionality of variable x */
1315  SCIP_VAR* vary, /**< variable y */
1316  SCIP_Real fracy, /**< the fractionality of variable y */
1317  SCIP_BRANCHDIR dir, /**< branching direction */
1318  SCIP_CONFIDENCELEVEL clevel, /**< confidence level for rejecting hypothesis */
1319  SCIP_Bool onesided /**< should a one-sided hypothesis y >= x be tested? */
1320  );
1321 
1322 /** tests at a given confidence level whether the variable pseudo-costs only have a small probability to
1323  * exceed a \p threshold. This is useful to determine if past observations provide enough evidence
1324  * to skip an expensive strong-branching step if there is already a candidate that has been proven to yield an improvement
1325  * of at least \p threshold.
1326  *
1327  * @note use \p clevel to adjust the level of confidence. For SCIP_CONFIDENCELEVEL_MIN, the method returns TRUE if
1328  * the estimated probability to exceed \p threshold is less than 25 %.
1329  *
1330  * @see SCIP_Confidencelevel for a list of available levels. The used probability limits refer to the one-sided levels
1331  * of confidence.
1332  *
1333  * @return TRUE if the variable pseudo-cost probabilistic model is likely to be smaller than \p threshold
1334  * at the given confidence level \p clevel.
1335  */
1337  SCIP_SET* set, /**< global SCIP settings */
1338  SCIP_STAT* stat, /**< problem statistics */
1339  SCIP_VAR* var, /**< variable x */
1340  SCIP_Real frac, /**< the fractionality of variable x */
1341  SCIP_Real threshold, /**< the threshold to test against */
1342  SCIP_BRANCHDIR dir, /**< branching direction */
1343  SCIP_CONFIDENCELEVEL clevel /**< confidence level for rejecting hypothesis */
1344  );
1345 
1346 /** increases the VSIDS of the variable by the given weight */
1348  SCIP_VAR* var, /**< problem variable */
1349  BMS_BLKMEM* blkmem, /**< block memory, or NULL if the domain value is SCIP_UNKNOWN */
1350  SCIP_SET* set, /**< global SCIP settings, or NULL if the domain value is SCIP_UNKNOWN */
1351  SCIP_STAT* stat, /**< problem statistics */
1352  SCIP_BRANCHDIR dir, /**< branching direction */
1353  SCIP_Real value, /**< domain value, or SCIP_UNKNOWN */
1354  SCIP_Real weight /**< weight of this update in conflict score */
1355  );
1356 
1357 /** scales the VSIDS of the variable by the given scalar */
1359  SCIP_VAR* var, /**< problem variable */
1360  SCIP_Real scalar /**< scalar to multiply the conflict scores with */
1361  );
1362 
1363 /** increases the number of active conflicts by one and the overall length of the variable by the given length */
1365  SCIP_VAR* var, /**< problem variable */
1366  BMS_BLKMEM* blkmem, /**< block memory, or NULL if the domain value is SCIP_UNKNOWN */
1367  SCIP_SET* set, /**< global SCIP settings, or NULL if the domain value is SCIP_UNKNOWN */
1368  SCIP_STAT* stat, /**< problem statistics */
1369  SCIP_BRANCHDIR dir, /**< branching direction */
1370  SCIP_Real value, /**< domain value, or SCIP_UNKNOWN */
1371  SCIP_Real length /**< length of the conflict */
1372  );
1373 
1374 /** gets the number of active conflicts containing this variable in given direction */
1376  SCIP_VAR* var, /**< problem variable */
1377  SCIP_STAT* stat, /**< problem statistics */
1378  SCIP_BRANCHDIR dir /**< branching direction (downwards, or upwards) */
1379  );
1380 
1381 /** gets the number of active conflicts containing this variable in given direction
1382  * in the current run
1383  */
1385  SCIP_VAR* var, /**< problem variable */
1386  SCIP_STAT* stat, /**< problem statistics */
1387  SCIP_BRANCHDIR dir /**< branching direction (downwards, or upwards) */
1388  );
1389 
1390 /** gets the average conflict length in given direction due to branching on the variable */
1392  SCIP_VAR* var, /**< problem variable */
1393  SCIP_BRANCHDIR dir /**< branching direction (downwards, or upwards) */
1394  );
1395 
1396 /** gets the average conflict length in given direction due to branching on the variable
1397  * in the current run
1398  */
1400  SCIP_VAR* var, /**< problem variable */
1401  SCIP_BRANCHDIR dir /**< branching direction (downwards, or upwards) */
1402  );
1403 
1404 /** increases the number of branchings counter of the variable */
1406  SCIP_VAR* var, /**< problem variable */
1407  BMS_BLKMEM* blkmem, /**< block memory, or NULL if the domain value is SCIP_UNKNOWN */
1408  SCIP_SET* set, /**< global SCIP settings, or NULL if the domain value is SCIP_UNKNOWN */
1409  SCIP_STAT* stat, /**< problem statistics */
1410  SCIP_BRANCHDIR dir, /**< branching direction (downwards, or upwards) */
1411  SCIP_Real value, /**< domain value, or SCIP_UNKNOWN */
1412  int depth /**< depth at which the bound change took place */
1413  );
1414 
1415 /** increases the inference score of the variable by the given weight */
1417  SCIP_VAR* var, /**< problem variable */
1418  BMS_BLKMEM* blkmem, /**< block memory, or NULL if the domain value is SCIP_UNKNOWN */
1419  SCIP_SET* set, /**< global SCIP settings, or NULL if the domain value is SCIP_UNKNOWN */
1420  SCIP_STAT* stat, /**< problem statistics */
1421  SCIP_BRANCHDIR dir, /**< branching direction (downwards, or upwards) */
1422  SCIP_Real value, /**< domain value, or SCIP_UNKNOWN */
1423  SCIP_Real weight /**< weight of this update in inference score */
1424  );
1425 
1426 /** increases the cutoff score of the variable by the given weight */
1428  SCIP_VAR* var, /**< problem variable */
1429  BMS_BLKMEM* blkmem, /**< block memory, or NULL if the domain value is SCIP_UNKNOWN */
1430  SCIP_SET* set, /**< global SCIP settings, or NULL if the domain value is SCIP_UNKNOWN */
1431  SCIP_STAT* stat, /**< problem statistics */
1432  SCIP_BRANCHDIR dir, /**< branching direction (downwards, or upwards) */
1433  SCIP_Real value, /**< domain value, or SCIP_UNKNOWN */
1434  SCIP_Real weight /**< weight of this update in cutoff score */
1435  );
1436 
1437 /** returns the variable's VSIDS score */
1439  SCIP_VAR* var, /**< problem variable */
1440  SCIP_STAT* stat, /**< problem statistics */
1441  SCIP_BRANCHDIR dir /**< branching direction (downwards, or upwards) */
1442  );
1443 
1444 /** returns the variable's VSIDS score only using conflicts of the current run */
1446  SCIP_VAR* var, /**< problem variable */
1447  SCIP_STAT* stat, /**< problem statistics */
1448  SCIP_BRANCHDIR dir /**< branching direction (downwards, or upwards) */
1449  );
1450 
1451 /** returns the average number of inferences found after branching on the variable in given direction */
1453  SCIP_VAR* var, /**< problem variable */
1454  SCIP_STAT* stat, /**< problem statistics */
1455  SCIP_BRANCHDIR dir /**< branching direction (downwards, or upwards) */
1456  );
1457 
1458 /** returns the average number of inferences found after branching on the variable in given direction
1459  * in the current run
1460  */
1462  SCIP_VAR* var, /**< problem variable */
1463  SCIP_STAT* stat, /**< problem statistics */
1464  SCIP_BRANCHDIR dir /**< branching direction (downwards, or upwards) */
1465  );
1466 
1467 /** returns the average number of cutoffs found after branching on the variable in given direction */
1469  SCIP_VAR* var, /**< problem variable */
1470  SCIP_STAT* stat, /**< problem statistics */
1471  SCIP_BRANCHDIR dir /**< branching direction (downwards, or upwards) */
1472  );
1473 
1474 /** returns the average number of cutoffs found after branching on the variable in given direction in the current run */
1476  SCIP_VAR* var, /**< problem variable */
1477  SCIP_STAT* stat, /**< problem statistics */
1478  SCIP_BRANCHDIR dir /**< branching direction (downwards, or upwards) */
1479  );
1480 
1481 /** outputs variable information into file stream */
1483  SCIP_VAR* var, /**< problem variable */
1484  SCIP_SET* set, /**< global SCIP settings */
1485  SCIP_MESSAGEHDLR* messagehdlr, /**< message handler */
1486  FILE* file /**< output file (or NULL for standard output) */
1487  );
1488 
1489 /** includes event handler with given data in variable's event filter */
1491  SCIP_VAR* var, /**< problem variable */
1492  BMS_BLKMEM* blkmem, /**< block memory */
1493  SCIP_SET* set, /**< global SCIP settings */
1494  SCIP_EVENTTYPE eventtype, /**< event type to catch */
1495  SCIP_EVENTHDLR* eventhdlr, /**< event handler to call for the event processing */
1496  SCIP_EVENTDATA* eventdata, /**< event data to pass to the event handler for the event processing */
1497  int* filterpos /**< pointer to store position of event filter entry, or NULL */
1498  );
1499 
1500 /** deletes event handler with given data from variable's event filter */
1502  SCIP_VAR* var, /**< problem variable */
1503  BMS_BLKMEM* blkmem, /**< block memory */
1504  SCIP_SET* set, /**< global SCIP settings */
1505  SCIP_EVENTTYPE eventtype, /**< event type mask of dropped event */
1506  SCIP_EVENTHDLR* eventhdlr, /**< event handler to call for the event processing */
1507  SCIP_EVENTDATA* eventdata, /**< event data to pass to the event handler for the event processing */
1508  int filterpos /**< position of event filter entry returned by SCIPvarCatchEvent(), or -1 */
1509  );
1510 
1511 /** returns the variable's VSIDS score */
1513  SCIP_VAR* var, /**< problem variable */
1514  SCIP_STAT* stat, /**< problem statistics */
1515  SCIP_BRANCHDIR dir /**< branching direction (downwards, or upwards) */
1516  );
1517 
1518 /** returns the position of the bound change index */
1519 int SCIPbdchgidxGetPos(
1520  SCIP_BDCHGIDX* bdchgidx /**< bound change index */
1521  );
1522 
1523 /** removes (redundant) cliques, implications and variable bounds of variable from all other variables' implications and variable
1524  * bounds arrays, and optionally removes them also from the variable itself
1525  */
1527  SCIP_VAR* var, /**< problem variable */
1528  BMS_BLKMEM* blkmem, /**< block memory */
1529  SCIP_CLIQUETABLE* cliquetable, /**< clique table data structure */
1530  SCIP_SET* set, /**< global SCIP settings */
1531  SCIP_Bool irrelevantvar, /**< has the variable become irrelevant? */
1532  SCIP_Bool onlyredundant, /**< should only the redundant implications and variable bounds be removed? */
1533  SCIP_Bool removefromvar /**< should the implications and variable bounds be removed from the var itself? */
1534  );
1535 
1536 #ifdef NDEBUG
1537 
1538 /* In optimized mode, the function calls are overwritten by defines to reduce the number of function calls and
1539  * speed up the algorithms.
1540  */
1541 
1542 #define SCIPvarCatchEvent(var, blkmem, set, eventtype, eventhdlr, eventdata, filterpos) \
1543  SCIPeventfilterAdd(var->eventfilter, blkmem, set, eventtype, eventhdlr, eventdata, filterpos)
1544 #define SCIPvarDropEvent(var, blkmem, set, eventtype, eventhdlr, eventdata, filterpos) \
1545  SCIPeventfilterDel(var->eventfilter, blkmem, set, eventtype, eventhdlr, eventdata, filterpos)
1546 #define SCIPvarGetVSIDS(var, stat, dir) ((var)->varstatus == SCIP_VARSTATUS_LOOSE || (var)->varstatus == SCIP_VARSTATUS_COLUMN ? \
1547  SCIPhistoryGetVSIDS(var->history, dir)/stat->vsidsweight : SCIPvarGetVSIDS_rec(var, stat, dir))
1548 #define SCIPbdchgidxGetPos(bdchgidx) ((bdchgidx)->pos)
1549 
1550 #endif
1551 
1552 /*
1553  * Hash functions
1554  */
1555 
1556 /** gets the key (i.e. the name) of the given variable */
1557 SCIP_DECL_HASHGETKEY(SCIPhashGetKeyVar);
1558 
1559 #ifdef __cplusplus
1560 }
1561 #endif
1562 
1563 #endif
SCIP_Real SCIPvarGetRelaxSolTransVar(SCIP_VAR *var)
Definition: var.c:13485
SCIP_RETCODE SCIPvarColumn(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *prob, SCIP_LP *lp)
Definition: var.c:3465
enum SCIP_BoundType SCIP_BOUNDTYPE
Definition: type_lp.h:50
SCIP_RETCODE SCIPvarChgBdLocal(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_Real newbound, SCIP_BOUNDTYPE boundtype)
Definition: var.c:7939
SCIP_RETCODE SCIPvarChgBdGlobal(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_CLIQUETABLE *cliquetable, SCIP_Real newbound, SCIP_BOUNDTYPE boundtype)
Definition: var.c:7236
internal methods for managing events
int SCIPbdchgidxGetPos(SCIP_BDCHGIDX *bdchgidx)
Definition: var.c:17884
SCIP_RETCODE SCIPvarAddVlb(SCIP_VAR *var, 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_CLIQUETABLE *cliquetable, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_VAR *vlbvar, SCIP_Real vlbcoef, SCIP_Real vlbconstant, SCIP_Bool transitive, SCIP_Bool *infeasible, int *nbdchgs)
Definition: var.c:9717
SCIP_Real SCIPvarGetPseudocostCurrentRun(SCIP_VAR *var, SCIP_STAT *stat, SCIP_Real solvaldelta)
Definition: var.c:14014
public methods for branching and inference history structure
SCIP_RETCODE SCIPdomchgApply(SCIP_DOMCHG *domchg, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, int depth, SCIP_Bool *cutoff)
Definition: var.c:1225
SCIP_RETCODE SCIPvarChgLbLocal(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_Real newbound)
Definition: var.c:7688
void SCIPvarCapture(SCIP_VAR *var)
Definition: var.c:2770
type definitions for miscellaneous datastructures
type definitions for implications, variable bounds, and cliques
SCIP_RETCODE SCIPvarsGetActiveVars(SCIP_SET *set, SCIP_VAR **vars, int *nvars, int varssize, int *requiredsize)
Definition: var.c:11500
SCIP_RETCODE SCIPvarPrint(SCIP_VAR *var, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, FILE *file)
Definition: var.c:2903
SCIP_Real SCIPvarGetAvgCutoffs(SCIP_VAR *var, SCIP_STAT *stat, SCIP_BRANCHDIR dir)
Definition: var.c:15753
#define SCIP_DECL_VARTRANS(x)
Definition: type_var.h:138
void SCIPvarSetHistory(SCIP_VAR *var, SCIP_HISTORY *history, SCIP_STAT *stat)
Definition: var.c:4373
SCIP_RETCODE SCIPvarCreateOriginal(SCIP_VAR **var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, const char *name, SCIP_Real lb, SCIP_Real ub, SCIP_Real obj, SCIP_VARTYPE vartype, SCIP_Bool initial, SCIP_Bool removable, SCIP_DECL_VARDELORIG((*vardelorig)), SCIP_DECL_VARTRANS((*vartrans)), SCIP_DECL_VARDELTRANS((*vardeltrans)), SCIP_DECL_VARCOPY((*varcopy)), SCIP_VARDATA *vardata)
Definition: var.c:2001
SCIP_RETCODE SCIPdomchgMakeStatic(SCIP_DOMCHG **domchg, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTQUEUE *eventqueue, SCIP_LP *lp)
Definition: var.c:1087
void SCIPvarInitSolve(SCIP_VAR *var)
Definition: var.c:2827
SCIP_RETCODE SCIPvarTryAggregateVars(SCIP_SET *set, BMS_BLKMEM *blkmem, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_PRIMAL *primal, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_CLIQUETABLE *cliquetable, SCIP_BRANCHCAND *branchcand, SCIP_EVENTFILTER *eventfilter, SCIP_EVENTQUEUE *eventqueue, SCIP_VAR *varx, SCIP_VAR *vary, SCIP_Real scalarx, SCIP_Real scalary, SCIP_Real rhs, SCIP_Bool *infeasible, SCIP_Bool *aggregated)
Definition: var.c:5106
SCIP_RETCODE SCIPvarChgBranchDirection(SCIP_VAR *var, SCIP_BRANCHDIR branchdirection)
Definition: var.c:11313
SCIP_Real SCIPvarGetVSIDSCurrentRun(SCIP_VAR *var, SCIP_STAT *stat, SCIP_BRANCHDIR dir)
Definition: var.c:15416
SCIP_DECL_HASHGETKEY(SCIPhashGetKeyVar)
Definition: var.c:16498
SCIP_RETCODE SCIPvarChgObj(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_PROB *prob, SCIP_PRIMAL *primal, SCIP_LP *lp, SCIP_EVENTQUEUE *eventqueue, SCIP_Real newobj)
Definition: var.c:5984
void SCIPbdchginfoFree(SCIP_BDCHGINFO **bdchginfo, BMS_BLKMEM *blkmem)
Definition: var.c:15884
static long bound
SCIP_RETCODE SCIPvarRelease(SCIP_VAR **var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTQUEUE *eventqueue, SCIP_LP *lp)
Definition: var.c:2782
SCIP_Longint SCIPvarGetNActiveConflictsCurrentRun(SCIP_VAR *var, SCIP_STAT *stat, SCIP_BRANCHDIR dir)
Definition: var.c:14803
SCIP_Real SCIPvarGetRelaxSol(SCIP_VAR *var, SCIP_SET *set)
Definition: var.c:13413
SCIP_RETCODE SCIPvarIncVSIDS(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_BRANCHDIR dir, SCIP_Real value, SCIP_Real weight)
Definition: var.c:14539
SCIP_RETCODE SCIPvarResetBounds(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat)
Definition: var.c:8947
SCIP_RETCODE SCIPvarAddHoleLocal(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_Real left, SCIP_Real right, SCIP_Bool *added)
Definition: var.c:8838
SCIP_RETCODE SCIPboundchgApply(SCIP_BOUNDCHG *boundchg, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, int depth, int pos, SCIP_Bool *cutoff)
Definition: var.c:554
SCIP_Bool SCIPvarIsMarkedDeleteGlobalStructures(SCIP_VAR *var)
Definition: var.c:17005
struct SCIP_VarData SCIP_VARDATA
Definition: type_var.h:107
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:53
SCIP_RETCODE SCIPvarCopy(SCIP_VAR **var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP *sourcescip, SCIP_VAR *sourcevar, SCIP_HASHMAP *varmap, SCIP_HASHMAP *consmap, SCIP_Bool global)
Definition: var.c:2086
type definitions for global SCIP settings
#define SCIP_DECL_VARCOPY(x)
Definition: type_var.h:181
SCIP_Real SCIPvarGetMultaggrUbGlobal(SCIP_VAR *var, SCIP_SET *set)
Definition: var.c:8348
SCIP_Bool SCIPvarPscostThresholdProbabilityTest(SCIP_SET *set, SCIP_STAT *stat, SCIP_VAR *var, SCIP_Real frac, SCIP_Real threshold, SCIP_BRANCHDIR dir, SCIP_CONFIDENCELEVEL clevel)
Definition: var.c:14415
SCIP_RETCODE SCIPvarChgType(SCIP_VAR *var, SCIP_VARTYPE vartype)
Definition: var.c:5933
SCIP_Real SCIPvarGetImplRedcost(SCIP_VAR *var, SCIP_SET *set, SCIP_Bool varfixing, SCIP_STAT *stat, SCIP_PROB *prob, SCIP_LP *lp)
Definition: var.c:12959
SCIP_Bool SCIPvarSignificantPscostDifference(SCIP_SET *set, SCIP_STAT *stat, SCIP_VAR *varx, SCIP_Real fracx, SCIP_VAR *vary, SCIP_Real fracy, SCIP_BRANCHDIR dir, SCIP_CONFIDENCELEVEL clevel, SCIP_Bool onesided)
Definition: var.c:14349
type definitions for return codes for SCIP methods
SCIP_Real SCIPvarGetMultaggrLbGlobal(SCIP_VAR *var, SCIP_SET *set)
Definition: var.c:8282
SCIP_RETCODE SCIPvarCreateTransformed(SCIP_VAR **var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, const char *name, SCIP_Real lb, SCIP_Real ub, SCIP_Real obj, SCIP_VARTYPE vartype, SCIP_Bool initial, SCIP_Bool removable, SCIP_DECL_VARDELORIG((*vardelorig)), SCIP_DECL_VARTRANS((*vartrans)), SCIP_DECL_VARDELTRANS((*vardeltrans)), SCIP_DECL_VARCOPY((*varcopy)), SCIP_VARDATA *vardata)
Definition: var.c:2044
SCIP_RETCODE SCIPvarChgUbOriginal(SCIP_VAR *var, SCIP_SET *set, SCIP_Real newbound)
Definition: var.c:6344
SCIP_RETCODE SCIPvarGetTransformed(SCIP_VAR *origvar, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_VAR **transvar)
Definition: var.c:3434
type definitions for collecting reoptimization information
SCIP_RETCODE SCIPvarDelCliqueFromList(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_Bool value, SCIP_CLIQUE *clique)
Definition: var.c:10912
void SCIPvarAdjustUb(SCIP_VAR *var, SCIP_SET *set, SCIP_Real *ub)
Definition: var.c:6252
type definitions for branching rules
type definitions for problem statistics
SCIP_RETCODE SCIPvarAddVub(SCIP_VAR *var, 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_CLIQUETABLE *cliquetable, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_VAR *vubvar, SCIP_Real vubcoef, SCIP_Real vubconstant, SCIP_Bool transitive, SCIP_Bool *infeasible, int *nbdchgs)
Definition: var.c:10089
SCIP_RETCODE SCIPvarSetNLPSol(SCIP_VAR *var, SCIP_SET *set, SCIP_Real solval)
Definition: var.c:13496
SCIP_RETCODE SCIPvarRemove(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_CLIQUETABLE *cliquetable, SCIP_SET *set, SCIP_Bool final)
Definition: var.c:5851
SCIP_RETCODE SCIPvarAddObj(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_PRIMAL *primal, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_EVENTQUEUE *eventqueue, SCIP_Real addobj)
Definition: var.c:6059
#define SCIP_DECL_VARDELTRANS(x)
Definition: type_var.h:151
type definitions for LP management
SCIP_RETCODE SCIPvarIncInferenceSum(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_BRANCHDIR dir, SCIP_Real value, SCIP_Real weight)
Definition: var.c:15019
enum SCIP_BranchDir SCIP_BRANCHDIR
Definition: type_history.h:39
SCIP_Real SCIPbdchginfoGetRelaxedBound(SCIP_BDCHGINFO *bdchginfo)
Definition: var.c:18073
void SCIPvarMarkDeleted(SCIP_VAR *var)
Definition: var.c:5887
SCIP_RETCODE SCIPdomchgAddBoundchg(SCIP_DOMCHG **domchg, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_VAR *var, SCIP_Real newbound, SCIP_BOUNDTYPE boundtype, SCIP_BOUNDCHGTYPE boundchgtype, SCIP_Real lpsolval, SCIP_VAR *infervar, SCIP_CONS *infercons, SCIP_PROP *inferprop, int inferinfo, SCIP_BOUNDTYPE inferboundtype)
Definition: var.c:1348
SCIP_Bool SCIPvarDoNotMultaggr(SCIP_VAR *var)
Definition: var.c:5675
SCIP_Real SCIPvarGetAvgInferences(SCIP_VAR *var, SCIP_STAT *stat, SCIP_BRANCHDIR dir)
Definition: var.c:15555
SCIP_Real SCIPvarCalcPscostConfidenceBound(SCIP_VAR *var, SCIP_SET *set, SCIP_BRANCHDIR dir, SCIP_Bool onlycurrentrun, SCIP_CONFIDENCELEVEL clevel)
Definition: var.c:14234
enum SCIP_Confidencelevel SCIP_CONFIDENCELEVEL
Definition: type_misc.h:44
SCIP_Bool SCIPvarIsPscostRelerrorReliable(SCIP_VAR *var, SCIP_SET *set, SCIP_STAT *stat, SCIP_Real threshold, SCIP_CONFIDENCELEVEL clevel)
Definition: var.c:14272
SCIP_RETCODE SCIPvarIncNActiveConflicts(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_BRANCHDIR dir, SCIP_Real value, SCIP_Real length)
Definition: var.c:14675
SCIP_Real SCIPvarGetPseudocostVariance(SCIP_VAR *var, SCIP_BRANCHDIR dir, SCIP_Bool onlycurrentrun)
Definition: var.c:14180
void SCIPvarGetClosestVlb(SCIP_VAR *var, SCIP_SOL *sol, SCIP_SET *set, SCIP_STAT *stat, SCIP_Real *closestvlb, int *closestvlbidx)
Definition: var.c:13612
SCIP_RETCODE SCIPvarChgUbLazy(SCIP_VAR *var, SCIP_SET *set, SCIP_Real lazylb)
Definition: var.c:7210
SCIP_Real SCIPvarGetPseudocostCountCurrentRun(SCIP_VAR *var, SCIP_BRANCHDIR dir)
Definition: var.c:14106
SCIP_RETCODE SCIPvarAggregate(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_PRIMAL *primal, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_CLIQUETABLE *cliquetable, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_VAR *aggvar, SCIP_Real scalar, SCIP_Real constant, SCIP_Bool *infeasible, SCIP_Bool *aggregated)
Definition: var.c:4578
enum SCIP_LockType SCIP_LOCKTYPE
Definition: type_var.h:87
SCIP_RETCODE SCIPvarAddCliqueToList(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_Bool value, SCIP_CLIQUE *clique)
Definition: var.c:10890
SCIP_RETCODE SCIPvarParseOriginal(SCIP_VAR **var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_STAT *stat, const char *str, SCIP_Bool initial, SCIP_Bool removable, SCIP_DECL_VARCOPY((*varcopy)), SCIP_DECL_VARDELORIG((*vardelorig)), SCIP_DECL_VARTRANS((*vartrans)), SCIP_DECL_VARDELTRANS((*vardeltrans)), SCIP_VARDATA *vardata, char **endptr, SCIP_Bool *success)
Definition: var.c:2421
type definitions for SCIP&#39;s main datastructure
SCIP_RETCODE SCIPvarGetProbvarSum(SCIP_VAR **var, SCIP_SET *set, SCIP_Real *scalar, SCIP_Real *constant)
Definition: var.c:12141
SCIP_RETCODE SCIPvarCatchEvent(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTTYPE eventtype, SCIP_EVENTHDLR *eventhdlr, SCIP_EVENTDATA *eventdata, int *filterpos)
Definition: var.c:17832
void SCIPvarSetNamePointer(SCIP_VAR *var, const char *name)
Definition: var.c:5833
SCIP_RETCODE SCIPvarUpdatePseudocost(SCIP_VAR *var, SCIP_SET *set, SCIP_STAT *stat, SCIP_Real solvaldelta, SCIP_Real objdelta, SCIP_Real weight)
Definition: var.c:13867
struct SCIP_EventData SCIP_EVENTDATA
Definition: type_event.h:155
SCIP_Real SCIPvarGetLbLP(SCIP_VAR *var, SCIP_SET *set)
Definition: var.c:12426
SCIP_RETCODE SCIPvarMultiaggregate(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_PRIMAL *primal, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_CLIQUETABLE *cliquetable, SCIP_BRANCHCAND *branchcand, SCIP_EVENTFILTER *eventfilter, SCIP_EVENTQUEUE *eventqueue, int naggvars, SCIP_VAR **aggvars, SCIP_Real *scalars, SCIP_Real constant, SCIP_Bool *infeasible, SCIP_Bool *aggregated)
Definition: var.c:5272
SCIP_RETCODE SCIPvarDropEvent(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTTYPE eventtype, SCIP_EVENTHDLR *eventhdlr, SCIP_EVENTDATA *eventdata, int filterpos)
Definition: var.c:17859
SCIP_RETCODE SCIPbdchginfoCreate(SCIP_BDCHGINFO **bdchginfo, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_BOUNDTYPE boundtype, SCIP_Real oldbound, SCIP_Real newbound)
Definition: var.c:15854
SCIP_Real SCIPvarGetVSIDS_rec(SCIP_VAR *var, SCIP_STAT *stat, SCIP_BRANCHDIR dir)
Definition: var.c:15365
SCIP_RETCODE SCIPvarChgLbDive(SCIP_VAR *var, SCIP_SET *set, SCIP_LP *lp, SCIP_Real newbound)
Definition: var.c:7965
SCIP_RETCODE SCIPvarChgBranchPriority(SCIP_VAR *var, int branchpriority)
Definition: var.c:11183
SCIP_Real SCIPvarGetAvgConflictlength(SCIP_VAR *var, SCIP_BRANCHDIR dir)
Definition: var.c:14848
type definitions for problem variables
type definitions for relaxators
SCIP_Real SCIPvarGetAvgInferencesCurrentRun(SCIP_VAR *var, SCIP_STAT *stat, SCIP_BRANCHDIR dir)
Definition: var.c:15612
SCIP_Real SCIPvarGetObjLP(SCIP_VAR *var)
Definition: var.c:12380
type definitions for managing events
SCIP_RETCODE SCIPvarChgLbGlobal(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_CLIQUETABLE *cliquetable, SCIP_Real newbound)
Definition: var.c:6903
SCIP_Real SCIPvarGetMultaggrUbLocal(SCIP_VAR *var, SCIP_SET *set)
Definition: var.c:8216
SCIP_Real SCIPvarGetPseudocost(SCIP_VAR *var, SCIP_STAT *stat, SCIP_Real solvaldelta)
Definition: var.c:13965
SCIP_RETCODE SCIPdomchgAddHolechg(SCIP_DOMCHG **domchg, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_HOLELIST **ptr, SCIP_HOLELIST *newlist, SCIP_HOLELIST *oldlist)
Definition: var.c:1445
void SCIPvarAdjustLb(SCIP_VAR *var, SCIP_SET *set, SCIP_Real *lb)
Definition: var.c:6235
SCIP_RETCODE SCIPvarAddLocks(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTQUEUE *eventqueue, SCIP_LOCKTYPE locktype, int addnlocksdown, int addnlocksup)
Definition: var.c:3064
#define SCIP_Bool
Definition: def.h:70
SCIP_Real SCIPvarGetAvgConflictlengthCurrentRun(SCIP_VAR *var, SCIP_BRANCHDIR dir)
Definition: var.c:14892
SCIP_RETCODE SCIPdomchgUndo(SCIP_DOMCHG *domchg, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue)
Definition: var.c:1274
enum SCIP_Objsense SCIP_OBJSENSE
Definition: type_prob.h:41
void SCIPvarGetClosestVub(SCIP_VAR *var, SCIP_SOL *sol, SCIP_SET *set, SCIP_STAT *stat, SCIP_Real *closestvub, int *closestvubidx)
Definition: var.c:13687
SCIP_RETCODE SCIPvarFlattenAggregationGraph(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set)
Definition: var.c:4299
SCIP_RETCODE SCIPvarChgObjDive(SCIP_VAR *var, SCIP_SET *set, SCIP_LP *lp, SCIP_Real newobj)
Definition: var.c:6172
SCIP_Longint SCIPvarGetNActiveConflicts(SCIP_VAR *var, SCIP_STAT *stat, SCIP_BRANCHDIR dir)
Definition: var.c:14756
SCIP_RETCODE SCIPvarsAddClique(SCIP_VAR **vars, SCIP_Bool *values, int nvars, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_CLIQUE *clique)
Definition: var.c:10852
SCIP_Real SCIPvarGetAvgCutoffsCurrentRun(SCIP_VAR *var, SCIP_STAT *stat, SCIP_BRANCHDIR dir)
Definition: var.c:15800
type definitions for branch and bound tree
SCIP_RETCODE SCIPvarNegate(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_VAR **negvar)
Definition: var.c:5710
SCIP_RETCODE SCIPvarChgName(SCIP_VAR *var, BMS_BLKMEM *blkmem, const char *name)
Definition: var.c:2809
type definitions for storing primal CIP solutions
type definitions for storing and manipulating the main problem
SCIP_Real SCIPvarGetMultaggrLbLocal(SCIP_VAR *var, SCIP_SET *set)
Definition: var.c:8150
SCIP_RETCODE SCIPvarRemoveCliquesImplicsVbs(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_CLIQUETABLE *cliquetable, SCIP_SET *set, SCIP_Bool irrelevantvar, SCIP_Bool onlyredundant, SCIP_Bool removefromvar)
Definition: var.c:1535
SCIP_RETCODE SCIPvarAddHoleOriginal(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_Real left, SCIP_Real right)
Definition: var.c:8409
SCIP_RETCODE SCIPvarParseTransformed(SCIP_VAR **var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_STAT *stat, const char *str, SCIP_Bool initial, SCIP_Bool removable, SCIP_DECL_VARCOPY((*varcopy)), SCIP_DECL_VARDELORIG((*vardelorig)), SCIP_DECL_VARTRANS((*vartrans)), SCIP_DECL_VARDELTRANS((*vardeltrans)), SCIP_VARDATA *vardata, char **endptr, SCIP_Bool *success)
Definition: var.c:2485
void SCIPvarMergeHistories(SCIP_VAR *targetvar, SCIP_VAR *othervar, SCIP_STAT *stat)
Definition: var.c:4357
SCIP_RETCODE SCIPvarAddClique(SCIP_VAR *var, 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_CLIQUETABLE *cliquetable, SCIP_Bool value, SCIP_CLIQUE *clique, SCIP_Bool *infeasible, int *nbdchgs)
Definition: var.c:10767
#define SCIP_DECL_VARDELORIG(x)
Definition: type_var.h:118
type definitions for propagators
void SCIPvarStoreRootSol(SCIP_VAR *var, SCIP_Bool roothaslp)
Definition: var.c:12761
SCIP_RETCODE SCIPvarIncNBranchings(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_BRANCHDIR dir, SCIP_Real value, int depth)
Definition: var.c:14935
SCIP_RETCODE SCIPvarMarkDoNotMultaggr(SCIP_VAR *var)
Definition: var.c:5898
SCIP_Real SCIPvarGetPseudocostCount(SCIP_VAR *var, SCIP_BRANCHDIR dir)
Definition: var.c:14061
static const SCIP_Real scalars[]
Definition: lp.c:5650
SCIP_RETCODE SCIPvarChgUbLocal(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_Real newbound)
Definition: var.c:7814
SCIP_MESSAGEHDLR * messagehdlr
Definition: struct_visual.h:44
SCIP_RETCODE SCIPvarFix(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_PRIMAL *primal, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_CLIQUETABLE *cliquetable, SCIP_Real fixedval, SCIP_Bool *infeasible, SCIP_Bool *fixed)
Definition: var.c:3635
SCIP_Real SCIPvarGetUbLP(SCIP_VAR *var, SCIP_SET *set)
Definition: var.c:12496
datastructures for problem variables
#define SCIP_Real
Definition: def.h:164
result codes for SCIP callback methods
SCIP_RETCODE SCIPvarChgLbLazy(SCIP_VAR *var, SCIP_SET *set, SCIP_Real lazylb)
Definition: var.c:7187
type definitions for branching and inference history
SCIP_RETCODE SCIPdomchgFree(SCIP_DOMCHG **domchg, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTQUEUE *eventqueue, SCIP_LP *lp)
Definition: var.c:986
SCIP_RETCODE SCIPvarChgLbOriginal(SCIP_VAR *var, SCIP_SET *set, SCIP_Real newbound)
Definition: var.c:6285
SCIP_RETCODE SCIPvarTransform(SCIP_VAR *origvar, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_OBJSENSE objsense, SCIP_VAR **transvar)
Definition: var.c:3348
SCIP_RETCODE SCIPvarAddHoleGlobal(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_Real left, SCIP_Real right, SCIP_Bool *added)
Definition: var.c:8590
#define SCIP_Longint
Definition: def.h:149
SCIP_RETCODE SCIPvarLoose(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTQUEUE *eventqueue, SCIP_PROB *prob, SCIP_LP *lp)
Definition: var.c:3499
SCIP_RETCODE SCIPvarScaleVSIDS(SCIP_VAR *var, SCIP_Real scalar)
Definition: var.c:14625
SCIP_RETCODE SCIPvarAddImplic(SCIP_VAR *var, 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_CLIQUETABLE *cliquetable, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_Bool varfixing, SCIP_VAR *implvar, SCIP_BOUNDTYPE impltype, SCIP_Real implbound, SCIP_Bool transitive, SCIP_Bool *infeasible, int *nbdchgs)
Definition: var.c:10444
void SCIPvarUpdateBestRootSol(SCIP_VAR *var, SCIP_SET *set, SCIP_Real rootsol, SCIP_Real rootredcost, SCIP_Real rootlpobjval)
Definition: var.c:12772
void SCIPvarSetProbindex(SCIP_VAR *var, int probindex)
Definition: var.c:5818
int SCIPvarGetConflictingBdchgDepth(SCIP_VAR *var, SCIP_SET *set, SCIP_BOUNDTYPE boundtype, SCIP_Real bound)
Definition: var.c:16366
type definitions for message output methods
enum SCIP_Vartype SCIP_VARTYPE
Definition: type_var.h:60
SCIP_RETCODE SCIPvarIncCutoffSum(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_BRANCHDIR dir, SCIP_Real value, SCIP_Real weight)
Definition: var.c:15103
SCIP_Real SCIPvarGetMinPseudocostScore(SCIP_VAR *var, SCIP_STAT *stat, SCIP_SET *set, SCIP_Real solval)
Definition: var.c:14149
SCIP_RETCODE SCIPvarDelClique(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_CLIQUETABLE *cliquetable, SCIP_Bool value, SCIP_CLIQUE *clique)
Definition: var.c:10929
type definitions for collecting primal CIP solutions and primal informations
SCIP_RETCODE SCIPvarSetRelaxSol(SCIP_VAR *var, SCIP_SET *set, SCIP_RELAXATION *relaxation, SCIP_Real solval, SCIP_Bool updateobj)
Definition: var.c:13352
SCIP_RETCODE SCIPvarAddToRow(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_PROB *prob, SCIP_LP *lp, SCIP_ROW *row, SCIP_Real val)
Definition: var.c:13759
common defines and data types used in all packages of SCIP
SCIP_RETCODE SCIPvarGetActiveRepresentatives(SCIP_SET *set, SCIP_VAR **vars, SCIP_Real *scalars, int *nvars, int varssize, SCIP_Real *constant, int *requiredsize, SCIP_Bool mergemultiples)
Definition: var.c:3804
struct BMS_BlkMem BMS_BLKMEM
Definition: memory.h:427
SCIP_RETCODE SCIPboundchgUndo(SCIP_BOUNDCHG *boundchg, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue)
Definition: var.c:751
enum SCIP_BoundchgType SCIP_BOUNDCHGTYPE
Definition: type_var.h:78
void SCIPvarAdjustBd(SCIP_VAR *var, SCIP_SET *set, SCIP_BOUNDTYPE boundtype, SCIP_Real *bd)
Definition: var.c:6269
SCIP_RETCODE SCIPdomchgApplyGlobal(SCIP_DOMCHG *domchg, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_CLIQUETABLE *cliquetable, SCIP_Bool *cutoff)
Definition: var.c:1309
SCIP_RETCODE SCIPvarChgUbGlobal(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_CLIQUETABLE *cliquetable, SCIP_Real newbound)
Definition: var.c:7046
SCIP_Real SCIPvarGetVSIDS(SCIP_VAR *var, SCIP_STAT *stat, SCIP_BRANCHDIR dir)
Definition: var.c:17817
type definitions for constraints and constraint handlers
SCIP_RETCODE SCIPvarFixBinary(SCIP_VAR *var, 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_CLIQUETABLE *cliquetable, SCIP_Bool value, SCIP_Bool *infeasible, int *nbdchgs)
Definition: var.c:10676
SCIP_RETCODE SCIPvarChgBranchFactor(SCIP_VAR *var, SCIP_SET *set, SCIP_Real branchfactor)
Definition: var.c:11057
uint64_t SCIP_EVENTTYPE
Definition: type_event.h:134
SCIP_RETCODE SCIPvarChgUbDive(SCIP_VAR *var, SCIP_SET *set, SCIP_LP *lp, SCIP_Real newbound)
Definition: var.c:8055
memory allocation routines