Scippy

SCIP

Solving Constraint Integer Programs

pub_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-2017 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SCIP is distributed under the terms of the ZIB Academic License. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SCIP; see the file COPYING. If not email to scip@zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file pub_var.h
17  * @ingroup PUBLICCOREAPI
18  * @brief public 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_PUB_VAR_H__
25 #define __SCIP_PUB_VAR_H__
26 
27 
28 #include "scip/def.h"
29 #include "scip/type_retcode.h"
30 #include "scip/type_misc.h"
31 #include "scip/type_history.h"
32 #include "scip/type_var.h"
33 #include "scip/type_implics.h"
34 #include "scip/type_cons.h"
35 
36 #ifdef NDEBUG
37 #include "scip/struct_var.h"
38 #include "scip/implics.h"
39 #include "scip/history.h"
40 #endif
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 /*
47  * methods for variables
48  */
49 
50 /**@addtogroup PublicVariableMethods
51  *
52  * @{
53  */
54 
55 /** gets number of locks for rounding down */
56 extern
58  SCIP_VAR* var /**< problem variable */
59  );
60 
61 /** gets number of locks for rounding up */
62 extern
64  SCIP_VAR* var /**< problem variable */
65  );
66 
67 /** is it possible, to round variable down and stay feasible? */
68 extern
70  SCIP_VAR* var /**< problem variable */
71  );
72 
73 /** is it possible, to round variable up and stay feasible? */
74 extern
76  SCIP_VAR* var /**< problem variable */
77  );
78 
79 /** compares the index of two variables, only active or negated variables are allowed, if a variable
80  * is negated then the index of the corresponding active variable is taken, returns -1 if first is
81  * smaller than, and +1 if first is greater than second variable index; returns 0 if both indices
82  * are equal, which means both variables are equal
83  */
84 extern
86  SCIP_VAR* var1, /**< first problem variable */
87  SCIP_VAR* var2 /**< second problem variable */
88  );
89 
90 /** comparison method for sorting active and negated variables by non-decreasing index, active and negated
91  * variables are handled as the same variables
92  */
93 extern
94 SCIP_DECL_SORTPTRCOMP(SCIPvarCompActiveAndNegated);
95 
96 /** compares the index of two variables, returns -1 if first is smaller than, and +1 if first is greater than second
97  * variable index; returns 0 if both indices are equal, which means both variables are equal
98  */
99 extern
100 int SCIPvarCompare(
101  SCIP_VAR* var1, /**< first problem variable */
102  SCIP_VAR* var2 /**< second problem variable */
103  );
104 
105 /** comparison method for sorting variables by non-decreasing index */
106 extern
107 SCIP_DECL_SORTPTRCOMP(SCIPvarComp);
108 
109 /** comparison method for sorting variables by non-decreasing objective coefficient */
110 extern
111 SCIP_DECL_SORTPTRCOMP(SCIPvarCompObj);
112 
113 /** hash key retrieval function for variables */
114 extern
115 SCIP_DECL_HASHGETKEY(SCIPvarGetHashkey);
116 
117 /** returns TRUE iff the indices of both variables are equal */
118 extern
119 SCIP_DECL_HASHKEYEQ(SCIPvarIsHashkeyEq);
120 
121 /** returns the hash value of the key */
122 extern
123 SCIP_DECL_HASHKEYVAL(SCIPvarGetHashkeyVal);
124 
125 
126 /** gets corresponding active, fixed, or multi-aggregated problem variables of given variables,
127  * @note the content of the given array will/might change
128  */
129 extern
130 void SCIPvarsGetProbvar(
131  SCIP_VAR** vars, /**< array of problem variables */
132  int nvars /**< number of variables */
133  );
134 
135 /** gets corresponding active, fixed, or multi-aggregated problem variable of a variable */
136 extern
138  SCIP_VAR* var /**< problem variable */
139  );
140 
141 /** gets corresponding active, fixed, or multi-aggregated problem variables of binary variables and
142  * updates the given negation status of each variable
143  */
144 extern
146  SCIP_VAR*** vars, /**< pointer to binary problem variables */
147  SCIP_Bool** negatedarr, /**< pointer to corresponding array to update the negation status */
148  int nvars /**< number of variables and values in vars and negated array */
149  );
150 
151 /** gets corresponding active, fixed, or multi-aggregated problem variable of a binary variable and
152  * updates the given negation status
153  */
154 extern
156  SCIP_VAR** var, /**< pointer to binary problem variable */
157  SCIP_Bool* negated /**< pointer to update the negation status */
158  );
159 
160 /** transforms given variable, boundtype and bound to the corresponding active, fixed, or multi-aggregated variable
161  * values
162  */
163 extern
165  SCIP_VAR** var, /**< pointer to problem variable */
166  SCIP_Real* bound, /**< pointer to bound value to transform */
167  SCIP_BOUNDTYPE* boundtype /**< pointer to type of bound: lower or upper bound */
168  );
169 
170 /** transforms given variable and domain hole to the corresponding active, fixed, or multi-aggregated variable
171  * values
172  */
173 extern
175  SCIP_VAR** var, /**< pointer to problem variable */
176  SCIP_Real* left, /**< pointer to left bound of open interval in hole to transform */
177  SCIP_Real* right /**< pointer to right bound of open interval in hole to transform */
178  );
179 
180 /** retransforms given variable, scalar and constant to the corresponding original variable, scalar
181  * and constant, if possible; if the retransformation is impossible, NULL is returned as variable
182  */
183 extern
185  SCIP_VAR** var, /**< pointer to problem variable x in sum a*x + c */
186  SCIP_Real* scalar, /**< pointer to scalar a in sum a*x + c */
187  SCIP_Real* constant /**< pointer to constant c in sum a*x + c */
188  );
189 
190 /** returns whether the given variable is the direct counterpart of an original problem variable */
191 extern
193  SCIP_VAR* var /**< problem variable */
194  );
195 
196 /** returns the number of times, a bound of the variable was changed in given direction due to branching */
197 extern
199  SCIP_VAR* var, /**< problem variable */
200  SCIP_BRANCHDIR dir /**< branching direction (downwards, or upwards) */
201  );
202 
203 /** returns the number of times, a bound of the variable was changed in given direction due to branching
204  * in the current run
205  */
206 extern
208  SCIP_VAR* var, /**< problem variable */
209  SCIP_BRANCHDIR dir /**< branching direction (downwards, or upwards) */
210  );
211 
212 /** returns the number of inferences branching on this variable in given direction triggered */
213 extern
215  SCIP_VAR* var, /**< problem variable */
216  SCIP_BRANCHDIR dir /**< branching direction (downwards, or upwards) */
217  );
218 
219 /** returns the number of inferences branching on this variable in given direction triggered
220  * in the current run
221  */
222 extern
224  SCIP_VAR* var, /**< problem variable */
225  SCIP_BRANCHDIR dir /**< branching direction (downwards, or upwards) */
226  );
227 
228 /** returns the number of cutoffs branching on this variable in given direction produced */
229 extern
231  SCIP_VAR* var, /**< problem variable */
232  SCIP_BRANCHDIR dir /**< branching direction (downwards, or upwards) */
233  );
234 
235 /** returns the number of cutoffs branching on this variable in given direction produced in the current run */
236 extern
238  SCIP_VAR* var, /**< problem variable */
239  SCIP_BRANCHDIR dir /**< branching direction (downwards, or upwards) */
240  );
241 
242 /** returns the average depth of bound changes in given direction due to branching on the variable */
243 extern
245  SCIP_VAR* var, /**< problem variable */
246  SCIP_BRANCHDIR dir /**< branching direction (downwards, or upwards) */
247  );
248 
249 /** returns the average depth of bound changes in given direction due to branching on the variable
250  * in the current run
251  */
252 extern
254  SCIP_VAR* var, /**< problem variable */
255  SCIP_BRANCHDIR dir /**< branching direction (downwards, or upwards) */
256  );
257 
258 /** returns whether there is an implication x == varfixing -> y <= b or y >= b in the implication graph;
259  * implications that are represented as cliques in the clique table are not regarded (use SCIPvarsHaveCommonClique());
260  * both variables must be active, variable x must be binary
261  */
262 extern
264  SCIP_VAR* var, /**< problem variable x */
265  SCIP_Bool varfixing, /**< FALSE if y should be searched in implications for x == 0, TRUE for x == 1 */
266  SCIP_VAR* implvar, /**< variable y to search for */
267  SCIP_BOUNDTYPE impltype /**< type of implication y <=/>= b to search for */
268  );
269 
270 /** returns whether there is an implication x == varfixing -> y == implvarfixing in the implication graph;
271  * implications that are represented as cliques in the clique table are not regarded (use SCIPvarsHaveCommonClique());
272  * both variables must be active binary variables
273  */
274 extern
276  SCIP_VAR* var, /**< problem variable x */
277  SCIP_Bool varfixing, /**< FALSE if y should be searched in implications for x == 0, TRUE for x == 1 */
278  SCIP_VAR* implvar, /**< variable y to search for */
279  SCIP_Bool implvarfixing /**< value of the implied variable to search for */
280  );
281 
282 /** returns whether there is a clique that contains both given variable/value pairs;
283  * the variables must be active binary variables;
284  * if regardimplics is FALSE, only the cliques in the clique table are looked at;
285  * if regardimplics is TRUE, both the cliques and the implications of the implication graph are regarded
286  */
287 extern
289  SCIP_VAR* var1, /**< first variable */
290  SCIP_Bool value1, /**< value of first variable */
291  SCIP_VAR* var2, /**< second variable */
292  SCIP_Bool value2, /**< value of second variable */
293  SCIP_Bool regardimplics /**< should the implication graph also be searched for a clique? */
294  );
295 
296 /** gets corresponding objective value of active, fixed, or multi-aggregated problem variable of given variable
297  * e.g. obj(x) = 1 this method returns for ~x the value -1
298  */
299 extern
301  SCIP_VAR* var, /**< problem variable */
302  SCIP_Real* aggrobj /**< pointer to store the aggregated objective value */
303  );
304 
305 /** sets the initial flag of a variable; only possible for original or loose variables */
306 extern
308  SCIP_VAR* var, /**< problem variable */
309  SCIP_Bool initial /**< initial flag */
310  );
311 
312 /** sets the removable flag of a variable; only possible for original or loose variables */
313 extern
315  SCIP_VAR* var, /**< problem variable */
316  SCIP_Bool removable /**< removable flag */
317  );
318 
319 /** returns the name of the variable
320  *
321  * @note to change the name of a variable, use SCIPchgVarName() from scip.h
322  */
323 extern
324 const char* SCIPvarGetName(
325  SCIP_VAR* var /**< problem variable */
326  );
327 
328 /** gets number of times, the variable is currently captured */
329 extern
330 int SCIPvarGetNUses(
331  SCIP_VAR* var /**< problem variable */
332  );
333 
334 /** returns the user data of the variable */
335 extern
337  SCIP_VAR* var /**< problem variable */
338  );
339 
340 /** sets the user data for the variable */
341 extern
342 void SCIPvarSetData(
343  SCIP_VAR* var, /**< problem variable */
344  SCIP_VARDATA* vardata /**< user variable data */
345  );
346 
347 /** sets method to free user data for the original variable */
348 extern
350  SCIP_VAR* var, /**< problem variable */
351  SCIP_DECL_VARDELORIG ((*vardelorig)) /**< frees user data of original variable */
352  );
353 
354 /** sets method to transform user data of the variable */
355 extern
357  SCIP_VAR* var, /**< problem variable */
358  SCIP_DECL_VARTRANS ((*vartrans)) /**< creates transformed user data by transforming original user data */
359  );
360 
361 /** sets method to free transformed user data for the variable */
362 extern
364  SCIP_VAR* var, /**< problem variable */
365  SCIP_DECL_VARDELTRANS ((*vardeltrans)) /**< frees user data of transformed variable */
366  );
367 
368 /** sets method to copy this variable into sub-SCIPs */
369 extern
370 void SCIPvarSetCopyData(
371  SCIP_VAR* var, /**< problem variable */
372  SCIP_DECL_VARCOPY ((*varcopy)) /**< copy method of the variable */
373  );
374 
375 /** gets status of variable */
376 extern
378  SCIP_VAR* var /**< problem variable */
379  );
380 
381 /** returns whether the variable belongs to the original problem */
382 extern
384  SCIP_VAR* var /**< problem variable */
385  );
386 
387 /** returns whether the variable belongs to the transformed problem */
388 extern
390  SCIP_VAR* var /**< problem variable */
391  );
392 
393 /** returns whether the variable was created by negation of a different variable */
394 extern
396  SCIP_VAR* var /**< problem variable */
397  );
398 
399 /** gets type of variable */
400 extern
402  SCIP_VAR* var /**< problem variable */
403  );
404 
405 /** returns TRUE if the variable is of binary type; this is the case if:
406  * (1) variable type is binary
407  * (2) variable type is integer or implicit integer and
408  * (i) the lazy lower bound or the global lower bound is greater than or equal to zero
409  * (ii) the lazy upper bound or the global upper bound is less than or equal to one
410  */
411 extern
413  SCIP_VAR* var /**< problem variable */
414  );
415 
416 /** returns whether variable is of integral type (binary, integer, or implicit integer) */
417 extern
419  SCIP_VAR* var /**< problem variable */
420  );
421 
422 /** returns whether variable's column should be present in the initial root LP */
423 extern
425  SCIP_VAR* var /**< problem variable */
426  );
427 
428 /** returns whether variable's column is removable from the LP (due to aging or cleanup) */
429 extern
431  SCIP_VAR* var /**< problem variable */
432  );
433 
434 /** returns whether the variable was deleted from the problem */
435 extern
437  SCIP_VAR* var /**< problem variable */
438  );
439 
440 /** marks the variable to be deletable, i.e., it may be deleted completely from the problem;
441  * method can only be called before the variable is added to the problem by SCIPaddVar() or SCIPaddPricedVar()
442  */
443 extern
445  SCIP_VAR* var /**< problem variable */
446  );
447 
448 /** marks the variable to be not deletable from the problem */
449 extern
451  SCIP_VAR* var
452  );
453 
454 /** returns whether variable is allowed to be deleted completely from the problem */
455 extern
457  SCIP_VAR* var
458  );
459 
460 /** returns whether variable is an active (neither fixed nor aggregated) variable */
461 extern
463  SCIP_VAR* var /**< problem variable */
464  );
465 
466 /** gets unique index of variable */
467 extern
468 int SCIPvarGetIndex(
469  SCIP_VAR* var /**< problem variable */
470  );
471 
472 /** gets position of variable in problem, or -1 if variable is not active */
473 extern
475  SCIP_VAR* var /**< problem variable */
476  );
477 
478 /** gets transformed variable of ORIGINAL variable */
479 extern
481  SCIP_VAR* var /**< problem variable */
482  );
483 
484 /** gets column of COLUMN variable */
485 extern
487  SCIP_VAR* var /**< problem variable */
488  );
489 
490 /** returns whether the variable is a COLUMN variable that is member of the current LP */
491 extern
493  SCIP_VAR* var /**< problem variable */
494  );
495 
496 /** gets aggregation variable y of an aggregated variable x = a*y + c */
497 extern
499  SCIP_VAR* var /**< problem variable */
500  );
501 
502 /** gets aggregation scalar a of an aggregated variable x = a*y + c */
503 extern
505  SCIP_VAR* var /**< problem variable */
506  );
507 
508 /** gets aggregation constant c of an aggregated variable x = a*y + c */
509 extern
511  SCIP_VAR* var /**< problem variable */
512  );
513 
514 /** gets number n of aggregation variables of a multi aggregated variable x = a0*y0 + ... + a(n-1)*y(n-1) + c */
515 extern
517  SCIP_VAR* var /**< problem variable */
518  );
519 
520 /** gets vector of aggregation variables y of a multi aggregated variable x = a0*y0 + ... + a(n-1)*y(n-1) + c */
521 extern
523  SCIP_VAR* var /**< problem variable */
524  );
525 
526 /** gets vector of aggregation scalars a of a multi aggregated variable x = a0*y0 + ... + a(n-1)*y(n-1) + c */
527 extern
529  SCIP_VAR* var /**< problem variable */
530  );
531 
532 /** gets aggregation constant c of a multi aggregated variable x = a0*y0 + ... + a(n-1)*y(n-1) + c */
533 extern
535  SCIP_VAR* var /**< problem variable */
536  );
537 
538 /** gets the negation of the given variable; may return NULL, if no negation is existing yet */
539 extern
541  SCIP_VAR* var /**< negated problem variable */
542  );
543 
544 /** gets the negation variable x of a negated variable x' = offset - x */
545 extern
547  SCIP_VAR* var /**< negated problem variable */
548  );
549 
550 /** gets the negation offset of a negated variable x' = offset - x */
551 extern
553  SCIP_VAR* var /**< negated problem variable */
554  );
555 
556 /** gets objective function value of variable */
557 extern
559  SCIP_VAR* var /**< problem variable */
560  );
561 
562 /** gets the unchanged objective function value of variable (ignoring temproray changes performed in probing mode) */
563 extern
565  SCIP_VAR* var /**< problem variable */
566  );
567 
568 /** gets original lower bound of original problem variable (i.e. the bound set in problem creation) */
569 extern
571  SCIP_VAR* var /**< original problem variable */
572  );
573 
574 /** gets original upper bound of original problem variable (i.e. the bound set in problem creation) */
575 extern
577  SCIP_VAR* var /**< original problem variable */
578  );
579 
580 /** gets the original hole list of an original variable */
581 extern
583  SCIP_VAR* var /**< problem variable */
584  );
585 
586 /** gets global lower bound of variable */
587 extern
589  SCIP_VAR* var /**< problem variable */
590  );
591 
592 /** gets global upper bound of variable */
593 extern
595  SCIP_VAR* var /**< problem variable */
596  );
597 
598 /** gets the global hole list of an active variable */
599 extern
601  SCIP_VAR* var /**< problem variable */
602  );
603 
604 /** gets best global bound of variable with respect to the objective function */
605 extern
607  SCIP_VAR* var /**< problem variable */
608  );
609 
610 /** gets worst global bound of variable with respect to the objective function */
611 extern
613  SCIP_VAR* var /**< problem variable */
614  );
615 
616 /** gets current lower bound of variable */
617 extern
619  SCIP_VAR* var /**< problem variable */
620  );
621 
622 /** gets current upper bound of variable */
623 extern
625  SCIP_VAR* var /**< problem variable */
626  );
627 
628 /** gets the current hole list of an active variable */
629 extern
631  SCIP_VAR* var /**< problem variable */
632  );
633 
634 /** gets best local bound of variable with respect to the objective function */
635 extern
637  SCIP_VAR* var /**< problem variable */
638  );
639 
640 /** gets worst local bound of variable with respect to the objective function */
641 extern
643  SCIP_VAR* var /**< problem variable */
644  );
645 
646 /** gets type (lower or upper) of best bound of variable with respect to the objective function */
647 extern
649  SCIP_VAR* var /**< problem variable */
650  );
651 
652 /** gets type (lower or upper) of worst bound of variable with respect to the objective function */
653 extern
655  SCIP_VAR* var /**< problem variable */
656  );
657 
658 /** gets lazy lower bound of variable */
659 extern
661  SCIP_VAR* var /**< problem variable */
662  );
663 
664 /** gets lazy upper bound of variable */
665 extern
667  SCIP_VAR* var /**< problem variable */
668  );
669 
670 /** gets the branch factor of the variable; this value can be used in the branching methods to scale the score
671  * values of the variables; higher factor leads to a higher probability that this variable is chosen for branching
672  */
673 extern
675  SCIP_VAR* var /**< problem variable */
676  );
677 
678 /** gets the branch priority of the variable; variables with higher priority should always be preferred to variables
679  * with lower priority
680  */
681 extern
683  SCIP_VAR* var /**< problem variable */
684  );
685 
686 /** gets the preferred branch direction of the variable (downwards, upwards, or auto) */
687 extern
689  SCIP_VAR* var /**< problem variable */
690  );
691 
692 /** gets number of variable lower bounds x >= b_i*z_i + d_i of given variable x */
693 extern
694 int SCIPvarGetNVlbs(
695  SCIP_VAR* var /**< problem variable */
696  );
697 
698 /** gets array with bounding variables z_i in variable lower bounds x >= b_i*z_i + d_i of given variable x;
699  * the variable bounds are sorted by increasing variable index of the bounding variable z_i (see SCIPvarGetIndex())
700  */
701 extern
703  SCIP_VAR* var /**< problem variable */
704  );
705 
706 /** gets array with bounding coefficients b_i in variable lower bounds x >= b_i*z_i + d_i of given variable x */
707 extern
709  SCIP_VAR* var /**< problem variable */
710  );
711 
712 /** gets array with bounding constants d_i in variable lower bounds x >= b_i*z_i + d_i of given variable x */
713 extern
715  SCIP_VAR* var /**< problem variable */
716  );
717 
718 /** gets number of variable upper bounds x <= b_i*z_i + d_i of given variable x */
719 extern
720 int SCIPvarGetNVubs(
721  SCIP_VAR* var /**< problem variable */
722  );
723 
724 /** gets array with bounding variables z_i in variable upper bounds x <= b_i*z_i + d_i of given variable x;
725  * the variable bounds are sorted by increasing variable index of the bounding variable z_i (see SCIPvarGetIndex())
726  */
727 extern
729  SCIP_VAR* var /**< problem variable */
730  );
731 
732 /** gets array with bounding coefficients b_i in variable upper bounds x <= b_i*z_i + d_i of given variable x */
733 extern
735  SCIP_VAR* var /**< problem variable */
736  );
737 
738 /** gets array with bounding constants d_i in variable upper bounds x <= b_i*z_i + d_i of given variable x */
739 extern
741  SCIP_VAR* var /**< problem variable */
742  );
743 
744 /** gets number of implications y <= b or y >= b for x == 0 or x == 1 of given active problem variable x,
745  * there are no implications for nonbinary variable x
746  */
747 extern
748 int SCIPvarGetNImpls(
749  SCIP_VAR* var, /**< active problem variable */
750  SCIP_Bool varfixing /**< FALSE for implications for x == 0, TRUE for x == 1 */
751  );
752 
753 /** gets array with implication variables y of implications y <= b or y >= b for x == 0 or x == 1 of given active
754  * problem variable x, there are no implications for nonbinary variable x;
755  * the implications are sorted such that implications with binary implied variables precede the ones with non-binary
756  * implied variables, and as a second criteria, the implied variables are sorted by increasing variable index
757  * (see SCIPvarGetIndex())
758  */
759 extern
761  SCIP_VAR* var, /**< active problem variable */
762  SCIP_Bool varfixing /**< FALSE for implications for x == 0, TRUE for x == 1 */
763  );
764 
765 /** gets array with implication types of implications y <= b or y >= b for x == 0 or x == 1 of given active problem
766  * variable x (SCIP_BOUNDTYPE_UPPER if y <= b, SCIP_BOUNDTYPE_LOWER if y >= b),
767  * there are no implications for nonbinary variable x
768  */
769 extern
771  SCIP_VAR* var, /**< active problem variable */
772  SCIP_Bool varfixing /**< FALSE for implications for x == 0, TRUE for x == 1 */
773  );
774 
775 /** gets array with implication bounds b of implications y <= b or y >= b for x == 0 or x == 1 of given active problem
776  * variable x, there are no implications for nonbinary variable x
777  */
778 extern
780  SCIP_VAR* var, /**< active problem variable */
781  SCIP_Bool varfixing /**< FALSE for implications for x == 0, TRUE for x == 1 */
782  );
783 
784 /** Gets array with unique ids of implications y <= b or y >= b for x == 0 or x == 1 of given active problem variable x,
785  * there are no implications for nonbinary variable x.
786  * If an implication is a shortcut, i.e., it was added as part of the transitive closure of another implication,
787  * its id is negative, otherwise it is nonnegative.
788  */
789 extern
790 int* SCIPvarGetImplIds(
791  SCIP_VAR* var, /**< active problem variable */
792  SCIP_Bool varfixing /**< FALSE for implications for x == 0, TRUE for x == 1 */
793  );
794 
795 /** gets number of cliques, the active variable is contained in */
796 extern
798  SCIP_VAR* var, /**< active problem variable */
799  SCIP_Bool varfixing /**< FALSE for cliques containing x == 0, TRUE for x == 1 */
800  );
801 
802 /** gets array of cliques, the active variable is contained in */
803 extern
805  SCIP_VAR* var, /**< active problem variable */
806  SCIP_Bool varfixing /**< FALSE for cliques containing x == 0, TRUE for x == 1 */
807  );
808 
809 /** gets primal LP solution value of variable */
810 extern
812  SCIP_VAR* var /**< problem variable */
813  );
814 
815 /** gets primal NLP solution value of variable */
816 extern
818  SCIP_VAR* var /**< problem variable */
819  );
820 
821 /** return lower bound change info at requested position */
822 extern
824  SCIP_VAR* var, /**< problem variable */
825  int pos /**< requested position */
826  );
827 
828 /** gets the number of lower bound change info array */
829 extern
831  SCIP_VAR* var /**< problem variable */
832  );
833 
834 /** return upper bound change info at requested position */
835 extern
837  SCIP_VAR* var, /**< problem variable */
838  int pos /**< requested position */
839  );
840 
841 /** gets the number upper bound change info array */
842 extern
844  SCIP_VAR* var /**< problem variable */
845  );
846 
847 /** returns the value based history for the variable */
848 extern
850  SCIP_VAR* var /**< problem variable */
851  );
852 
853 /** returns the index of the connected component of the clique graph that the variable belongs to, or -1 if not computed */
854 extern
856  SCIP_VAR* var /**< problem variable */
857  );
858 
859 #ifdef NDEBUG
860 
861 /* In optimized mode, the function calls are overwritten by defines to reduce the number of function calls and
862  * speed up the algorithms.
863  */
864 
865 #define SCIPvarGetName(var) (var)->name
866 #define SCIPvarGetNUses(var) (var)->nuses
867 #define SCIPvarGetData(var) (var)->vardata
868 #define SCIPvarSetData(var,vdata) (var)->vardata = (vdata)
869 #define SCIPvarSetDelorigData(var,func) (var)->vardelorig = (func)
870 #define SCIPvarSetTransData(var,func) (var)->vartrans = (func)
871 #define SCIPvarSetDeltransData(var,func) (var)->vardeltrans = (func)
872 #define SCIPvarGetStatus(var) (SCIP_VARSTATUS)((var)->varstatus)
873 #define SCIPvarIsOriginal(var) ((var)->varstatus == SCIP_VARSTATUS_ORIGINAL \
874  || ((var)->varstatus == SCIP_VARSTATUS_NEGATED && (var)->negatedvar->varstatus == SCIP_VARSTATUS_ORIGINAL))
875 #define SCIPvarIsTransformed(var) ((var)->varstatus != SCIP_VARSTATUS_ORIGINAL \
876  && ((var)->varstatus != SCIP_VARSTATUS_NEGATED || (var)->negatedvar->varstatus != SCIP_VARSTATUS_ORIGINAL))
877 #define SCIPvarIsNegated(var) ((var)->varstatus == SCIP_VARSTATUS_NEGATED)
878 #define SCIPvarGetType(var) ((SCIP_VARTYPE)((var)->vartype))
879 #define SCIPvarIsBinary(var) ((var)->vartype == SCIP_VARTYPE_BINARY || \
880  ((var)->vartype != SCIP_VARTYPE_CONTINUOUS && MAX((var)->glbdom.lb, (var)->lazylb) >= 0.0 && MIN((var)->glbdom.ub, (var)->lazyub) <= 1.0))
881 #define SCIPvarIsIntegral(var) ((var)->vartype != SCIP_VARTYPE_CONTINUOUS)
882 #define SCIPvarIsInitial(var) (var)->initial
883 #define SCIPvarIsRemovable(var) (var)->removable
884 #define SCIPvarIsDeleted(var) (var)->deleted
885 #define SCIPvarMarkDeletable(var) (var)->deletable = TRUE
886 #define SCIPvarMarkNotDeletable(var) (var)->deletable = FALSE
887 #define SCIPvarIsDeletable(var) (var)->deletable
888 #define SCIPvarIsActive(var) ((var)->probindex >= 0)
889 #define SCIPvarGetIndex(var) (var)->index
890 #define SCIPvarGetProbindex(var) (var)->probindex
891 #define SCIPvarGetTransVar(var) (var)->data.original.transvar
892 #define SCIPvarGetCol(var) (var)->data.col
893 #define SCIPvarIsInLP(var) ((var)->varstatus == SCIP_VARSTATUS_COLUMN && SCIPcolIsInLP((var)->data.col))
894 /* use different name for var - otherwise we have clash with the var at the end */
895 #define SCIPvarGetAggrVar(war) (war)->data.aggregate.var
896 #define SCIPvarGetAggrScalar(var) (var)->data.aggregate.scalar
897 #define SCIPvarGetAggrConstant(var) (var)->data.aggregate.constant
898 #define SCIPvarGetMultaggrNVars(var) (var)->data.multaggr.nvars
899 #define SCIPvarGetMultaggrVars(var) (var)->data.multaggr.vars
900 #define SCIPvarGetMultaggrScalars(var) (var)->data.multaggr.scalars
901 #define SCIPvarGetMultaggrConstant(var) (var)->data.multaggr.constant
902 #define SCIPvarGetNegatedVar(var) (var)->negatedvar
903 #define SCIPvarGetNegationVar(var) (var)->negatedvar
904 #define SCIPvarGetNegationConstant(var) (var)->data.negate.constant
905 #define SCIPvarGetObj(var) (var)->obj
906 #define SCIPvarGetLbOriginal(var) ((var)->varstatus == SCIP_VARSTATUS_ORIGINAL \
907  ? (var)->data.original.origdom.lb \
908  : (var)->data.negate.constant - (var)->negatedvar->data.original.origdom.ub)
909 #define SCIPvarGetUbOriginal(var) ((var)->varstatus == SCIP_VARSTATUS_ORIGINAL \
910  ? (var)->data.original.origdom.ub \
911  : (var)->data.negate.constant - (var)->negatedvar->data.original.origdom.lb)
912 #define SCIPvarGetHolelistOriginal(var) ((var)->varstatus == SCIP_VARSTATUS_ORIGINAL \
913  ? (var)->data.original.origdom.holelist \
914  : NULL)
915 #define SCIPvarGetLbGlobal(var) (var)->glbdom.lb
916 #define SCIPvarGetUbGlobal(var) (var)->glbdom.ub
917 #define SCIPvarGetHolelistGlobal(var) (var)->glbdom.holelist
918 #define SCIPvarGetBestBoundGlobal(var) ((var)->obj >= 0.0 ? (var)->glbdom.lb : (var)->glbdom.ub)
919 #define SCIPvarGetWorstBoundGlobal(var) ((var)->obj >= 0.0 ? (var)->glbdom.ub : (var)->glbdom.lb)
920 #define SCIPvarGetLbLocal(var) (var)->locdom.lb
921 #define SCIPvarGetUbLocal(var) (var)->locdom.ub
922 #define SCIPvarGetHolelistLocal(var) (var)->locdom.holelist
923 #define SCIPvarGetBestBoundLocal(var) ((var)->obj >= 0.0 ? (var)->locdom.lb : (var)->locdom.ub)
924 #define SCIPvarGetWorstBoundLocal(var) ((var)->obj >= 0.0 ? (var)->locdom.ub : (var)->locdom.lb)
925 #define SCIPvarGetBestBoundType(var) ((var)->obj >= 0.0 ? SCIP_BOUNDTYPE_LOWER : SCIP_BOUNDTYPE_UPPER)
926 #define SCIPvarGetWorstBoundType(var) ((var)->obj >= 0.0 ? SCIP_BOUNDTYPE_UPPER : SCIP_BOUNDTYPE_LOWER)
927 #define SCIPvarGetLbLazy(var) (var)->lazylb
928 #define SCIPvarGetUbLazy(var) (var)->lazyub
929 #define SCIPvarGetBranchFactor(var) (var)->branchfactor
930 #define SCIPvarGetBranchPriority(var) (var)->branchpriority
931 #define SCIPvarGetBranchDirection(var) (var)->branchdirection
932 #define SCIPvarGetNVlbs(var) (SCIPvboundsGetNVbds((var)->vlbs))
933 #define SCIPvarGetVlbVars(var) (SCIPvboundsGetVars((var)->vlbs))
934 #define SCIPvarGetVlbCoefs(var) (SCIPvboundsGetCoefs((var)->vlbs))
935 #define SCIPvarGetVlbConstants(var) (SCIPvboundsGetConstants((var)->vlbs))
936 #define SCIPvarGetNVubs(var) (SCIPvboundsGetNVbds((var)->vubs))
937 #define SCIPvarGetVubVars(var) (SCIPvboundsGetVars((var)->vubs))
938 #define SCIPvarGetVubCoefs(var) (SCIPvboundsGetCoefs((var)->vubs))
939 #define SCIPvarGetVubConstants(var) (SCIPvboundsGetConstants((var)->vubs))
940 #define SCIPvarGetNImpls(var, fix) (SCIPimplicsGetNImpls((var)->implics, fix))
941 #define SCIPvarGetImplVars(var, fix) (SCIPimplicsGetVars((var)->implics, fix))
942 #define SCIPvarGetImplTypes(var, fix) (SCIPimplicsGetTypes((var)->implics, fix))
943 #define SCIPvarGetImplBounds(var, fix) (SCIPimplicsGetBounds((var)->implics, fix))
944 #define SCIPvarGetImplIds(var, fix) (SCIPimplicsGetIds((var)->implics, fix))
945 #define SCIPvarGetNCliques(var, fix) (SCIPcliquelistGetNCliques((var)->cliquelist, fix))
946 #define SCIPvarGetCliques(var, fix) (SCIPcliquelistGetCliques((var)->cliquelist, fix))
947 #define SCIPvarGetLPSol(var) ((var)->varstatus == SCIP_VARSTATUS_COLUMN ? SCIPcolGetPrimsol((var)->data.col) : SCIPvarGetLPSol_rec(var))
948 #define SCIPvarGetNLPSol(var) (((var)->varstatus == SCIP_VARSTATUS_COLUMN || ((var)->varstatus == SCIP_VARSTATUS_LOOSE)) ? (var)->nlpsol : SCIPvarGetNLPSol_rec(var))
949 #define SCIPvarGetBdchgInfoLb(var, pos) (&((var)->lbchginfos[pos]))
950 #define SCIPvarGetNBdchgInfosLb(var) ((var)->nlbchginfos)
951 #define SCIPvarGetBdchgInfoUb(var, pos) (&((var)->ubchginfos[pos]))
952 #define SCIPvarGetNBdchgInfosUb(var) ((var)->nubchginfos)
953 #define SCIPvarGetValuehistory(var) (var)->valuehistory
954 #define SCIPvarGetCliqueComponentIdx(var) ((var)->clqcomponentidx)
955 
956 #endif
957 
958 /** gets primal LP solution value of variable */
959 extern
961  SCIP_VAR* var /**< problem variable */
962  );
963 
964 /** gets primal NLP solution value of variable */
965 extern
967  SCIP_VAR* var /**< problem variable */
968  );
969 
970 /** gets pseudo solution value of variable at current node */
971 extern
973  SCIP_VAR* var /**< problem variable */
974  );
975 
976 /** gets current LP or pseudo solution value of variable */
977 extern
979  SCIP_VAR* var, /**< problem variable */
980  SCIP_Bool getlpval /**< should the LP solution value be returned? */
981  );
982 
983 /** returns the solution of the variable in the last root node's relaxation, if the root relaxation is not yet
984  * completely solved, zero is returned
985  */
986 extern
988  SCIP_VAR* var /**< problem variable */
989  );
990 
991 /** returns the best solution (w.r.t. root reduced cost propagation) of the variable in the root node's relaxation, if
992  * the root relaxation is not yet completely solved, zero is returned
993  */
994 extern
996  SCIP_VAR* var /**< problem variable */
997  );
998 
999 /** returns the best reduced costs (w.r.t. root reduced cost propagation) of the variable in the root node's relaxation,
1000  * if the root relaxation is not yet completely solved, or the variable was no column of the root LP, SCIP_INVALID is
1001  * returned
1002  */
1003 extern
1005  SCIP_VAR* var /**< problem variable */
1006  );
1007 
1008 /** returns the best objective value (w.r.t. root reduced cost propagation) of the root LP which belongs the root
1009  * reduced cost which is accessible via SCIPvarGetRootRedcost() or the variable was no column of the root LP,
1010  * SCIP_INVALID is returned
1011  */
1012 extern
1014  SCIP_VAR* var /**< problem variable */
1015  );
1016 
1017 /** set the given solution as the best root solution w.r.t. root reduced cost propagation in the variables */
1018 extern
1020  SCIP_VAR* var, /**< problem variable */
1021  SCIP_Real rootsol, /**< root solution value */
1022  SCIP_Real rootredcost, /**< root reduced cost */
1023  SCIP_Real rootlpobjval /**< objective value of the root LP */
1024  );
1025 
1026 /** returns a weighted average solution value of the variable in all feasible primal solutions found so far */
1027 extern
1029  SCIP_VAR* var /**< problem variable */
1030  );
1031 
1032 /** returns the bound change information for the last lower bound change on given active problem variable before or
1033  * after the bound change with the given index was applied;
1034  * returns NULL, if no change to the lower bound was applied up to this point of time
1035  */
1036 extern
1038  SCIP_VAR* var, /**< active problem variable */
1039  SCIP_BDCHGIDX* bdchgidx, /**< bound change index representing time on path to current node */
1040  SCIP_Bool after /**< should the bound change with given index be included? */
1041  );
1042 
1043 /** returns the bound change information for the last upper bound change on given active problem variable before or
1044  * after the bound change with the given index was applied;
1045  * returns NULL, if no change to the upper bound was applied up to this point of time
1046  */
1047 extern
1049  SCIP_VAR* var, /**< active problem variable */
1050  SCIP_BDCHGIDX* bdchgidx, /**< bound change index representing time on path to current node */
1051  SCIP_Bool after /**< should the bound change with given index be included? */
1052  );
1053 
1054 /** returns the bound change information for the last lower or upper bound change on given active problem variable
1055  * before or after the bound change with the given index was applied;
1056  * returns NULL, if no change to the lower/upper bound was applied up to this point of time
1057  */
1058 extern
1060  SCIP_VAR* var, /**< active problem variable */
1061  SCIP_BOUNDTYPE boundtype, /**< type of bound: lower or upper bound */
1062  SCIP_BDCHGIDX* bdchgidx, /**< bound change index representing time on path to current node */
1063  SCIP_Bool after /**< should the bound change with given index be included? */
1064  );
1065 
1066 /** returns lower bound of variable directly before or after the bound change given by the bound change index
1067  * was applied
1068  *
1069  * @deprecated Please use SCIPgetVarLbAtIndex()
1070  */
1071 extern
1073  SCIP_VAR* var, /**< problem variable */
1074  SCIP_BDCHGIDX* bdchgidx, /**< bound change index representing time on path to current node */
1075  SCIP_Bool after /**< should the bound change with given index be included? */
1076  );
1077 
1078 /** returns upper bound of variable directly before or after the bound change given by the bound change index
1079  * was applied
1080  *
1081  * @deprecated Please use SCIPgetVarUbAtIndex()
1082  */
1083 extern
1085  SCIP_VAR* var, /**< problem variable */
1086  SCIP_BDCHGIDX* bdchgidx, /**< bound change index representing time on path to current node */
1087  SCIP_Bool after /**< should the bound change with given index be included? */
1088  );
1089 
1090 /** returns lower or upper bound of variable directly before or after the bound change given by the bound change index
1091  * was applied
1092  *
1093  * @deprecated Please use SCIPgetVarBdAtIndex()
1094  */
1095 extern
1097  SCIP_VAR* var, /**< problem variable */
1098  SCIP_BOUNDTYPE boundtype, /**< type of bound: lower or upper bound */
1099  SCIP_BDCHGIDX* bdchgidx, /**< bound change index representing time on path to current node */
1100  SCIP_Bool after /**< should the bound change with given index be included? */
1101  );
1102 
1103 /** returns whether the binary variable was fixed at the time given by the bound change index
1104  *
1105  * @deprecated Please use SCIPgetVarWasFixedAtIndex()
1106  */
1107 extern
1109  SCIP_VAR* var, /**< problem variable */
1110  SCIP_BDCHGIDX* bdchgidx, /**< bound change index representing time on path to current node */
1111  SCIP_Bool after /**< should the bound change with given index be included? */
1112  );
1113 
1114 /** returns the last bound change index, at which the bounds of the given variable were tightened */
1115 extern
1117  SCIP_VAR* var /**< problem variable */
1118  );
1119 
1120 /** returns the last depth level, at which the bounds of the given variable were tightened;
1121  * returns -2, if the variable's bounds are still the global bounds
1122  * returns -1, if the variable was fixed in presolving
1123  */
1124 extern
1126  SCIP_VAR* var /**< problem variable */
1127  );
1128 
1129 /** returns whether the first binary variable was fixed earlier than the second one;
1130  * returns FALSE, if the first variable is not fixed, and returns TRUE, if the first variable is fixed, but the
1131  * second one is not fixed
1132  */
1133 extern
1135  SCIP_VAR* var1, /**< first binary variable */
1136  SCIP_VAR* var2 /**< second binary variable */
1137  );
1138 
1139 /**
1140  * @name Public SCIP_BDCHGIDX Methods
1141  *
1142  * @{
1143  */
1144 
1145 /** returns whether first bound change index belongs to an earlier applied bound change than second one;
1146  * if a bound change index is NULL, the bound change index represents the current time, i.e. the time after the
1147  * last bound change was applied to the current node
1148  */
1149 extern
1151  SCIP_BDCHGIDX* bdchgidx1, /**< first bound change index, or NULL */
1152  SCIP_BDCHGIDX* bdchgidx2 /**< second bound change index, or NULL */
1153  );
1154 
1155 /** returns whether first bound change index belongs to an earlier applied bound change than second one */
1156 extern
1158  SCIP_BDCHGIDX* bdchgidx1, /**< first bound change index */
1159  SCIP_BDCHGIDX* bdchgidx2 /**< second bound change index */
1160  );
1161 
1162 /**@} */
1163 
1164 /**
1165  * @name Public SCIP_BDCHGINFO Methods
1166  *
1167  * @{
1168  */
1169 
1170 /** returns old bound that was overwritten for given bound change information */
1171 extern
1173  SCIP_BDCHGINFO* bdchginfo /**< bound change information */
1174  );
1175 
1176 /** returns new bound installed for given bound change information */
1177 extern
1179  SCIP_BDCHGINFO* bdchginfo /**< bound change information */
1180  );
1181 
1182 /** returns variable that belongs to the given bound change information */
1183 extern
1185  SCIP_BDCHGINFO* bdchginfo /**< bound change information */
1186  );
1187 
1188 /** returns whether the bound change information belongs to a branching decision or a deduction */
1189 extern
1191  SCIP_BDCHGINFO* bdchginfo /**< bound change information */
1192  );
1193 
1194 /** returns whether the bound change information belongs to a lower or upper bound change */
1195 extern
1197  SCIP_BDCHGINFO* bdchginfo /**< bound change information */
1198  );
1199 
1200 /** returns depth level of given bound change information */
1201 extern
1203  SCIP_BDCHGINFO* bdchginfo /**< bound change information */
1204  );
1205 
1206 /** returns bound change position in its depth level of given bound change information */
1207 extern
1209  SCIP_BDCHGINFO* bdchginfo /**< bound change information */
1210  );
1211 
1212 /** returns bound change index of given bound change information */
1213 extern
1215  SCIP_BDCHGINFO* bdchginfo /**< bound change information */
1216  );
1217 
1218 /** returns inference variable of given bound change information */
1219 extern
1221  SCIP_BDCHGINFO* bdchginfo /**< bound change information */
1222  );
1223 
1224 /** returns inference constraint of given bound change information */
1225 extern
1227  SCIP_BDCHGINFO* bdchginfo /**< bound change information */
1228  );
1229 
1230 /** returns inference propagator of given bound change information, or NULL if no propagator was responsible */
1231 extern
1233  SCIP_BDCHGINFO* bdchginfo /**< bound change information */
1234  );
1235 
1236 /** returns inference user information of given bound change information */
1237 extern
1239  SCIP_BDCHGINFO* bdchginfo /**< bound change information */
1240  );
1241 
1242 /** returns inference bound of inference variable of given bound change information */
1243 extern
1245  SCIP_BDCHGINFO* bdchginfo /**< bound change information */
1246  );
1247 
1248 /** returns whether the bound change information belongs to a redundant bound change */
1249 extern
1251  SCIP_BDCHGINFO* bdchginfo /**< bound change information */
1252  );
1253 
1254 /** returns whether the bound change has an inference reason (constraint or propagator), that can be resolved */
1255 extern
1257  SCIP_BDCHGINFO* bdchginfo /**< bound change information */
1258  );
1259 
1260 /** for two bound change informations belonging to the same variable and bound, returns whether the first bound change
1261  * has a tighter new bound as the second bound change
1262  */
1263 extern
1265  SCIP_BDCHGINFO* bdchginfo1, /**< first bound change information */
1266  SCIP_BDCHGINFO* bdchginfo2 /**< second bound change information */
1267  );
1268 
1269 /**@} */
1270 
1271 /**
1272  * @name Public SCIP_BOUNDCHG Methods
1273  *
1274  * @{
1275  */
1276 
1277 /** returns the new value of the bound in the bound change data */
1278 extern
1280  SCIP_BOUNDCHG* boundchg /**< bound change data */
1281  );
1282 
1283 /** returns the variable of the bound change in the bound change data */
1284 extern
1286  SCIP_BOUNDCHG* boundchg /**< bound change data */
1287  );
1288 
1289 /** returns the bound change type of the bound change in the bound change data */
1290 extern
1292  SCIP_BOUNDCHG* boundchg /**< bound change data */
1293  );
1294 
1295 /** returns the bound type of the bound change in the bound change data */
1296 extern
1298  SCIP_BOUNDCHG* boundchg /**< bound change data */
1299  );
1300 
1301 /** returns whether the bound change is redundant due to a more global bound that is at least as strong */
1302 extern
1304  SCIP_BOUNDCHG* boundchg /**< bound change data */
1305  );
1306 
1307 /** @} */
1308 
1309 /**
1310  * @name Public SCIP_DOMCHG Methods
1311  *
1312  * @{
1313  */
1314 
1315 /** returns the number of bound changes in the domain change data */
1316 extern
1318  SCIP_DOMCHG* domchg /**< domain change data */
1319  );
1320 
1321 /** returns a particular bound change in the domain change data */
1322 extern
1324  SCIP_DOMCHG* domchg, /**< domain change data */
1325  int pos /**< position of the bound change in the domain change data */
1326  );
1327 
1328 /**@} */
1329 
1330 /**
1331  * @name Public SCIP_HOLELIST Methods
1332  *
1333  * @{
1334  */
1335 
1336 /** returns left bound of open interval in hole */
1337 extern
1339  SCIP_HOLELIST* holelist /**< hole list pointer to hole of interest */
1340  );
1341 
1342 /** returns right bound of open interval in hole */
1343 extern
1345  SCIP_HOLELIST* holelist /**< hole list pointer to hole of interest */
1346  );
1347 
1348 /** returns next hole in list or NULL */
1349 extern
1351  SCIP_HOLELIST* holelist /**< hole list pointer to hole of interest */
1352  );
1353 
1354 /**@} */
1355 
1356 #ifdef NDEBUG
1357 
1358 /* In optimized mode, the function calls are overwritten by defines to reduce the number of function calls and
1359  * speed up the algorithms.
1360  */
1361 
1362 #define SCIPbdchgidxIsEarlierNonNull(idx1,idx2) \
1363  ((idx1)->depth < (idx2)->depth || ((idx1)->depth == (idx2)->depth && (idx1)->pos < (idx2)->pos))
1364 #define SCIPbdchgidxIsEarlier(idx1,idx2) \
1365  ((idx1) != NULL && ((idx2) == NULL || SCIPbdchgidxIsEarlierNonNull(idx1, idx2)))
1366 #define SCIPbdchginfoGetOldbound(bdchginfo) (bdchginfo)->oldbound
1367 #define SCIPbdchginfoGetNewbound(bdchginfo) (bdchginfo)->newbound
1368 #define SCIPbdchginfoGetVar(bdchginfo) (bdchginfo)->var
1369 #define SCIPbdchginfoGetChgtype(bdchginfo) (SCIP_BOUNDCHGTYPE)((bdchginfo)->boundchgtype)
1370 #define SCIPbdchginfoGetBoundtype(bdchginfo) (SCIP_BOUNDTYPE)((bdchginfo)->boundtype)
1371 #define SCIPbdchginfoGetDepth(bdchginfo) (bdchginfo)->bdchgidx.depth
1372 #define SCIPbdchginfoGetPos(bdchginfo) (bdchginfo)->bdchgidx.pos
1373 #define SCIPbdchginfoGetIdx(bdchginfo) (&(bdchginfo)->bdchgidx)
1374 #define SCIPbdchginfoGetInferVar(bdchginfo) (bdchginfo)->inferencedata.var
1375 #define SCIPbdchginfoGetInferCons(bdchginfo) (bdchginfo)->inferencedata.reason.cons
1376 #define SCIPbdchginfoGetInferProp(bdchginfo) (bdchginfo)->inferencedata.reason.prop
1377 #define SCIPbdchginfoGetInferInfo(bdchginfo) (bdchginfo)->inferencedata.info
1378 #define SCIPbdchginfoGetInferBoundtype(bdchginfo) (SCIP_BOUNDTYPE)((bdchginfo)->inferboundtype)
1379 #define SCIPbdchginfoIsRedundant(bdchginfo) (bdchginfo)->redundant
1380 #define SCIPbdchginfoHasInferenceReason(bdchginfo) \
1381  (((bdchginfo)->boundchgtype == SCIP_BOUNDCHGTYPE_CONSINFER) \
1382  || ((bdchginfo)->boundchgtype == SCIP_BOUNDCHGTYPE_PROPINFER && (bdchginfo)->inferencedata.reason.prop != NULL))
1383 #define SCIPbdchginfoIsTighter(bdchginfo1,bdchginfo2) ((bdchginfo1)->boundtype == SCIP_BOUNDTYPE_LOWER \
1384  ? (bdchginfo1)->newbound > bdchginfo2->newbound : (bdchginfo1)->newbound < bdchginfo2->newbound)
1385 #define SCIPboundchgGetNewbound(boundchg) ((boundchg)->newbound)
1386 #define SCIPboundchgGetVar(boundchg) ((boundchg)->var)
1387 #define SCIPboundchgGetBoundchgtype(boundchg) ((SCIP_BOUNDCHGTYPE)((boundchg)->boundchgtype))
1388 #define SCIPboundchgGetBoundtype(boundchg) ((SCIP_BOUNDTYPE)((boundchg)->boundtype))
1389 #define SCIPboundchgIsRedundant(boundchg) ((boundchg)->redundant)
1390 #define SCIPdomchgGetNBoundchgs(domchg) ((domchg) != NULL ? (domchg)->domchgbound.nboundchgs : 0)
1391 #define SCIPdomchgGetBoundchg(domchg, pos) (&(domchg)->domchgbound.boundchgs[pos])
1392 #define SCIPholelistGetLeft(holelist) ((holelist)->hole.left)
1393 #define SCIPholelistGetRight(holelist) ((holelist)->hole.right)
1394 #define SCIPholelistGetNext(holelist) ((holelist)->next)
1395 
1396 #endif
1397 
1398 /**@} */
1399 
1400 #ifdef __cplusplus
1401 }
1402 #endif
1403 
1404 #endif
enum SCIP_BoundType SCIP_BOUNDTYPE
Definition: type_lp.h:50
SCIP_Real SCIPvarGetWorstBoundLocal(SCIP_VAR *var)
Definition: var.c:17265
SCIP_Real * SCIPvarGetVlbCoefs(SCIP_VAR *var)
Definition: var.c:17380
SCIP_BOUNDTYPE SCIPvarGetWorstBoundType(SCIP_VAR *var)
Definition: var.c:17291
SCIP_Bool SCIPvarsHaveCommonClique(SCIP_VAR *var1, SCIP_Bool value1, SCIP_VAR *var2, SCIP_Bool value2, SCIP_Bool regardimplics)
Definition: var.c:10785
SCIP_Real SCIPvarGetBdAtIndex(SCIP_VAR *var, SCIP_BOUNDTYPE boundtype, SCIP_BDCHGIDX *bdchgidx, SCIP_Bool after)
Definition: var.c:16085
SCIP_PROP * SCIPbdchginfoGetInferProp(SCIP_BDCHGINFO *bdchginfo)
Definition: var.c:17872
void SCIPvarMarkNotDeletable(SCIP_VAR *var)
Definition: var.c:16796
SCIP_BDCHGINFO * SCIPvarGetBdchgInfoLb(SCIP_VAR *var, int pos)
Definition: var.c:17566
SCIP_Real * SCIPvarGetMultaggrScalars(SCIP_VAR *var)
Definition: var.c:16958
type definitions for miscellaneous datastructures
type definitions for implications, variable bounds, and cliques
SCIP_Real SCIPvarGetBranchFactor(SCIP_VAR *var)
Definition: var.c:17326
SCIP_Real SCIPbdchginfoGetOldbound(SCIP_BDCHGINFO *bdchginfo)
Definition: var.c:17768
SCIP_BRANCHDIR SCIPvarGetBranchDirection(SCIP_VAR *var)
Definition: var.c:17348
SCIP_Real SCIPvarGetUbLazy(SCIP_VAR *var)
Definition: var.c:17314
int SCIPvarGetNVlbs(SCIP_VAR *var)
Definition: var.c:17358
SCIP_VAR * SCIPbdchginfoGetVar(SCIP_BDCHGINFO *bdchginfo)
Definition: var.c:17788
SCIP_Real SCIPvarGetWorstBoundGlobal(SCIP_VAR *var)
Definition: var.c:17209
#define SCIP_DECL_VARTRANS(x)
Definition: type_var.h:129
methods for implications, variable bounds, and cliques
int SCIPvarGetLastBdchgDepth(SCIP_VAR *var)
Definition: var.c:16165
SCIP_Real SCIPvarGetLbGlobal(SCIP_VAR *var)
Definition: var.c:17166
SCIP_Real SCIPvarGetAvgBranchdepth(SCIP_VAR *var, SCIP_BRANCHDIR dir)
Definition: var.c:15089
SCIP_RETCODE SCIPvarGetProbvarBinary(SCIP_VAR **var, SCIP_Bool *negated)
Definition: var.c:11616
SCIP_Bool SCIPvarIsInitial(SCIP_VAR *var)
Definition: var.c:16753
SCIP_VAR ** SCIPvarGetMultaggrVars(SCIP_VAR *var)
Definition: var.c:16946
static long bound
SCIP_Real SCIPvarGetLbLocal(SCIP_VAR *var)
Definition: var.c:17222
SCIP_CLIQUE ** SCIPvarGetCliques(SCIP_VAR *var, SCIP_Bool varfixing)
Definition: var.c:17529
SCIP_VALUEHISTORY * SCIPvarGetValuehistory(SCIP_VAR *var)
Definition: var.c:17608
void SCIPvarSetTransData(SCIP_VAR *var, SCIP_DECL_VARTRANS((*vartrans)))
Definition: var.c:16605
SCIP_Bool SCIPvarIsBinary(SCIP_VAR *var)
Definition: var.c:16732
SCIP_Real SCIPvarGetSol(SCIP_VAR *var, SCIP_Bool getlpval)
Definition: var.c:12561
SCIP_Bool SCIPbdchgidxIsEarlier(SCIP_BDCHGIDX *bdchgidx1, SCIP_BDCHGIDX *bdchgidx2)
Definition: var.c:17748
SCIP_Bool SCIPvarWasFixedAtIndex(SCIP_VAR *var, SCIP_BDCHGIDX *bdchgidx, SCIP_Bool after)
Definition: var.c:16105
SCIP_Real SCIPvarGetBestBoundLocal(SCIP_VAR *var)
Definition: var.c:17252
SCIP_Real SCIPvarGetRootSol(SCIP_VAR *var)
Definition: var.c:12654
SCIP_BOUNDTYPE SCIPboundchgGetBoundtype(SCIP_BOUNDCHG *boundchg)
Definition: var.c:16479
SCIP_HOLELIST * SCIPholelistGetNext(SCIP_HOLELIST *holelist)
Definition: var.c:16539
int SCIPvarGetNBdchgInfosLb(SCIP_VAR *var)
Definition: var.c:17578
struct SCIP_VarData SCIP_VARDATA
Definition: type_var.h:98
SCIP_Bool SCIPvarHasImplic(SCIP_VAR *var, SCIP_Bool varfixing, SCIP_VAR *implvar, SCIP_BOUNDTYPE impltype)
Definition: var.c:10456
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:53
SCIP_Real SCIPvarGetNegationConstant(SCIP_VAR *var)
Definition: var.c:17003
int SCIPvarGetNVubs(SCIP_VAR *var)
Definition: var.c:17400
int SCIPbdchginfoGetInferInfo(SCIP_BDCHGINFO *bdchginfo)
Definition: var.c:17883
enum SCIP_Varstatus SCIP_VARSTATUS
Definition: type_var.h:48
int SCIPvarGetProbindex(SCIP_VAR *var)
Definition: var.c:16859
#define SCIP_DECL_VARCOPY(x)
Definition: type_var.h:172
SCIP_Real SCIPvarGetAggrScalar(SCIP_VAR *var)
Definition: var.c:16912
SCIP_Real SCIPvarGetInferenceSum(SCIP_VAR *var, SCIP_BRANCHDIR dir)
Definition: var.c:15273
void SCIPvarMarkDeletable(SCIP_VAR *var)
Definition: var.c:16785
type definitions for return codes for SCIP methods
SCIP_VAR ** SCIPvarGetVlbVars(SCIP_VAR *var)
Definition: var.c:17370
SCIP_Bool SCIPvarIsDeletable(SCIP_VAR *var)
Definition: var.c:16829
SCIP_Bool SCIPvarIsRemovable(SCIP_VAR *var)
Definition: var.c:16763
SCIP_Longint SCIPvarGetNBranchingsCurrentRun(SCIP_VAR *var, SCIP_BRANCHDIR dir)
Definition: var.c:15046
SCIP_VAR * SCIPvarGetNegationVar(SCIP_VAR *var)
Definition: var.c:16992
SCIP_BDCHGIDX * SCIPvarGetLastBdchgIndex(SCIP_VAR *var)
Definition: var.c:16128
int SCIPvarGetNCliques(SCIP_VAR *var, SCIP_Bool varfixing)
Definition: var.c:17518
SCIP_Real SCIPvarGetLPSol_rec(SCIP_VAR *var)
Definition: var.c:12375
internal methods for branching and inference history
SCIP_Real SCIPvarGetCutoffSumCurrentRun(SCIP_VAR *var, SCIP_BRANCHDIR dir)
Definition: var.c:15516
int * SCIPvarGetImplIds(SCIP_VAR *var, SCIP_Bool varfixing)
Definition: var.c:17506
SCIP_HOLELIST * SCIPvarGetHolelistOriginal(SCIP_VAR *var)
Definition: var.c:17152
SCIP_DECL_HASHKEYVAL(SCIPvarGetHashkeyVal)
Definition: var.c:11306
#define SCIP_DECL_VARDELTRANS(x)
Definition: type_var.h:142
SCIP_VAR * SCIPvarGetNegatedVar(SCIP_VAR *var)
Definition: var.c:16982
enum SCIP_BranchDir SCIP_BRANCHDIR
Definition: type_history.h:39
SCIP_Real SCIPvarGetNLPSol_rec(SCIP_VAR *var)
Definition: var.c:12447
int SCIPvarGetNBdchgInfosUb(SCIP_VAR *var)
Definition: var.c:17598
SCIP_Bool SCIPbdchginfoIsTighter(SCIP_BDCHGINFO *bdchginfo1, SCIP_BDCHGINFO *bdchginfo2)
Definition: var.c:17941
SCIP_Real SCIPvarGetUbGlobal(SCIP_VAR *var)
Definition: var.c:17176
SCIP_VAR * SCIPvarGetProbvar(SCIP_VAR *var)
Definition: var.c:11524
SCIP_Real SCIPvarGetBestRootLPObjval(SCIP_VAR *var)
Definition: var.c:13118
void SCIPvarSetDelorigData(SCIP_VAR *var, SCIP_DECL_VARDELORIG((*vardelorig)))
Definition: var.c:16593
void SCIPvarSetDeltransData(SCIP_VAR *var, SCIP_DECL_VARDELTRANS((*vardeltrans)))
Definition: var.c:16617
SCIP_Real SCIPvarGetBestBoundGlobal(SCIP_VAR *var)
Definition: var.c:17196
SCIP_Bool SCIPboundchgIsRedundant(SCIP_BOUNDCHG *boundchg)
Definition: var.c:16489
SCIP_Real SCIPvarGetLbOriginal(SCIP_VAR *var)
Definition: var.c:17112
SCIP_Bool SCIPbdchgidxIsEarlierNonNull(SCIP_BDCHGIDX *bdchgidx1, SCIP_BDCHGIDX *bdchgidx2)
Definition: var.c:17728
int SCIPvarCompareActiveAndNegated(SCIP_VAR *var1, SCIP_VAR *var2)
Definition: var.c:11211
SCIP_Real SCIPvarGetAvgBranchdepthCurrentRun(SCIP_VAR *var, SCIP_BRANCHDIR dir)
Definition: var.c:15134
SCIP_Real SCIPvarGetUbOriginal(SCIP_VAR *var)
Definition: var.c:17132
SCIP_Bool SCIPvarIsTransformedOrigvar(SCIP_VAR *var)
Definition: var.c:12167
SCIP_DECL_SORTPTRCOMP(SCIPvarCompActiveAndNegated)
Definition: var.c:11241
SCIP_Real SCIPvarGetUbAtIndex(SCIP_VAR *var, SCIP_BDCHGIDX *bdchgidx, SCIP_Bool after)
Definition: var.c:15961
SCIP_Bool SCIPvarHasBinaryImplic(SCIP_VAR *var, SCIP_Bool varfixing, SCIP_VAR *implvar, SCIP_Bool implvarfixing)
Definition: var.c:10476
SCIP_Real * SCIPvarGetVubConstants(SCIP_VAR *var)
Definition: var.c:17432
SCIP_Real SCIPvarGetAggrConstant(SCIP_VAR *var)
Definition: var.c:16923
const char * SCIPvarGetName(SCIP_VAR *var)
Definition: var.c:16552
SCIP_DECL_HASHGETKEY(SCIPvarGetHashkey)
Definition: var.c:11292
SCIP_Real SCIPboundchgGetNewbound(SCIP_BOUNDCHG *boundchg)
Definition: var.c:16449
SCIP_Real SCIPvarGetLPSol(SCIP_VAR *var)
Definition: var.c:17540
SCIP_HOLELIST * SCIPvarGetHolelistGlobal(SCIP_VAR *var)
Definition: var.c:17186
SCIP_RETCODE SCIPvarGetAggregatedObj(SCIP_VAR *var, SCIP_Real *aggrobj)
Definition: var.c:17036
SCIP_Bool SCIPbdchginfoHasInferenceReason(SCIP_BDCHGINFO *bdchginfo)
Definition: var.c:17927
SCIP_Real SCIPvarGetLbLazy(SCIP_VAR *var)
Definition: var.c:17304
SCIP_Real * SCIPvarGetVlbConstants(SCIP_VAR *var)
Definition: var.c:17390
SCIP_Real SCIPvarGetMultaggrConstant(SCIP_VAR *var)
Definition: var.c:16970
type definitions for problem variables
SCIP_Real SCIPvarGetCutoffSum(SCIP_VAR *var, SCIP_BRANCHDIR dir)
Definition: var.c:15473
SCIP_Real * SCIPvarGetVubCoefs(SCIP_VAR *var)
Definition: var.c:17422
SCIP_Bool SCIPbdchginfoIsRedundant(SCIP_BDCHGINFO *bdchginfo)
Definition: var.c:17916
SCIP_BDCHGIDX * SCIPbdchginfoGetIdx(SCIP_BDCHGINFO *bdchginfo)
Definition: var.c:17838
void SCIPvarSetBestRootSol(SCIP_VAR *var, SCIP_Real rootsol, SCIP_Real rootredcost, SCIP_Real rootlpobjval)
Definition: var.c:13149
SCIP_Bool SCIPvarIsOriginal(SCIP_VAR *var)
Definition: var.c:16681
SCIP_BOUNDTYPE * SCIPvarGetImplTypes(SCIP_VAR *var, SCIP_Bool varfixing)
Definition: var.c:17476
SCIP_Real SCIPholelistGetRight(SCIP_HOLELIST *holelist)
Definition: var.c:16529
#define SCIP_Bool
Definition: def.h:61
int SCIPvarGetCliqueComponentIdx(SCIP_VAR *var)
Definition: var.c:17646
SCIP_BOUNDCHGTYPE SCIPboundchgGetBoundchgtype(SCIP_BOUNDCHG *boundchg)
Definition: var.c:16469
int SCIPbdchginfoGetPos(SCIP_BDCHGINFO *bdchginfo)
Definition: var.c:17828
SCIP_Bool SCIPvarWasFixedEarlier(SCIP_VAR *var1, SCIP_VAR *var2)
Definition: var.c:16253
SCIP_Real SCIPvarGetInferenceSumCurrentRun(SCIP_VAR *var, SCIP_BRANCHDIR dir)
Definition: var.c:15318
SCIP_Bool SCIPvarIsInLP(SCIP_VAR *var)
Definition: var.c:16891
SCIP_Real SCIPvarGetNLPSol(SCIP_VAR *var)
Definition: var.c:17553
int SCIPvarGetBranchPriority(SCIP_VAR *var)
Definition: var.c:17338
SCIP_Real SCIPvarGetLbAtIndex(SCIP_VAR *var, SCIP_BDCHGIDX *bdchgidx, SCIP_Bool after)
Definition: var.c:15837
int SCIPvarGetNImpls(SCIP_VAR *var, SCIP_Bool varfixing)
Definition: var.c:17444
SCIP_VARDATA * SCIPvarGetData(SCIP_VAR *var)
Definition: var.c:16572
int SCIPvarGetNLocksUp(SCIP_VAR *var)
Definition: var.c:3217
SCIP_VAR * SCIPboundchgGetVar(SCIP_BOUNDCHG *boundchg)
Definition: var.c:16459
int SCIPvarCompare(SCIP_VAR *var1, SCIP_VAR *var2)
Definition: var.c:11249
SCIP_BOUNDCHG * SCIPdomchgGetBoundchg(SCIP_DOMCHG *domchg, int pos)
Definition: var.c:16507
SCIP_Real SCIPvarGetUnchangedObj(SCIP_VAR *var)
Definition: var.c:17024
SCIP_Real SCIPvarGetObj(SCIP_VAR *var)
Definition: var.c:17014
SCIP_Real SCIPbdchginfoGetNewbound(SCIP_BDCHGINFO *bdchginfo)
Definition: var.c:17778
SCIP_Real SCIPvarGetBestRootRedcost(SCIP_VAR *var)
Definition: var.c:13084
SCIP_VAR * SCIPvarGetAggrVar(SCIP_VAR *var)
Definition: var.c:16901
SCIP_COL * SCIPvarGetCol(SCIP_VAR *var)
Definition: var.c:16880
int SCIPvarGetMultaggrNVars(SCIP_VAR *var)
Definition: var.c:16934
SCIP_Real * SCIPvarGetImplBounds(SCIP_VAR *var, SCIP_Bool varfixing)
Definition: var.c:17490
SCIP_RETCODE SCIPvarGetOrigvarSum(SCIP_VAR **var, SCIP_Real *scalar, SCIP_Real *constant)
Definition: var.c:12080
SCIP_BDCHGINFO * SCIPvarGetLbchgInfo(SCIP_VAR *var, SCIP_BDCHGIDX *bdchgidx, SCIP_Bool after)
Definition: var.c:15704
SCIP_BOUNDTYPE SCIPbdchginfoGetInferBoundtype(SCIP_BDCHGINFO *bdchginfo)
Definition: var.c:17895
SCIP_BDCHGINFO * SCIPvarGetUbchgInfo(SCIP_VAR *var, SCIP_BDCHGIDX *bdchgidx, SCIP_Bool after)
Definition: var.c:15760
SCIP_RETCODE SCIPvarGetProbvarBound(SCIP_VAR **var, SCIP_Real *bound, SCIP_BOUNDTYPE *boundtype)
Definition: var.c:11775
SCIP_BDCHGINFO * SCIPvarGetBdchgInfoUb(SCIP_VAR *var, int pos)
Definition: var.c:17586
SCIP_BDCHGINFO * SCIPvarGetBdchgInfo(SCIP_VAR *var, SCIP_BOUNDTYPE boundtype, SCIP_BDCHGIDX *bdchgidx, SCIP_Bool after)
Definition: var.c:15816
#define SCIP_DECL_VARDELORIG(x)
Definition: type_var.h:109
SCIP_VAR ** SCIPvarGetImplVars(SCIP_VAR *var, SCIP_Bool varfixing)
Definition: var.c:17461
int SCIPvarGetNLocksDown(SCIP_VAR *var)
Definition: var.c:3162
int SCIPdomchgGetNBoundchgs(SCIP_DOMCHG *domchg)
Definition: var.c:16499
int SCIPbdchginfoGetDepth(SCIP_BDCHGINFO *bdchginfo)
Definition: var.c:17818
SCIP_DECL_HASHKEYEQ(SCIPvarIsHashkeyEq)
Definition: var.c:11298
SCIP_Real SCIPvarGetBestRootSol(SCIP_VAR *var)
Definition: var.c:13018
void SCIPvarSetCopyData(SCIP_VAR *var, SCIP_DECL_VARCOPY((*varcopy)))
Definition: var.c:16628
SCIP_Real SCIPholelistGetLeft(SCIP_HOLELIST *holelist)
Definition: var.c:16519
datastructures for problem variables
SCIP_VARSTATUS SCIPvarGetStatus(SCIP_VAR *var)
Definition: var.c:16671
#define SCIP_Real
Definition: def.h:135
type definitions for branching and inference history
SCIP_Longint SCIPvarGetNBranchings(SCIP_VAR *var, SCIP_BRANCHDIR dir)
Definition: var.c:15001
SCIP_RETCODE SCIPvarsGetProbvarBinary(SCIP_VAR ***vars, SCIP_Bool **negatedarr, int nvars)
Definition: var.c:11584
SCIP_VAR * SCIPbdchginfoGetInferVar(SCIP_BDCHGINFO *bdchginfo)
Definition: var.c:17848
SCIP_RETCODE SCIPvarSetInitial(SCIP_VAR *var, SCIP_Bool initial)
Definition: var.c:16639
SCIP_RETCODE SCIPvarGetProbvarHole(SCIP_VAR **var, SCIP_Real *left, SCIP_Real *right)
Definition: var.c:11868
int SCIPvarGetNUses(SCIP_VAR *var)
Definition: var.c:16562
void SCIPvarsGetProbvar(SCIP_VAR **vars, int nvars)
Definition: var.c:11504
SCIP_VAR ** SCIPvarGetVubVars(SCIP_VAR *var)
Definition: var.c:17412
#define SCIP_Longint
Definition: def.h:120
SCIP_BOUNDTYPE SCIPvarGetBestBoundType(SCIP_VAR *var)
Definition: var.c:17278
SCIP_CONS * SCIPbdchginfoGetInferCons(SCIP_BDCHGINFO *bdchginfo)
Definition: var.c:17860
SCIP_Real SCIPvarGetAvgSol(SCIP_VAR *var)
Definition: var.c:13364
int SCIPvarGetIndex(SCIP_VAR *var)
Definition: var.c:16849
SCIP_VARTYPE SCIPvarGetType(SCIP_VAR *var)
Definition: var.c:16717
enum SCIP_Vartype SCIP_VARTYPE
Definition: type_var.h:60
SCIP_Real SCIPvarGetUbLocal(SCIP_VAR *var)
Definition: var.c:17232
SCIP_Bool SCIPvarIsTransformed(SCIP_VAR *var)
Definition: var.c:16694
SCIP_HOLELIST * SCIPvarGetHolelistLocal(SCIP_VAR *var)
Definition: var.c:17242
SCIP_BOUNDTYPE SCIPbdchginfoGetBoundtype(SCIP_BDCHGINFO *bdchginfo)
Definition: var.c:17808
common defines and data types used in all packages of SCIP
SCIP_RETCODE SCIPvarSetRemovable(SCIP_VAR *var, SCIP_Bool removable)
Definition: var.c:16655
SCIP_Real SCIPvarGetPseudoSol(SCIP_VAR *var)
Definition: var.c:17618
enum SCIP_BoundchgType SCIP_BOUNDCHGTYPE
Definition: type_var.h:78
SCIP_VAR * SCIPvarGetTransVar(SCIP_VAR *var)
Definition: var.c:16869
SCIP_Bool SCIPvarIsIntegral(SCIP_VAR *var)
Definition: var.c:16743
SCIP_Bool SCIPvarIsDeleted(SCIP_VAR *var)
Definition: var.c:16773
void SCIPvarSetData(SCIP_VAR *var, SCIP_VARDATA *vardata)
Definition: var.c:16582
SCIP_Bool SCIPvarMayRoundUp(SCIP_VAR *var)
Definition: var.c:3280
SCIP_Bool SCIPvarMayRoundDown(SCIP_VAR *var)
Definition: var.c:3272
type definitions for constraints and constraint handlers
SCIP_Bool SCIPvarIsActive(SCIP_VAR *var)
Definition: var.c:16839
SCIP_Bool SCIPvarIsNegated(SCIP_VAR *var)
Definition: var.c:16707
SCIP_BOUNDCHGTYPE SCIPbdchginfoGetChgtype(SCIP_BDCHGINFO *bdchginfo)
Definition: var.c:17798