16.01.2015 Views

GAMS — The Solver Manuals - Available Software

GAMS — The Solver Manuals - Available Software

GAMS — The Solver Manuals - Available Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

240 DICOPT<br />

**** ERRORS(S) IN EQUATION loss(cc,sw)<br />

2 instance(s) of - UNDEFINED REAL POWER (RETURNED 0.0E+00)<br />

If such errors appear you can increase the DOMLIM limit, but often it is better to prevent the errors to occur.<br />

In many cases this can be accomplished by adding appropriate bounds. Sometimes you will need to add<br />

extra variables and equations to accomplish this. For instance with an expression like log(x − y), you may<br />

want to introduce a variable z > ε and an equation z = x − y, so that the expression can be rewritten as<br />

log(z).<br />

option iterlim = n;<br />

This option sets a limit on the total accumulated (minor) iterations performed in the MIP and NLP subproblems.<br />

<strong>The</strong> default is 1000.<br />

option minlp = dicopt;<br />

Selects DICOPT to solve MINLP problems.<br />

option mip = s;<br />

This option sets the MIP solver to be used for the MIP master problems. Note that changing from one MIP<br />

solver to another can lead to different results, and may cause DICOPT to follow a different path.<br />

option nlp = s;<br />

This option sets the NLP solver to be used for the NLP sub-problems. Note that changing from one NLP<br />

solver to another can lead to different results, and may cause DICOPT to follow a different path.<br />

option optca = x;<br />

This option is ignored. MIP master problems are solved to optimality unless specified differently in the<br />

DICOPT option file.<br />

option optcr = x;<br />

This option is ignored. MIP master problems are solved to optimality unless specified differently in the<br />

DICOPT option file.<br />

option reslim = x;<br />

This option sets a limit on the total accumulated time (in seconds) spent inside DICOPT and the subsolvers.<br />

<strong>The</strong> default is 1000 seconds.<br />

option sysout = on;<br />

This option will print extra information to the listing file.<br />

In the list above (and in the following) n indicates an integer number. <strong>GAMS</strong> will also accept fractional values:<br />

they will be rounded. Options marked with an x parameter expect a real number. Options with an s parameter,<br />

expect a string argument.<br />

7.2 <strong>The</strong> Model Suffix<br />

Some options are set by assigning a value to a model suffix, as in:<br />

model m /all/;<br />

m.optfile=1;<br />

solve m using minlp minimizing z;<br />

Here follows a list of model suffices that affect the behavoir of DICOPT:<br />

m.dictfile = 1;<br />

This option tells <strong>GAMS</strong> to write a dictionary file containing information about <strong>GAMS</strong> identifiers (equation<br />

and variables names). This information is needed when the DICOPT option nlptracelevel is used.<br />

Otherwise this option can be ignored.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!