To follow the path:
look to the master,
follow the master,
walk with the master,
see through the master,
become the master.
qrn@Dept.Math,HIT(WH)
LINGO 快速入门
LINGO 是用来求解线性和非线性优化问题的简易工具。LINGO 内置了一种建立最优
化模型的语言,可以简便地表达大规模问题,利用 LINGO 高效的求解器可快速求解并分析
结果。
§1 LINGO快速入门 ......................................................................................................................2
§2 LINGO中的集 ..........................................................................................................................3
2.1 为什么使用集....................................................................................................................3
2.2 什么是集............................................................................................................................4
2.3 模型的集部分....................................................................................................................4
2.3.1 定义原始集.............................................................................................................4
2.3.2 定义派生集.............................................................................................................5
§3 模型的数据部分和初始部分...................................................................................................7
3.1 模型的数据部分................................................................................................................7
3.1.1 数据部分入门.........................................................................................................7
3.1.2 参数.........................................................................................................................8
3.1.3 实时数据处理.........................................................................................................8
3.1.4 指定属性为一个值.................................................................................................9
3.1.5 数据部分的未知数值.............................................................................................9
3.2 模型的初始部分..............................................................................................................10
§4 LINGO函数 ............................................................................................................................10
4.1 基本运算符......................................................................................................................10
4.1.1 算术运算符...........................................................................................................11
4.1.2 逻辑运算符...........................................................................................................11
4.1.3 关系运算符...........................................................................................................11
4.2 数学函数..........................................................................................................................12
4.3 金融函数..........................................................................................................................13
4.4 概率函数..........................................................................................................................13
4.5 变量界定函数..................................................................................................................15
4.6 集操作函数......................................................................................................................15
4.7 集循环函数......................................................................................................................16
4.8 输入和输出函数..............................................................................................................18
4.9 辅助函数..........................................................................................................................21
§5 LINGO WINDOWS命令........................................................................................................22
5.1 文件菜单(File Menu) .................................................................................................22
5.2 编辑菜单(Edit Menu)......................................................................................................23
5.3 LINGO菜单 ......................................................................................................................23
5.4 窗口菜单(Windows Menu) ........................................................................................35
5.5 帮助菜单(Help Menu).....................................................................................................37
§6 LINGO的命令行命令 ............................................................................................................37
§7 综合举例.................................................................................................................................41
1