Due to MIP problems which take long computation time, how do I instruct cplex to return current best solution when the computation time takes longer than, an hour for example, and the relative gap is at 5% for example?
Individually, I believe I can use both functions: model.parameters.timelimit.set() and model.parameters.mip.tolerances.mipgap.set(), but how do I combine both?