Recently, someone asked me about time limits for AIMMS PRO Jobs.
You can control the timeout via the timeout argument in pro::delegateToServer. Note that this timeout is in milliseconds.
When thinking about time limits, I usually think about time limit for the solver.
To provide the solver with the opportunity to share the best solution thus far,
I usually add some minutes to cater for case load, project start, case save etc of the job to the time limit for the AIMMS PRO Job.
Therefore, my delegate sometimes looks as follows:
if pro::DelegateToServer(
...
timeout: p_timeLimit * 1.2 * 1000 + 5 * 60 * 1000, ! timelimit for job is in milli seconds.
....
)
Where p_timeLimit is the time limit in seconds for the solve itself.