Opening a Sample Model on Linux

LINGO's installation program also copies a number of sample LINGO models onto your hard drive.  These models can be found in the samples folder, immediately beneath the main lingo17 folder. In most cases, the folder containing the samples will be $HOME/lingo17/samples.  These models are drawn from a wide array of application areas.  For more discussion of these models, see Additional Examples of LINGO Modeling.

To open a sample model in LINGO, follow these steps:

1.  Pull down the File menu and select the Open command. You will be presented with the following file selection dialog, and it will be open to the samples folder:

 linuxfileopen

2.  Double-click on the LingoDocs folder then double-click on the Samples folder contained in the LingoDocs folder, at which point you should see:

 macfileopen1

3.  To read in a small transportation model, select the tran.lng model from the samples folder and press the Open button. You should now have the model in an open window in LINGO as follows:

 linuxtranmodel

For details on developing a transportation model in LINGO see A Sample Transportation Model in this chapter.

You may now solve the model using the Solver|Solve command, or by pressing the Solve button on the toolbar: macsolvebutton. The optimal objective value for this model is 161. When solved, you should see the following solver status window:

linuxtransolverstatus

Note the objective field has a value of 161 as expected. For an interpretation of the other fields in this window, see Solver Status Window in Getting Started with LINGO.

Behind the solver status window, you will find the solution report for the model. This report contains summary information about the model as well as values for all the variables. This report’s header is reproduced below:

linuxtransolution

For information on interpreting the fields in the solution report, see Sample Solution Report in Getting Started with LINGO.