Skip to main content

Unable to retrieve attribute 'ObjVal', despite GRB_Optimal status

Awaiting user input

Comments

1 comment

  • Jaromił Najman
    Gurobi Staff Gurobi Staff

    Hi Robert,

    I think I found the problem: I have the problem that sometimes I add a new constraint, but after that I don't call model.optimize() again. Might this lead to the given error?

    Probably yes. If the constraint cuts of the previous solution and you don't re-optimize, it is possible that the previous solution is lost. However, I am just guessing here. If calling model.optimize() does not help, could you share a minimal working example reproducing the issue?

    Best regards, 
    Jaromił

    0

Please sign in to leave a comment.