简体   繁体   中英

CPLEX time limit

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

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

The time can also be reduced if you want to get at least one feasible solution by: in setting --> General --> Mathematical programming --> FeasOpt. You will find the default value of 1.0E-6 that you can reduce as appropriate.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM