Skip to content

Commit 5b94da1

Browse files
committed
fix addConsElemDisjunction cons release
1 parent c659b85 commit 5b94da1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pyscipopt/scip.pxi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2490,8 +2490,7 @@ cdef class Model:
24902490
return PyCons
24912491

24922492
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)))
2493+
PY_SCIP_CALL(SCIPaddConsElemDisjunction(self._scip, (<Constraint>disj_cons).scip_cons, (<Constraint>cons).scip_cons))
24952494
PY_SCIP_CALL(SCIPreleaseCons(self._scip, &((<Constraint>cons).scip_cons)))
24962495

24972496
return disj_cons

0 commit comments

Comments
 (0)