请教 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 还请高手指教;
不胜感激。。 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 自己分析吧 点击Lingo菜单下的子菜单Range就可以看到啦 按ctrl+R................... 或者在options里设置成price&ranges 或者在comand window 里输入range 点击Lingo菜单下的子菜单Range就可以看到 {:soso_e100:}路过 路过。。。。。
页:
[1]
2