数学建模社区-数学中国

标题: 请教 lingo小程序 如何设置灵敏度分析 [打印本页]

作者: 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
路过
作者: 蓝色琉璃    时间: 2011-8-19 21:09
路过。。。。。
作者: 492133212    时间: 2011-8-19 21:17
逛逛看看、、、、、、
作者: 492133212    时间: 2011-8-19 21:17
再来一次、、、、、、
作者: 飘逸天使    时间: 2011-8-21 22:24
大侠指导一下
作者: 一哥    时间: 2012-1-26 20:42
超有用诶!!谢谢楼上各位好人!!
作者: xycnbaobao    时间: 2012-2-4 17:55
一起交流!对这个话题感兴趣的朋友们
作者: shineboycw    时间: 2012-2-6 11:32
路过~~~~~~
作者: melissa513    时间: 2012-8-14 15:58
正好学到这里
作者: do4    时间: 2012-8-15 12:29
路过来看看~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
作者: lillianxiong    时间: 2012-8-24 21:54
这个要自己分析的,网上找找,我记得有一篇关于什么蛋白质饲料的东西挺好
作者: sl1101230118    时间: 2013-1-27 20:44
菜单->Lingo->Range  或者 Ctrl+R




欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) Powered by Discuz! X2.5