Overall program run time/time limit
Posted: Mon Sep 03, 2018 1:52 pm
I'm implementing sequential solver calls in a benders loop.
It is possible to set the reslim option to limit the solution time of a single solver call.
It is also possible to measure the overall loop time by accumulating the solver time returned in resUsd using a scalar parameter.
Things become more complicated for me if the same setup is implemented using a Python ModelInstance (to avoid repeated model generation in the benders loop).
I simply don't know what will be the ModelInstance property that would return the used time after a call to the solve() method (the Python docs are not so easy to read).
I also wonder if there is an option to set a global time limit for the whole model (not just for a solver call).
It is possible to set the reslim option to limit the solution time of a single solver call.
It is also possible to measure the overall loop time by accumulating the solver time returned in resUsd using a scalar parameter.
Things become more complicated for me if the same setup is implemented using a Python ModelInstance (to avoid repeated model generation in the benders loop).
I simply don't know what will be the ModelInstance property that would return the used time after a call to the solve() method (the Python docs are not so easy to read).
I also wonder if there is an option to set a global time limit for the whole model (not just for a solver call).