Page 1 of 1

Parallel Mode and Number of Threads Setting in cplex.opt file

Posted: Wed Oct 26, 2022 7:02 pm
by Jubeyer
Hi,
I have set,

threads=0
and
parallelmode=-1

in the cplex.opt file ; but while executing the logfile is not showing up those values. Can anyone tell me how to define them correctly?

Best Regards.

Re: Parallel Mode and Number of Threads Setting in cplex.opt file

Posted: Thu Oct 27, 2022 7:40 am
by bussieck
Did you follow all instructions described here (https://www.gams.com/latest/docs/UG_Sol ... PTION_FILE) to enable the option file reading by the solver, most importantly setting mymodel.optfile=1?

-Michael

Re: Parallel Mode and Number of Threads Setting in cplex.opt file

Posted: Thu Oct 27, 2022 11:30 pm
by Jubeyer
Yes, I did.

I have done the following in my .gms file.
MyModel.iterlim =500000;
MyModel.optcr = 0.001;
MyModel.reslim = 1800;
option solvelink=5;
MyModel.optfile = 1;
heaplimit = 30000;

And I have tried to specify the thread number there as well like the following:
MyModel.threads=0;

Re: Parallel Mode and Number of Threads Setting in cplex.opt file

Posted: Fri Oct 28, 2022 8:43 am
by Fred
Looks correct. Please share your gms and log file. Fixing a problem with partial information is difficult.

Fred