gams/cplex option file

1,286 views
Skip to first unread message

esra

unread,
Jun 4, 2012, 3:29:03 AM6/4/12
to gamsworld
Hi,
I want to create an option file in cplex solver.How can I that?

Destin Zed

unread,
Jun 4, 2012, 4:04:45 AM6/4/12
to gams...@googlegroups.com
*To let GAMS know there is a user-defined option file - BEFORE THE *SOLVE STATEMENT
YourModelName.optfile=1;

*Your options ------ example
$onecho > cplex.opt
threads 4
nodefileind 2
workmem 2048
nodesel 2
varsel 3
$offecho

HTH.

Destin


On Mon, Jun 4, 2012 at 9:29 AM, esra <esra...@gmail.com> wrote:
Hi,
I want to create an option file in cplex solver.How can I that?

--
You received this message because you are subscribed to the Google Groups "gamsworld" group.
To post to this group, send email to gams...@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.


esra

unread,
Jun 4, 2012, 5:04:40 AM6/4/12
to gamsworld
Hi Destin,
My gams file

model pipe /all/;
Options optcr=1e-4,reslim = 20000,iterlim = 1e9;
Option mip=cplex;
pipe.optfile=1;
SOLVE pipe minimizing PA using mip;
Display PA.l;
File output /pipe_cplex.txt/;

After I run gams, give below error

User supplied options:
startalg 1
mipsearch 1
>> No such option.
*solvefinal 0
fixoptfile fix.opt
>> No such option.
> >http://groups.google.com/group/gamsworld?hl=en.- Alıntıyı gizle -
>
> - Alıntıyı göster -

Destin Zed

unread,
Jun 5, 2012, 7:07:30 AM6/5/12
to gams...@googlegroups.com
Esra,

Your piece of GAMS code doesn't show where/how you introduced the CPLEX options. Anyway, the following should work for you.


model pipe /all/;
Options optcr=1e-4,reslim = 20000,iterlim = 1e9;
Option mip=cplex;
pipe.optfile=1;
SOLVE pipe minimizing PA using mip;

$onecho > cplex.opt
startalg 1
mipsearch 1
$offecho


Display PA.l;
File output /pipe_cplex.txt/;

HTH.
Destin.

esra

unread,
Jun 6, 2012, 3:59:16 AM6/6/12
to gamsworld
Hi Destin
Thanks your answer I am new user so I don't know how/where I
introduced the cplex opt.file
Programme give below error

Unable to open options file: C:\GAMS\GAMSPDF\CPLEX.OPT.
Unable to process options file.
Presolve found the problem infeasible or unbounded.
> > > >http://groups.google.com/group/gamsworld?hl=en.-Alıntıyı gizle -
Reply all
Reply to author
Forward
0 new messages