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 151<br />

10 APPENDIX B - CR-Cells<br />

<strong>The</strong> CR-Cells that ordinary <strong>GAMS</strong> users can access are listed below. CR-Cells starting on R assume real values,<br />

CR-Cells starting on LS assume logical values (TRUE, T, FALSE, or F), and all other CR-Cells starting on L<br />

assume integer values. Several CR-Cells are only used in several versions of CONOPT in which case it will be<br />

mentioned below. However, these CR- Cells can still be defined in an options file for the old CONOPT, but they<br />

will silently be ignored:<br />

Option Description Default<br />

lfilog Iteration Log frequency. A log line is printed to the screen every lfilog iterations<br />

(see also lfilos). <strong>The</strong> default value depends on the size of the model: it<br />

is 10 for models with less than 500 constraints, 5 for models between 501 and<br />

2000 constraints and 1 for larger models. <strong>The</strong> log itself can be turned on and<br />

off with the Logoption (LO) parameter on the <strong>GAMS</strong> call.<br />

Lfilos Iteration Log frequency for SLP and SQP iterations. A log line is printed to the<br />

screen every lfilos iterations while using the SLP or SQP mode. <strong>The</strong> default<br />

value depends on the size of the model: it is 1 for large models with more than<br />

2000 constraints or 3000 variables, 5 for medium sized models with more than<br />

500 constraints or 1000 variables, and 10 for smaller models.<br />

lfderr <strong>The</strong> Function and Derivative Debugger (by default used with external equations)<br />

10<br />

will not write more than lfderr error messages independent of the num-<br />

ber of errors found.<br />

lfmxns Limit on new superbasics. When there has been a sufficient reduction in the 5<br />

reduced gradient in one subspace, CONOPT tests if any nonbasic variables<br />

should be made superbasic. <strong>The</strong> ones with largest reduced gradient of proper<br />

sign are selected, up to a limit of lfmxns. <strong>The</strong> default value of lfmxns is 5.<br />

<strong>The</strong> limit is replaced by the square root of the number of structural variables if<br />

lfmxns is set to zero.<br />

lfnicr Limit for slow progress / no increase. <strong>The</strong> optimization is stopped with a 12<br />

”Slow Progress” message if the change in objective is less than 10 * rtobjr *<br />

max(1,abs(FOBJ)) for lfnicr consecutive iterations where FOBJ is the value<br />

of the current objective function. <strong>The</strong> default value of lfnicr is 12.<br />

lfnsup Maximum Hessian dimension. If the number of superbasics exceeds lfnsup 500<br />

CONOPT will no longer store a Reduced Hessian matrix.<br />

CONOPT2 will switch to a steepest descend approach, independent of the degree<br />

of nonlinearity of the model. <strong>The</strong> default value of lfnsup is 500. If lfnsup<br />

is increased beyond its default value the default memory allocation may not be<br />

sufficient, and you may have to include a ”.WORKSPACE = xx.x;” statement<br />

in your <strong>GAMS</strong> source file, where ”model” represent the <strong>GAMS</strong> name of<br />

the model. You should try to increase the value of lfnsup if CONOPT performs<br />

many iterations in Phase 4 with the number of superbasics (NSB) larger<br />

than lfnsup and without much progress. <strong>The</strong> new value should in this case be<br />

larger than the number of superbasics.<br />

CONOPT3 will also refrain from using a reduced Hessian. However, it can still<br />

use second derivatives in combination with a conjugate gradient algorithm. It is<br />

usually not a good idea to increase lfnsup much beyond its default value of 500<br />

with CONOPT3. <strong>The</strong> time used to manipulate a very large reduced Hessian<br />

matrix is often large compared to the potential reduction in the number of<br />

iterations.<br />

(Note: CONOPT2 and CONOPT3 react very differently to changes in lfnsup.)<br />

lfscal Frequency for scaling. <strong>The</strong> scale factors are recomputed after lfscal recomputations<br />

of the Jacobian. <strong>The</strong> default value is 20. Not CONOPT1<br />

20

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

Saved successfully!

Ooh no, something went wrong!