Skip to main content

Unable to retrieve attribute 'ObjVal', despite GRB_Optimal status

Awaiting user input

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support.
  • Jaromił Najman
    • 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

Post is closed for comments.