File tree Expand file tree Collapse file tree 2 files changed +34
-5
lines changed Expand file tree Collapse file tree 2 files changed +34
-5
lines changed Original file line number Diff line number Diff line change @@ -1653,16 +1653,13 @@ cdef extern from "scip/cons_and.h":
1653
1653
SCIP_Bool dynamic,
1654
1654
SCIP_Bool removable,
1655
1655
SCIP_Bool stickingatnode)
1656
-
1657
1656
int SCIPgetNVarsAnd(SCIP* scip, SCIP_CONS* cons)
1658
-
1659
1657
SCIP_VAR** SCIPgetVarsAnd(SCIP* scip, SCIP_CONS* cons)
1660
-
1661
1658
SCIP_VAR* SCIPgetResultantAnd(SCIP* scip, SCIP_CONS* cons)
1662
-
1663
1659
SCIP_Bool SCIPisAndConsSorted(SCIP* scip, SCIP_CONS* cons)
1664
-
1665
1660
SCIP_RETCODE SCIPsortAndCons(SCIP* scip, SCIP_CONS* cons)
1661
+ SCIP_RETCODE SCIPchgAndConsCheckFlagWhenUpgr(SCIP* scip, SCIP_CONS* cons, SCIP_Bool flag)
1662
+ SCIP_RETCODE SCIPchgAndConsRemovableFlagWhenUpgr(SCIP* scip, SCIP_CONS* cons, SCIP_Bool flag)
1666
1663
1667
1664
cdef extern from " scip/cons_or.h" :
1668
1665
SCIP_RETCODE SCIPcreateConsOr(SCIP* scip,
Original file line number Diff line number Diff line change @@ -6112,6 +6112,38 @@ cdef class Model:
6112
6112
cdef SCIP_Bool success
6113
6113
6114
6114
PY_SCIP_CALL(SCIPsortAndCons(self ._scip, and_cons.scip_cons))
6115
+
6116
+ def chgAndConsCheckFlagWhenUpgr (self , Constraint cons , flag ):
6117
+ """
6118
+ when 'upgrading' the given AND-constraint, should the check flag for the upgraded
6119
+ constraint be set to TRUE, even if the check flag of this AND-constraint is set to FALSE?
6120
+
6121
+ Parameters
6122
+ ----------
6123
+ cons : Constraint
6124
+ The AND constraint to change.
6125
+ flag : bool
6126
+ The new value for the check flag.
6127
+
6128
+ """
6129
+
6130
+ PY_SCIP_CALL(SCIPchgAndConsCheckFlagWhenUpgr(self ._scip, cons.scip_cons, flag))
6131
+
6132
+ def chgAndConsRemovableFlagWhenUpgr (self , Constraint cons , flag ):
6133
+ """
6134
+ when 'upgrading' the given AND-constraint, should the removable flag for the upgraded
6135
+ constraint be set to TRUE, even if the removable flag of this AND-constraint is set to FALSE?
6136
+
6137
+ Parameters
6138
+ ----------
6139
+ cons : Constraint
6140
+ The AND constraint to change.
6141
+ flag : bool
6142
+ The new value for the removable flag.
6143
+
6144
+ """
6145
+
6146
+ PY_SCIP_CALL(SCIPchgAndConsRemovableFlagWhenUpgr(self ._scip, cons.scip_cons, flag))
6115
6147
6116
6148
def printCons (self , Constraint constraint ):
6117
6149
"""
You can’t perform that action at this time.
0 commit comments