Time limit on a parallel solve
Is there a parallel" version of the "time limit" parameter? As far as I can see, imposing a time limit of X leads to a solve been terminated after X seconds have passed independently of the number of threads that are been used. Is there a way to terminate a solve after a total of X seconds (of actual computation, ignoring idles) have passed *in total* over the different threads?
(I cannot use callbacks in this specific activities; the best I can do is setting a parameter between issuing an optimize command)
-
You are right that setting a time limit lets the solver terminate after that time has passed, independently of the number of threads. There is no parallel version of the time limit. You can, of course, try to vaguely approximate this by dividing the time limit by the number of threads (but this approximation likely wouldn't be very exact).
You could also have a look at other termination criteria (NodeLimit or IterationLimit). It would probably be hard to emulate a time limit with those, but they do provide means to limit the *effort* spent on a model.
Do you have a worthwhile application for such a parallel time limit?
0
Please sign in to leave a comment.
Comments
1 comment