The SOLU, or SOLUTION, command displays a solution report for the current model. The syntax of the SOLU command is:
SOLU ['header_text'] [ var_or_row_names]
For a standard solution report, omit the two optional arguments and enter the SOLU command by itself. LINGO will print primal and dual values for all the variables and rows in the model. LINGO will label all the columns in the report.
The first optional field, header_text, will be displayed as a title header in the solution report. If the header_text argument is included, LINGO prints primal values only, omitting all labels in the report.
The second optional field, var_or_row_names, is a variable and/or row name list that, if included, will limit the report to the given variable or row name. The standard wild card characters (* and %) are supported in the variable and row names.
As an example, in the following session, we load the Chess Snackfoods example from the Using Sets section and then generate several solution reports using SOLU:
2015-07-28_10-58-35.png (18.59 KB, 下载次数: 273)
发现直接回复没办法上传图片。
有三个函数也许可以帮你定制你自己的输出,一个叫@solu,一个叫@divert,以及@write
欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) | Powered by Discuz! X2.5 |