1
votes

I am using the IBM ILOG CPLEX Optimization Studio (version 12.6.3) to solve a large optimization problem. Since the problem is so big, CPLEX takes a very long time, so I want to limit the runtime. What is the correct syntax to limit this?

Thanks!

Note: I am not using another language to run the CPLEX model, I am running directly from IBM ILOG CPLEX Otimization Studio

1
A related post recommends this syntax for a 5s timelimit: option cplex_options 'timelimit=5' - Axel Kemper
If you are working inside CPLEX Studio, it is often easier to do this kind of stuff via a 'settings' file. Add a settings file to your project, and add a reference to that settings file to your run configuration so it gets used. If you open and edit that settings file (should have extension .ops) inside cplex studio, you should get access to dozens (hundreds?) of parameters and settins. The time limit stuff is on 'Mathematical programming' -> General - TimChippingtonDerrick
Thank you, this solved my problem! - Marijn

1 Answers

1
votes
execute timeTermination {
    cplex.tilim = 40*60;   // set time model stop (second)
    }