当前位置 :
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,
1人问答
问题描述:

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

陈宏盛回答:
  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:求采纳!
最新更新
PC端 | 移动端 | mip端
字典翻译(zidianfy.com)汇总了汉语字典,新华字典,成语字典,组词,词语,在线查字典,中文字典,英汉字典,在线字典,康熙字典等等,是学生查询学习资料的好帮手,是老师教学的好助手。
声明:本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
电话:  邮箱:
Copyright©2009-2021 字典翻译 zidianfy.com 版权所有 闽ICP备2022014709号-7
lyric 頭條新聞