Skip to main content

Wrong root node number

Answered

Comments

3 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.
  • David Torres Sanchez
    • Gurobi Staff

    Hi Jiajie,

    \( \texttt{GRB.Callback.MIP_NODCNT} \) is just a constant (with value 5005).
    The correct way to query this attribute is:

    nodecnt = model.cbGet(GRB.Callback.MIP_NODCNT)

    Please see the Python callback example for more details.

    Cheers, 
    David

    0
  • Jiajie Zhang
    • Gurobi-versary
    • First Comment
    • First Question

    Thank you very much David. That exactly what I want.

    0

Post is closed for comments.