谁能帮我看下lingo编的程序哪里错了?model:sets:n/1..8/:;m/1..30/:x,y,t,q; ajz(n,m):a,b;endsetsdata:x=3,1,5,4,3,0,7,9,10,14,17,14,12,10,19,2,6,11,15,7,22,21,27,15,15,20,21,24,25,28;y=2,5,4,7,11,8,9,6,2,0,3,6,9,12,9,16,18,17,12,14,5,0,9,19,
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/14 14:52:13
谁能帮我看下lingo编的程序哪里错了?model:sets:n/1..8/:;m/1..30/:x,y,t,q; ajz(n,m):a,b;endsetsdata:x=3,1,5,4,3,0,7,9,10,14,17,14,12,10,19,2,6,11,15,7,22,21,27,15,15,20,21,24,25,28;y=2,5,4,7,11,8,9,6,2,0,3,6,9,12,9,16,18,17,12,14,5,0,9,19,
谁能帮我看下lingo编的程序哪里错了?
model:
sets:
n/1..8/:;
m/1..30/:x,y,t,q;
ajz(n,m):a,b;
endsets
data:
x=3,1,5,4,3,0,7,9,10,14,17,14,12,10,19,2,6,11,15,7,22,21,27,15,15,20,21,24,25,28;y=2,5,4,7,11,8,9,6,2,0,3,6,9,12,9,16,18,17,12,14,5,0,9,19,14,17,13,20,16,18;t=8,8.2,6,5.5,4.5,3,7.2,2.3,1.4,6.5,4.1,12.7,5.8,3.8,3.4,3.5,5.8,7.5,7.8,4.6,6.2,6.8,2.4,7.6,9.6,10,12,6,8.1,4.2;
enddata
min=@sum(ajz:2*b(i,j)*x(q(j))+y(q(j)));
@for(m(j):@sum(n(i):a(i,j))=1);
@for(n(i):@sum(m(j):t(j)*a(i,j))=0));
@for(n(i):@sum(m(j):b(i,j))=1);
@for(n(i):1/6*@sum(m(j):a(i,j))+2*b(i,j)*(x(q(j))+y(q(j)))/25
谁能帮我看下lingo编的程序哪里错了?model:sets:n/1..8/:;m/1..30/:x,y,t,q; ajz(n,m):a,b;endsetsdata:x=3,1,5,4,3,0,7,9,10,14,17,14,12,10,19,2,6,11,15,7,22,21,27,15,15,20,21,24,25,28;y=2,5,4,7,11,8,9,6,2,0,3,6,9,12,9,16,18,17,12,14,5,0,9,19,
最好贴出模型,
代码没有语法错误