早教吧 育儿知识 作业答案 考试题库 百科 知识分享

用Lingo 进行预算时,输出结果没有 reduced cost 和dual price列,为什么程序如下:model:sets:supply/1..7/:p,s,t;need/1..15/:L,R,b;links(supply,need):c,x;endsetsdata:p=160 155 155 160 155 150 160;s=800 800 1000 2000 2000 2000 3000;b=10

题目详情
用Lingo 进行预算时,输出结果没有 reduced cost 和dual price列,为什么
程序如下:model:
sets:
supply/1..7/:p,s,t;
need/1..15/:L,R,b;
links(supply,need):c,x;
endsets
data:
p=160 155 155 160 155 150 160;
s=800 800 1000 2000 2000 2000 3000;
b=104,301,750,606,194,205,201,680,480,300,220,210,420,500,;
c=170.7 160.3 140.2 98.6 38.0 20.5 3.1 21.2 64.2 92.0 96.0 106.0 121.2 128.0 142.0
215.7 205.3 190.2 171.6 111.0 95.5 86.0 71.2 114.2 142.0 146.0 156.0 171.2 178.0 192.0
230.7 220.3 200.2 181.6 121.0 105.5 96.0 86.2 48.2 82.0 86.0 96.0 111.2 118.0 132.0
260.7 250.3 235.2 216.6 156.0 140.5 131.0 116.2 84.2 62.0 51.0 61.0 76.2 83.0 97.0
255.7 245.3 225.2 206.6 146.0 130.5 121.0 111.2 79.2 57.0 33.0 51.0 71.2 73.0 87.0
265.7 255.3 235.2 216.6 156.0 140.5 131.0 121.2 84.2 62.0 51.0 45.0 26.2 11.0 28.0
275.7 265.3 245.2 226.6 166.0 150.5 141.0 131.2 99.2 77.0 66.0 56.0 38.2 26.0 2.0;
enddata
min=@sum(links(i,j):(p(i)+c(i,j))*x(i,j))+0.05*@sum(need(j):L(j)^2+L(j)+R(j)^2+R(j));
@for(supply(i):@sum(need(j):x(i,j))>=500*t(i));
@for(supply(i):@sum(need(j):x(i,j))
▼优质解答
答案和解析
整数规划不能进行灵敏度分析 除非你去掉整数限制
看了 用Lingo 进行预算时,输...的网友还看了以下: