I would like to solve a small-ish Mixed Integer Program using COIN-CBC (or any other free MIP solver available from PuLP), but with a time limit of, say, 10 seconds. However, the maxSeconds argument does not seem to work for me.
For an example instance, I call the solver without time limit this way:
prob.solve(pulp.PULP_CBC_CMD())
I call it with time limit this way:
prob.solve(pulp.PULP_CBC_CMD(maxSeconds=10))
The former terminates in 50.89 seconds, solution value 15.65287864835175. The latter terminates in 53.53 seconds, solution value 15.65287864835175. I would have expected it to terminate in (roughly) 10 seconds, probably with a higher solution value.
(I am aware of this post: Time limit for mixed integer programming with Python PuLP. But its answers refer to CPLEX and GUROBI, which I cannot use; I need a free solver.)
Am I doing something wrong?