Solver|Solve |
|
|
Use the Solve command to have LINGO solve the model in the active window. The Solve command is available only for model windows—report, script, and data windows cannot be solved.
When you solve a model, LINGO first examines the model's syntax to determine if it is valid. If LINGO finds a mistake in the syntax, you will be presented with a dialog box similar to the following:
In the Error Text box, LINGO prints the line number where the syntax error occurred, the text of the line, and points to where LINGO determines that the error occurred. In most cases, LINGO is good at pointing to where the error occurred. Sometimes, however, the error may not be located exactly where LINGO is pointing. Be sure to examine neighboring lines for possible flaws as well. In this particular example, the syntax error occurred in line 2, where we forgot to insert the multiplication signs (*) between the two coefficients and variable names.
When you issue the Solve command (assuming your model has no further syntax errors), LINGO will post the solver status window. This window contains information about the composition of your model and keeps you posted as to the progress of the solver. The solver status window resembles the following:
For more information on the various fields in the solver status window, refer to the section Solver Status Window.
Once the solver has completed processing your model, it will create a new window containing the solution report for your model. You can scroll through this window to examine its contents, save it to a text file, or queue it to your printer. The following is a sample solution report window: