lingo error 11,我的lingo程序运行有错 model:sets:rural/Al A2 A3 A4/:A,B;warhouse/W1 W2 W3/:G;city/C1 C2 C3 C4 C5/:R,D;tr/tr1 tr2 tr3/:Z;link1(rural,warhouse):C,L;link2(warhouse,city):H,S;link3 (city,warhouse):O,P;link4(warhouse,rural):E,F;ends
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/23 14:59:18
lingo error 11,我的lingo程序运行有错 model:sets:rural/Al A2 A3 A4/:A,B;warhouse/W1 W2 W3/:G;city/C1 C2 C3 C4 C5/:R,D;tr/tr1 tr2 tr3/:Z;link1(rural,warhouse):C,L;link2(warhouse,city):H,S;link3 (city,warhouse):O,P;link4(warhouse,rural):E,F;ends
lingo error 11,我的lingo程序运行有错
model:
sets:
rural/Al A2 A3 A4/:A,B;
warhouse/W1 W2 W3/:G;
city/C1 C2 C3 C4 C5/:R,D;
tr/tr1 tr2 tr3/:Z;
link1(rural,warhouse):C,L;
link2(warhouse,city):H,S;
link3 (city,warhouse):O,P;
link4(warhouse,rural):E,F;
endsets
data:
A=40000 70000 90000 60000;
B=60000 50000 70000 50000;
R=30000 60000 70000 50000 50000;
D=30000 40000 70000 60000 30000;
C=0.003 0.006 0.005
0.005 0.004 0.003
0.004 0.003 0.004
0.003 0.002 0.006;
L=60 80 70
80 50 60
100 60 40
70 30 50;
H=0.001 0.003 0.002 0.001 0.003
0.001 0.001 0.002 0.003 0.004
0.003 0.002 0.003 0.002 0.001;
S=120 90 100 130 150
200 250 180 170 150
140 160 170 200 100;
O=0.001 0.001 0.003
0.003 0.001 0.002
0.002 0.002 0.003
0.001 0.003 0.002
0.003 0.004 0.001;
P=120 200 140
90 250 160
100 180 170
130 170 200
150 150 100;
E=0.003 0.005 0.004 0.003
0.006 0.004 0.003 0.002
0.005 0.003 0.004 0.006;
F=60 80 100 70
80 50 60 30
70 60 40 50;
V=5;
q=0.01;
G=1 1.5 2;
Endda
min=@sum(link1(k,i):C(k,i)*L(k,i)*A(k)*Z(i))+@sum(link2(i,j):H(i,j)*S(i,j)*R(j)*Z(i))
+@sum(Iink1(k,i):A(k)*Z(i)*G(i))+@sum(link3(j,i):O(j,i)*P(j,i)*D(j)*Z(i))+
@sum(link4(i,k):E(i,k)*F(i,k)*B(k)*Z(i))+@sum(link3(j,i):D(j)*Z(i)*G(i))+
@sum(link2(i,j):R(j)*(1-(1-q)^S(i,j))*Z(i)*V);
@sum(rural(k):A(k))=@sum(city(j):R(j));
@sum(city(j):D(j))=@sum(rural(k):B(k));
@sum(tr(i):Z(i))=1;
@for(tr(i):@bin(Z));
end
这段程序用Lingo11或12运行后,出现这个提示,如图:
lingo error 11,我的lingo程序运行有错 model:sets:rural/Al A2 A3 A4/:A,B;warhouse/W1 W2 W3/:G;city/C1 C2 C3 C4 C5/:R,D;tr/tr1 tr2 tr3/:Z;link1(rural,warhouse):C,L;link2(warhouse,city):H,S;link3 (city,warhouse):O,P;link4(warhouse,rural):E,F;ends
说了前面应该说是enddata 你敢改一下吗