Is it possible to retrieve the best (lower) bound of a MILP problem that did not reach the optimal solution?

Answered

Comments

3 comments

  • Jaromił Najman

    Hi Efrain,

    You can access the best bound via the ObjBound attribute.

    Best regards,
    Jaromił

    0
    Comment actions Permalink
  • Efrain Ruiz

    Sorry, I was not clear enough I want to retrieve the value of the variables of the best lower bound solution, not the value of the objective function.

    0
    Comment actions Permalink
  • Efrain Ruiz

    I have just found how to do it using a callback. You have to use

    if (where ==GRB_CB_MIPNODE && getIntInfo(GRB_CB_MIPNODE_STATUS) == GRB_OPTIMAL)

    to find out if the node is optimal for the LR of the problem

    then use

    getNodeRel () to obtain the value on the variables. Thank you Jaromil, for your help

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk