You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getObjVal, getVal are too strict in the stage checks. For example, the following code raises an error:
from pyscipopt import Model
m = Model()
x = m.addVar()
m.setObjective(x)
m.setParam("limits/solutions", 1)
m.optimize()
print("Stage: ", m.getStage())
print(m.getNSols())
print(m.getObjVal()) # crashes here, even though the model does have solutions
getObjVal is a PySCIPOpt-only function, but the SCIP functions it calls don't need the strict requirements that getObjVal has.
The fix is in PR#815, but I'm having some trouble with it.
The text was updated successfully, but these errors were encountered:
getObjVal, getVal are too strict in the stage checks. For example, the following code raises an error:
getObjVal
is a PySCIPOpt-only function, but the SCIP functions it calls don't need the strict requirements thatgetObjVal
has.The fix is in PR#815, but I'm having some trouble with it.
The text was updated successfully, but these errors were encountered: