Solprint

Top  Previous  Next

This keyword controls the printing of the solution report.  Numeric input is expected with the allowable numeric values being

 

0remove solution listings following solves
1include solution listings following solves (default)
2suppress all solution information

The command is implemented with the syntax

 

Solprint=number

 

A related set of Solprint constants is defined as follows

 Solprint.Summary is a constant that equals 0.

 Solprint.Report is a constant that equals 1.

 Solprint.Quiet is a constant that equals 2.

 

These may be used in a fashion as follows ( simpnlp.gms )

 a1= %Solprint.Summary%;

 a2=  %Solprint.Report%;

 a3=  %Solprint.Quiet%;

 a4=  %gams.Solprint%;

 display a1,a2,a3,a4;

 if(%gams.solprint%= %Solprint.Report%,display 'Normal output present');

 display 'gams.solprint =','%gams.solprint%';

 

These constants are defined at compile time and cannot be manipulated or reassigned.