Skip to main content

Number of non-integral values at each node of relaxation

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    Gurobi Staff 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 why not try our AI Gurobot?.
  • Jaromił Najman
    Gurobi Staff Gurobi Staff

    Hi Pratim,

    There is no direct way of obtaining the number of non-integral variable values in the node relaxation solution. However, you can use the \(\texttt{MIPNODE_REL}\) in the \(\texttt{MIPNODE}\) callback to get the node relaxation solution and check the variable solution values for integrality, see Callback Codes.

    Another, rather very alternative option would be to parse the \(\texttt{MSG_STRING}\) in a \(\texttt{MESSAGE}\) callback for the desired information.

    Best regards,
    Jaromił

    0

Post is closed for comments.