Printing and Saving Your Work from the Command-Line
For command-line versions of LINGO, the DIVERT file command may be used to send all LINGO reports to a file rather than to the screen. You may then route this file to a printer or load it into a word processing program for printing.
For example, to create a text file for printing that contains a copy of your model and solution, issue the commands:
DIVERT MYFILE !Opens an output file called MYFILE;
LOOK ALL !Sends formulation to the file;
GO !Sends solution to the file;
RVRT !Closes down output file;
To save your model to disk, issue the SAVE command followed by the name of a file to store your model under. For example, the command
SAVE MYFILE.LNG
saves a copy of the current model to the file titled MYFILE.LNG. The model may be retrieved for use later with the TAKE command.
Please refer to Command-line Commands for more detailed information on these and other commands.