lingo里面的错误代码11,帮忙看看哪里错了,SETS:\x05QUARTERS1/1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21/:S,N;QUARTERS2/1,2,3,4/:A;ENDSETSMAX=@SUM(QUARTERS1:A(J)*(C-C*N(I)-C*S(I));(C-C*N(I))#GT#400DATA:S=5,4.8,4.6,4.4,4.2,4,3.8,
来源:学生作业帮助网 编辑:六六作业网 时间:2024/09/08 14:45:32
lingo里面的错误代码11,帮忙看看哪里错了,SETS:\x05QUARTERS1/1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21/:S,N;QUARTERS2/1,2,3,4/:A;ENDSETSMAX=@SUM(QUARTERS1:A(J)*(C-C*N(I)-C*S(I));(C-C*N(I))#GT#400DATA:S=5,4.8,4.6,4.4,4.2,4,3.8,
lingo里面的错误代码11,帮忙看看哪里错了,
SETS:
\x05QUARTERS1/1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21/:S,N;
QUARTERS2/1,2,3,4/:A;
ENDSETS
MAX=@SUM(QUARTERS1:A(J)*(C-C*N(I)-C*S(I));
(C-C*N(I))#GT#400
DATA:
S=5,4.8,4.6,4.4,4.2,4,3.8,3.6,3.4,3.2,3,2.8,2.6,2.4,2.2,2,1.8,1.6,1.4,1.2,1;
N=0,0.0051,0.0104,0.0159,0.0217,0.0277,0.0341,0.0408,0.0479,0.0555,0.0635,0.0721,0.0813,0.0912,0.1020,0.1139,0.1270,0.1416,0.1582,0.1773,0.2000;
A=20,18,15,0;
ENDDATA
END
lingo里面的错误代码11,帮忙看看哪里错了,SETS:\x05QUARTERS1/1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21/:S,N;QUARTERS2/1,2,3,4/:A;ENDSETSMAX=@SUM(QUARTERS1:A(J)*(C-C*N(I)-C*S(I));(C-C*N(I))#GT#400DATA:S=5,4.8,4.6,4.4,4.2,4,3.8,
model:
SETS:
QUARTERS1/1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21/:S,N;
QUARTERS2/1,2,3,4/:A;
link(QUARTERS1,QUARTERS2);
ENDSETS
DATA:
S=5,4.8,4.6,4.4,4.2,4,3.8,3.6,3.4,3.2,3,2.8,2.6,2.4,2.2,2,1.8,1.6,1.4,1.2,1;
N=0,0.0051,0.0104,0.0159,0.0217,0.0277,0.0341,0.0408,0.0479,0.0555,0.0635,0.0721,0.0813,0.0912,0.1020,0.1139,0.1270,0.1416,0.1582,0.1773,0.2000;
A=20,18,15,0;
ENDDATA
MAX=@SUM(link(i,j):A(J)*(C-C*N(I)-C*S(I)));
END
这样就对了
但是你那句 (C-C*N(I))#GT#400
可能是没有写完,我不知道你想要的意思 ,所以你先补完整到底是什么操作.
ps:求采纳!