请高手帮忙看下这个lingo程序哪里出错了?急~

modelsets:myset/1..8/:T,S;myset1/1..3/:L;link(myset1,myset):x;endsetsdata:T=253632153... model
sets:
myset/1..8/: T,S;
myset1/1..3/: L;
link(myset1,myset): x;
endsets
data:
T=25 36 32 15 31 28 22 12
S=5 7 5 4 6 5 5 3
enddata
min=0.66*Q^0.51*20+@sum(myset(j):myset1(i):(@sum(x(i,j))));
@sum(myset1(i):L(i))=20;
@sum(myset(j):x(1,j)*S(j))>150-34.19483;
@sum(myset(j):0.9*x(1,j)*S(j))+@sum(myset(j):x(2,j)*S(j))>160-26.67916;
@sum(myset(j):0.81*x(1,j)*S(j))+@sum(myset(j):0.9*x(2,j)*S(j))<170-23.34196;
@sum(myset(j):0.729x(1,j)*S(j))+)+@sum(myset(j):0.81*x(2,j)*S(j))+@sum(myset(j):0.9x(3,j)*S(j))+Q<180-20.00486;
@sum(myset(j):0.6561x(1,j)*S(j))+)+@sum(myset(j):0.729*x(2,j)*S(j))+@sum(myset(j):0.81x(3,j)*S(j))+Q<190-17.8748556;
@sum(myset(j):T(j)*x(1,j))+0.66*Q^0.51*L1<=60;
@sum(myset(j):T(j)*x(2,j))+0.66*Q^0.51*L2<=60;
@sum(myset(j):T(j)*x(3,j))+0.66*Q^0.51*L3<=60;
@for(link(i,j):@bin(x));
@for(myset1(i):@gin(0.66*Q^0.51*L(i)));
Q>=100;

end
展开
 我来答
kiddyse
2010-08-20 · TA获得超过697个赞
知道小有建树答主
回答量:691
采纳率:100%
帮助的人:534万
展开全部
model:!少了分号;
sets:
myset/1..8/: T,S;
myset1/1..3/: L;
link(myset1,myset): x;
endsets
data:
T=25 36 32 15 31 28 22 12;!这里缺少一个分号;
S=5 7 5 4 6 5 5 3; !这里缺少一个分号;
enddata
min=0.66*Q^0.51*20+@sum(myset(j):myset1(i):(@sum(x(i,j))));!这里语法错,但是不是很清楚楼主的意思所以无法修改;
!因为这里无法修改,所以以下的程序也无法运行查错,建议楼主在问题补充里将以上错误改正再试试;
@sum(myset1(i):L(i))=20;
@sum(myset(j):x(1,j)*S(j))>150-34.19483;
@sum(myset(j):0.9*x(1,j)*S(j))+@sum(myset(j):x(2,j)*S(j))>160-26.67916;
@sum(myset(j):0.81*x(1,j)*S(j))+@sum(myset(j):0.9*x(2,j)*S(j))<170-23.34196;
@sum(myset(j):0.729x(1,j)*S(j))+)+@sum(myset(j):0.81*x(2,j)*S(j))+@sum(myset(j):0.9x(3,j)*S(j))+Q<180-20.00486;
@sum(myset(j):0.6561x(1,j)*S(j))+)+@sum(myset(j):0.729*x(2,j)*S(j))+@sum(myset(j):0.81x(3,j)*S(j))+Q<190-17.8748556;
@sum(myset(j):T(j)*x(1,j))+0.66*Q^0.51*L1<=60;
@sum(myset(j):T(j)*x(2,j))+0.66*Q^0.51*L2<=60;
@sum(myset(j):T(j)*x(3,j))+0.66*Q^0.51*L3<=60;
@for(link(i,j):@bin(x));
@for(myset1(i):@gin(0.66*Q^0.51*L(i)));
Q>=100;
end
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式