看看这个lingo程序哪里出错了?
model:
sets:
de/1..8/:x,y;
fe/1..5/:f;
link(fe,de):W;
endsets
data:
x=5 7 5 4 6 5 5 3;
y=25 36 32 15 31 28 22 12;
L=20;
enddata
min=@sum(de:x*w(1,j))+@sum(de:x*w(2,j))+@sum(de:x*w(3,j))+@sum(de:x*w(4,j))+@sum(de:x*w(5,j))+0.66*Q^0.51*20;
@for(de:@bin(w(i,j)));
w(1,1)+w(2,1)+w(3,1)+w(4,1)+w(5,1)
人气:438 ℃ 时间:2020-05-20 18:30:50
解答
model:
sets:
de/1..8/:x,y;
fe/1..5/:f;
link(fe,de):W;
endsets
data:
x=5 7 5 4 6 5 5 3;
y=25 36 32 15 31 28 22 12;
L=20;
enddata
min=@sum(link(i,j):x(1)*w(1,j))+@sum(link(i,j):x(2)*w(2,j))+@sum(link(i,j):x(3)*w(3,j))+@sum(link(i,j):x(4)*w(4,j))+@sum(link(i,j):x(5)*w(5,j))+
0.66*Q^0.51*20;
@for(link(i,j):@bin(w(i,j)));
w(1,1)+w(2,1)+w(3,1)+w(4,1)+w(5,1)
推荐
猜你喜欢
- 高高的葡萄架上垂下几串成熟的葡萄. 缩句
- 简便算法:7.3×1.5+0.6×7.3-7.3×0.1
- 大、小圆的面积和是125.6平方厘米,大圆周长是小圆周长的3倍,大圆和小圆的面积各是多少平方厘米?
- A,B表示两个数,定义表示A※B=2分之A+B,求【1※9】※的值.
- We were neighbours for three years,during which time we met only twice.是否对
- 1.Mr Wang was choosen to ()our school at the meeting represent stand for on behalf of 这3个
- 将1,-1,2,-2从按右侧方式排列,若规定(m,n)表示第m排从左向右数第n个数,则(4,2)与(10,3)
- 方程2x-20+x=400