Solving the Model from the Command-Line

To begin solving the model, type the GO command at the colon prompt and press the enter key. LINGO will begin compiling the model. This means LINGO will determine whether the model conforms to all syntax requirements. If the LINGO model doesn’t pass these tests, you will be informed by an error message. For more information on error codes, see Error Messages.

If there are no formulation errors during the compilation phase, LINGO will invoke the appropriate internal solver to begin searching for the optimal solution to your model. When LINGO is done solving the CompuQuick model, it will send the following solution report to your screen:

: GO

 Global optimal solution found.

 Objective value:                      14500.00

 Infeasibilities:                      0.000000

 Total solver iterations:                     0

 Elapsed runtime seconds:                  0.03

 

 Model Class:                                LP

 

 Total variables:                      2

 Nonlinear variables:                  0

 Integer variables:                    0

 

 Total constraints:                    4

 Nonlinear constraints:                0

 

 Total nonzeros:                       6

 Nonlinear nonzeros:                   0

 

   Variable           Value        Reduced Cost

   STANDARD        100.0000            0.000000

      TURBO        30.00000            0.000000

 

        Row    Slack or Surplus      Dual Price

          1        14500.00            1.000000

          2        0.000000            25.00000

          3        90.00000            0.000000

          4        0.000000            75.00000

This solution tells us that CompuQuick should build 100 Standards and 30 Turbos each day to give them a total daily profit of $14,500. Click here for additional details on the various fields in this report.