Dear Gurobi Team,
I am trying to retrieve and print the runtime for solving the root node. Unfortunately my model does not print any value in the end. Is there any mistake in my code? I already checked older posts, but cannot find my mistake.
Thank you very much!
def mycallback(model, where):
if where == GRB.Callback.MIPNODE:
depth = model.cbGet(GRB.Callback.MIPNODE_NODCNT)
if depth == 0:
if model.cbGet(GRB.Callback.MIPNODE_STATUS) == GRB.Status.OPTIMAL:
print("Root relaxation runtime is", model.Runtime)
And I would like to print out this value:
Please sign in to leave a comment.