lingo两次求和modelsets:p1/1..4/:b;p2/1..4/;link(p2,p1):x,v;endsetsdata:v=2800 4500 6000 73002800 4500 6000 7300 2800 4500 6000 7300 2800 4500 6000 7300 ;b=15,10,20,12;enddatamin=@sum(link:x*v);@sum(p1(i):(@sum p2(j):x(i,j)))
来源:学生作业帮助网 编辑:作业帮 时间:2024/09/03 02:42:33
![lingo两次求和modelsets:p1/1..4/:b;p2/1..4/;link(p2,p1):x,v;endsetsdata:v=2800 4500 6000 73002800 4500 6000 7300 2800 4500 6000 7300 2800 4500 6000 7300 ;b=15,10,20,12;enddatamin=@sum(link:x*v);@sum(p1(i):(@sum p2(j):x(i,j)))](/uploads/image/z/749307-3-7.jpg?t=lingo%E4%B8%A4%E6%AC%A1%E6%B1%82%E5%92%8Cmodelsets%3Ap1%2F1..4%2F%3Ab%3Bp2%2F1..4%2F%3Blink%28p2%2Cp1%29%3Ax%2Cv%3Bendsetsdata%3Av%3D2800+4500+6000+73002800+4500+6000+7300+2800+4500+6000+7300+2800+4500+6000+7300+%3Bb%3D15%2C10%2C20%2C12%3Benddatamin%3D%40sum%28link%3Ax%2Av%29%3B%40sum%28p1%28i%29%3A%28%40sum+p2%28j%29%3Ax%28i%2Cj%29%29%29)
lingo两次求和modelsets:p1/1..4/:b;p2/1..4/;link(p2,p1):x,v;endsetsdata:v=2800 4500 6000 73002800 4500 6000 7300 2800 4500 6000 7300 2800 4500 6000 7300 ;b=15,10,20,12;enddatamin=@sum(link:x*v);@sum(p1(i):(@sum p2(j):x(i,j)))
lingo两次求和
model
sets:
p1/1..4/:b;
p2/1..4/;
link(p2,p1):x,v;
endsets
data:
v=2800 4500 6000 7300
2800 4500 6000 7300
2800 4500 6000 7300
2800 4500 6000 7300 ;
b=15,10,20,12;
enddata
min=@sum(link:x*v);
@sum(p1(i):(@sum p2(j):x(i,j)))
lingo两次求和modelsets:p1/1..4/:b;p2/1..4/;link(p2,p1):x,v;endsetsdata:v=2800 4500 6000 73002800 4500 6000 7300 2800 4500 6000 7300 2800 4500 6000 7300 ;b=15,10,20,12;enddatamin=@sum(link:x*v);@sum(p1(i):(@sum p2(j):x(i,j)))
看看是不是这样.
model:
sets:
p1/1..4/:b;
p2/1..4/;
link(p2,p1):x,v;
endsets
data:
v=2800 4500 6000 7300
2800 4500 6000 7300
2800 4500 6000 7300
2800 4500 6000 7300 ;
b=15,10,20,12;
enddata
min=@sum(link:x*v);
@for(p1(i):@sum(p2(j):x(i,j))