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
lingoerror11,我的lingo程序运行有错model:sets:rural/AlA2A3A4/:A,B;warhouse/W1W2W3/:G;city/C1C2C3C4C5/:R,D;tr/

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 你敢改一下吗

最后解题时运行LINGO出现错误,error code108,我用的LINGO11.0,应该不是版本低吧?具体程序如下MODEL:SETS:SHOP/1..8/;FACTORY/1..3/;CANGKU/1..5/:KRL;WUZI/1..10/:TJ,KCF,ZXQL,Q,N;LINKS(SHOP,WUZI):XQL;LINKS1(FACTORY,WUZI):NCL,DJ,X;LIN 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 code 108是什么意思?如题 可否帮我解答 lingo error 11 我才按下Solve,他就在DATA里的部分显示出11的我才按下Solve,他就在DATA里的部分显示出11的错误码,而且指出的部分是我在SET里设定的变数,不知道问题出在哪里? 他标示 解释一下LINGO的错误11.INVALID INPUT.A SYNTAX ERROR HAS OCCURRED.This is the generic error issued by the LINGO compiler when it detects a syntax error.In Windows,when you close the error box,the cursor will be on the line where the error occurr 有会用LINGO软件的吗,我需要一道题用LINGO求解. lingo中使用括号 为什么提示语法错误?lingo中老显示我的括号有语法错误, 房lin的lin怎么写啊 帮我看看这段lingo代码,我不明白为什么一直出现error code11的错误MODEL: SETS: QUARTERS/1,2,3,4/:DEM,RP,OP,INV; ENDSETS MIN=@sum{QUARTERS:400*RP(i)+450*OP+20*INV}; @FOR{QUARTERS{I}:RP{I} lingo里的@是什么意思? 函数的最大值 lingo LINGO的灵敏度分析 lin的意思 Lin的意思 用lin 给我组词注意,lin 是中国拼音,不是英语 ,、最好是四字的词, lin Lin 我叫玲请给我一个a开头的lin字在内的英文名我叫玲请给我一个a开头的lin字在内的英文,