mezhaoyun 发表于 2009-8-11 15:29

请教 lingo小程序 如何设置灵敏度分析

用该命令产生当前模型的灵敏性分析报告:研究当目标函数的费用系数和约束右端项在什么范围(此时假定其它系数不变)时,最优基保持不变。灵敏性分析是在求解模型时作出的,因此在求解模型时灵敏性分析是激活状态,但是默认是不激活的。为了激活灵敏性分析,运行LINGO|Options…,选择General Solver Tab, 在Dual Computations列表框中,选择Prices and Ranges选项。

在编程运行后
max=60*desks+30*tables+20*chairs;8*desks+6*tables+chairs<=48;4*desks+2*tables+1.5*chairs<=20;2*desks+1.5*tables+.5*chairs<=8;tables<=5;
求解这个模型,并激活灵敏性分析。这时,查看报告窗口(Reports Window),可以看到如下结果。
Global optimal solution found at iteration:
3
Objective value:
280.0000
Variable
Value
Reduced Cost

DESKS
2.000000
0.000000
TABLES
0.000000
5.000000
CHAIRS
8.000000
0.000000 根本没有灵敏度分析的内容:                             Row
Slack or Surplus

Dual Price
1
280.0000
1.000000
2
24.00000
0.000000
3
0.000000
10.00000
4

0.000000
10.00000                              5
5.00000 还请高手指教;
不胜感激。。

ljwabc115 发表于 2009-8-11 16:14

Ranges in which the basis is unchanged:

                                      Objective Coefficient Ranges
                                  Current        Allowable        Allowable
                Variable      Coefficient         Increase         Decrease
                   DESKS         60.00000         20.00000         4.000000
                  TABLES         30.00000         5.000000         INFINITY
                  CHAIRS         20.00000         2.500000         5.000000

                                           Righthand Side Ranges
                     Row          Current        Allowable        Allowable
                                      RHS         Increase         Decrease
                       2         48.00000         INFINITY         24.00000
                       3         20.00000         4.000000         4.000000
                       4         8.000000         2.000000         1.333333
                       5         5.000000         INFINITY         5.000000

ljwabc115 发表于 2009-8-11 16:15

自己分析吧

zsuzengli 发表于 2009-8-13 13:43

点击Lingo菜单下的子菜单Range就可以看到啦

心飞清山绿水 发表于 2009-8-13 16:33

按ctrl+R...................

心飞清山绿水 发表于 2009-8-13 16:38

或者在options里设置成price&ranges

心飞清山绿水 发表于 2009-8-13 16:40

或者在comand window 里输入range

xiaoguo 发表于 2009-9-6 17:35

点击Lingo菜单下的子菜单Range就可以看到

「流」。言 发表于 2011-8-19 20:24

{:soso_e100:}路过

蓝色琉璃 发表于 2011-8-19 21:09

路过。。。。。
页: [1] 2
查看完整版本: 请教 lingo小程序 如何设置灵敏度分析