I have the following settings for a run file:
option cplex_options 'memoryemphasis=1 mipgap=1e-9 threads=8 timelimit=18000';
It works in old version of ampl, but now it shows the following error:
CPLEX 22.1.1: Unknown option or invalid key “memoryemphasis”
How can I set the memoryemphasis in the new version of ampl for reducing memory consumption?
Thank you!
marcos
2
Hi @qiaolunzhang ,
Thanks for your message! We have heavily changed (and enhanced) our Cplex driver, but that option was missing.
Could you try reinstalling the new version of Cplex and trying again your options? You can load them directly with:
ampl.solve(solver="cplex", cplex_options="memoryemphasis=1 mipgap=1e-9 threads=8 timelimit=18000")
Now Cplex supports all the extended set of modeling features from MP, maybe it could be helpful to you in the future: