The size of the listing file can be reduced by using the following switches:
SOLPRINT, LIMROW, and
The $offlisting switch turns off the listing of the input file(s) in the listing file. This can also be done by using the
suppress=1 command line option. The rest of the options are explained in the GAMS manual. The following example illustrates the use of these switches to minimize the size of the listing file.
$TITLE REDUCED OUTPUT $inlinecom /* */ /* Turn off the listing of the input file */ $offlisting /* Turn off the listing and cross-reference of the symbols used */ $offsymxref offsymlist option limrow = 0, /* equations listed per block */ limcol = 0, /* variables listed per block */ solprint = off, /* solver's solution output printed */ sysout = off; /* solver's system output printed */ /* include your model here */
solprint option can be controlled on a model-by-model basis by a line of the form
model_name.solprint = N;, where N = 0, 1, or 2. 0 and 1 correspond to the
on settings for the global
solprint option, while 2 eliminates even the abbreviated solution status information printed in the
Sometimes it is tedious to make all the necessary edits. An alternative is the command line option
suppress=1 which suppresses the source file echo print, i.e.
gams model suppress=1
All display statements, solution listings etc. will appear in the .lst file, but none of the input text is written there.
You can completely shut off output to the lst file from the GAMS model by sending it to NUL under Windows or to /dev/null on most Unix machines. To run a model completely quietly (i.e. without any output to the screen or to the log file), run:
gams trnsport o=nul lo=2 lf=nulor
gams trnsport o=nul lo=0
gams trnsport o=/dev/null lo=2 lf=/dev/nullor
gams trnsport o=/dev/null lo=0