Originally posted by: SystemAdmin
[Campeador said:]
[quote author=katai link=topic=1009.msg2894#msg2894 date=1236710114]
Hello,
it seems that the manual suggest setTimeLimit which set the CPU time limit in second. also you have the getTime method to know how much CPU time has elapsed...
I hope it helps
cheers
Now I need help again. Some of my data sets are quite large and unfortunately the schools computers are not of newest date so when I run the script I tend to crash the system because of long CPU times.
How do I set the maximum time limit in OPL 3.7.1?
I have something lookin like thin
Model=myModel("MarinModel.mod");
myModel.setTimeLimit(100);
myModel.solve();
Which runs fine but does not respect the time limit. What would be the correct way to implement the timeLimit?
#DecisionOptimization#OPLusingCPLEXOptimizer