Skip to main content

Time precision in log files

Answered

Comments

3 comments

  • Jaromił Najman
    Gurobi Staff Gurobi Staff

    Hi David,

    You can access the Runtime attribute. It should give you more decimals.

    Best regards, 
    Jaromił

    0
  • David Bernal Neira
    First Comment
    First Question

    Thank you for your answer! Is there a global parameter to edit how the log file is printed, or would you recommend querying the model for any bound update for these values?

    0
  • Jaromił Najman
    Gurobi Staff Gurobi Staff

    Is there a global parameter to edit how the log file is printed, or would you recommend querying the model for any bound update for these values?

    Currently, there is no parameter to adjust the precision of log output. Thus, I would always recommend to query model attributes if high precision is needed.

    So as long as you are interested in the final optimization time, you can query the Runtime attribute. If you are interested in intermediate solution time, I recommend to use a callback to query the RUNTIME in a callback, e.g., query the message callback to get the value at each printed log line.

    0

Please sign in to leave a comment.