Time precision in log files
AnsweredHello,
when trying to analyze the output on rather small Gurobi models, the precision at which the time is printed in the log files is too little (no decimals), getting to the point that the first few results reported in the log all correspond to 0 seconds. Is there any way of getting these times in a more granular way?
-
Hi David,
You can access the Runtime attribute. It should give you more decimals.
Best regards,
Jaromił0 -
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 -
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.
Comments
3 comments