请高手帮忙看下这个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 展开
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 展开
展开全部
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
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
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询