Skip to content

Commit a9b71b5

Browse files
Update src/pyscipopt/scip.pxi
Co-authored-by: DominikKamp <130753997+DominikKamp@users.noreply.github.com>
1 parent b24ee4d commit a9b71b5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/pyscipopt/scip.pxi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7318,7 +7318,9 @@ cdef class Model:
73187318
constype = bytes(SCIPconshdlrGetName(SCIPconsGetHdlr(cons.scip_cons))).decode('UTF-8')
73197319

73207320
if cons.isLinearType():
7321-
return SCIPconsGetRhs(self._scip, cons.scip_cons, &success)
7321+
rhs = SCIPconsGetRhs(self._scip, cons.scip_cons, &success)
7322+
assert(success)
7323+
return rhs
73227324
elif constype == 'nonlinear':
73237325
return SCIPgetRhsNonlinear(cons.scip_cons)
73247326
else:

0 commit comments

Comments
 (0)