'How to get a solution after stopping a model in docplex?

I try to solve a model in docplex(python) and I add a time limit to stop the model; I want return the last upper bound when the model was stopped.



Solution 1:[1]

You can use the info stored in solve_details:

mdl.solve_details.best_bound

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mohammad