3
$\begingroup$
mdl.print_information()
sol = mdl.solve()
mdl.print_solution()     


if sol is None:
    print("Infeasible")
    
print(mdl.solve_details)

At the end of the mathematical model in docplex I have the code above and solve time is printed in the console. But I am not sure about if it is CPU time or not. How can I print the CPU time?

$\endgroup$

1 Answer 1

3
$\begingroup$

Yes , that's CPU time. If you want real time then use the python time module

$\endgroup$
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.