DICOPT option

274 views
Skip to first unread message

Sung Young Kim

unread,
Mar 6, 2012, 3:36:23 PM3/6/12
to gamsworld
Hi all,

I have a question about DICOPT solver option.

GAMS stopped on MAXCYCLES like below;
------------------------------------------------------------------------------
---- DICOPT: Terminating
---- DICOPT: Stopped on MAXCYCLES

The search was stopped because the major iteration limit
was reached. This limit can be reset with the DICOPT
option MAXCYCLES.

------------------------------------------------------------------------------

How can I reset with the DICOPT option MAXCYCLES?

Thanks,
Sung Young Kim

Arrow yy

unread,
Mar 6, 2012, 8:43:32 PM3/6/12
to gamsworld
You can use the "option reslim = #num# " after the "modle" you set,
eg:

......
Model OP /all/ ;
option reslim = 2000;
......

Destin Zed

unread,
Mar 7, 2012, 5:27:28 AM3/7/12
to gams...@googlegroups.com
Hi Sung,

You may need to append a DICOPT option file something like the following in your code:

yourModelname.optfile=1;

$onecho > dicopt.opt
maxcycles n
$offecho

Where n is an integer of your interest. The default for DICOPT solver is 20. Note also that the first line <yourModelName>.optfile=1; should be placed before the SOLVE statement in your GAMS code.

I hope this helps.

Destin



--
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.


Reply all
Reply to author
Forward
0 new messages