We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c659b85 commit 5b94da1Copy full SHA for 5b94da1
src/pyscipopt/scip.pxi
@@ -2490,8 +2490,7 @@ cdef class Model:
2490
return PyCons
2491
2492
def addConsElemDisjunction(self, Constraint disj_cons, Constraint cons):
2493
- PY_SCIP_CALL(SCIPaddConsElemDisjunction(self._scip, disj_cons.scip_cons, cons.scip_cons))
2494
- PY_SCIP_CALL(SCIPreleaseCons(self._scip, &((<Constraint>disj_cons).scip_cons)))
+ PY_SCIP_CALL(SCIPaddConsElemDisjunction(self._scip, (<Constraint>disj_cons).scip_cons, (<Constraint>cons).scip_cons))
2495
PY_SCIP_CALL(SCIPreleaseCons(self._scip, &((<Constraint>cons).scip_cons)))
2496
2497
return disj_cons
0 commit comments