Originally posted by: Viktoria_Austria
Dear community,
I know that it is possible to limit an optimization run by "cp.param.timelimit=x" in the main() area or to insert the wished limit directly in the settings (.ops) file. However, if I code a script, where multiple runs are performed automatically (e.g. using a staticLex(() objective and optimizing the model multiple times in a row with differing input by using main()), is there also a possiblity to limit the CP Optimizer with an overall allowed running time? (I want the CP Optimizer to optimize every single run as long as it needs but I want to stop the overall process after e.g. 1 hour)
Thank you very much for your help.
Best,
Viktoria
#CPOptimizer#DecisionOptimization