Skip to main content

Getting time values shown in the prints

Answered

Comments

4 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?.
  • Daniel Espinoza

    Taner,

    The only way to see if the mipstart was successful, is to get the log line

    'Loaded MIP start with objective 201'

    0
  • Henrique Becker
    Gurobi-versary
    First Comment
    Curious

    I have about the same question and problem. If you are an academic user of the solver it can be of your interest to have a table in your paper with the time spent in the root node relaxation. The way it is, there is no programmatic way of getting this info without parsing the output, what is very inconvenient (i.e., instead of being able to assemble a CSV already inside the code, it becomes necessary to do it using the output, or capturing the output inside the program what is not always possible, and if you have multiple calls to a MIP you need to put indicators in the output to be able to distinguish them and this also complicates the parsing).

    0
  • Tobias Achterberg
    Gurobi Staff Gurobi Staff

    Hi Henrique,

    you could install a callback function that queries the MIP_NODLFT data. The first time this becomes non-zero, you are at the end of the root node.

    Alternatively, you could launch your optimization with a NodeLimit of 1. Then, the process will stop after the root node. Afterwards, you set the NodeLimit back to infinity and call the optimization again. It will resume where it stopped, i.e., start with exploring the branch-and-bound tree.

    Regards,

    Tobias

     

    0

Post is closed for comments.