3

I am using ILOG CPLEX from JAVA and I am running an Integer optimisation problem that takes about 3 days to complete the 0.0%. I need to terminate the program after a certain time limit and obtain a solution for whatever the limit left. Can anyone let me know how to do that?

Thanks in advance.

USC
  • 61
  • 1
  • 5

1 Answers1

3

You should run CPLEX with TiLim param:

cplex.setParam(IloCplex.DoubleParam.TiLim, your_time_in_seconds)
Michał Urbaniak
  • 1,249
  • 13
  • 28