模型如附件图片所示,编程如下,请高手帮忙检查下错误在哪,谢谢!
model:
sets:
variables/1..6/:s,x,t;
endsets
data:
t=3.25 7.25 8.25 4.5 5.75 8;
enddata
min=@sum(variables:t*s);
x(1)*s(1)+x(2)*s(2)+x(3)*s(3)<=705.5;
x(4)*s(4)+x(5)*s(5)+x(6)*s(6)<=357;
x(1)+x(4)<=738.5;
x(2)+x(5)<=227.5;
x(3)+x(6)<=182;
s(1)+s(4)>=1;
s(2)+s(5)>=1;
s(3)+s(6)>=1;
@for(variables:@bin(s));
end
用lingo求解结果一直显示1017,而且是雅克比溢出是什么意思?帮我看看...
所有符号必须是英文半角的 model:sets:variables\/1..6\/:s,x,t;endsets data:t=3.25 7.25 8.25 4.5 5.75 8;enddata min=@sum(variables:t*s);x(1)*s(1)+x(2)*s(2)+x(3)*s(3)<=705.5;x(4)*s(4)+x(5)*s(5)+x(6)*s(6)<=357;x(1)+x(4)<=738.5;x(2)...