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.

CONOPT 119<br />

procedure.<br />

** Fatal Error ** Function error after small step in Phase 0<br />

procedure.<br />

** Fatal Error ** Function error very close to a feasible point.<br />

** Fatal Error ** Function error while reducing tolerances.<br />

** Fatal Error ** Function error in Pre-triangular equations.<br />

** Fatal Error ** Function error after solving Pre-triangular<br />

equations.<br />

** Fatal Error ** Function error in Post-triangular equation.<br />

In the first four cases you must either add better bounds or define better initial values. If the problem is related<br />

to a pre- or post-triangular equation as shown by the last three messages then you can turn part of the preprocessing<br />

off as described in section A4 in Appendix A. However, this may make the model harder to solve, so<br />

it is usually better to add bounds and/or initial values.<br />

5 <strong>The</strong> CONOPT Options File<br />

CONOPT has been designed to be self-tuning. Most tolerances are dynamic. As an example: <strong>The</strong> feasibility of a<br />

constraint is always judged relative to the dual variable on the constraint and relative to the expected change in<br />

objective in the coming iteration. If the dual variable is large then the constraint must be satisfied with a small<br />

tolerance, and if the dual variable is small then the tolerance is larger. When the expected change in objective<br />

in the first iterations is large then the feasibility tolerances are also large. And when we approach the optimum<br />

and the expected change in objective becomes smaller then the feasibility tolerances become smaller.<br />

Because of the self-tuning nature of CONOPT you should in most cases be well off with default tolerances.<br />

If you do need to change some tolerances, possibly following the advice in Appendix A, it can be done in the<br />

CONOPT Options file. <strong>The</strong> name of the CONOPT Options file is on most systems ”conopt.opt” when the<br />

solver is CONOPT and ”conopt2.opt” for the older CONOPT2. You must tell the solver that you want to use<br />

an options file with the statement .OPTFILE = 1 in your <strong>GAMS</strong> source file before the SOLVE statement<br />

or with optfile = 1 on the command line.<br />

<strong>The</strong> format of the CONOPT Options file is different from the format of options file used by MINOS and ZOOM.<br />

It consists in its simplest form of a number of lines like these:<br />

rtmaxv = 1.e8<br />

lfnsup = 500<br />

Upper case letters are converted to lower case so the second line could also be written as ”LFNSUP = 500”. <strong>The</strong><br />

value must be written using legal <strong>GAMS</strong> format, i.e. a real number may contain an optional E exponent, but<br />

a number may not contain blanks. <strong>The</strong> value must have the same type as the option, i.e. real options must be<br />

assigned real values, integer options must be assigned integer values, and logical options must be assigned logical<br />

values. <strong>The</strong> logical value representing true are true, yes, or 1, and the logical values representing false are<br />

false, no, or 0.<br />

In previous versions of CONOPT you could add ”SET” in front of the option assignment. This is no longer<br />

supported.

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

Saved successfully!

Ooh no, something went wrong!