【急】lingo程,为何提示错误missing right parenthesis
model:sets:ii/1..11/:x,xx,ry,money;endsetsdata:ry=12244896882432409292;s=15;money=102...
model:
sets:
ii/1..11/:x,xx,ry,money;
endsets
data:
ry=12 24 48 96 8 8 24 32 40 92 92;
s=15;
money=10200 15300 35000 63800 6900 10300 15300 22000 35000 43750 54700;
enddata
@sum(ii:x(i)*xx(i))>s;
@for(ii:x(i)*xx(i)<=x(i)*ry(i));
@for(ii:@gin(x(i)));
@for(ii:@gin(xx(i));
min=@sum(ii:x(i)*money(i)) 展开
sets:
ii/1..11/:x,xx,ry,money;
endsets
data:
ry=12 24 48 96 8 8 24 32 40 92 92;
s=15;
money=10200 15300 35000 63800 6900 10300 15300 22000 35000 43750 54700;
enddata
@sum(ii:x(i)*xx(i))>s;
@for(ii:x(i)*xx(i)<=x(i)*ry(i));
@for(ii:@gin(x(i)));
@for(ii:@gin(xx(i));
min=@sum(ii:x(i)*money(i)) 展开
1个回答
展开全部
model:
sets:
ii/1..11/:x,xx,ry,money;
endsets
data:
ry=12 24 48 96 8 8 24 32 40 92 92;
s=15;
money=10200 15300 35000 63800 6900 10300 15300 22000 35000 43750 54700;
enddata
@sum(ii:x*xx)>s;
@for(ii:x*xx<=x*ry);
@for(ii:@gin(x));
@for(ii:@gin(xx));
min=@sum(ii(i):x(i)*money(i));
sets:
ii/1..11/:x,xx,ry,money;
endsets
data:
ry=12 24 48 96 8 8 24 32 40 92 92;
s=15;
money=10200 15300 35000 63800 6900 10300 15300 22000 35000 43750 54700;
enddata
@sum(ii:x*xx)>s;
@for(ii:x*xx<=x*ry);
@for(ii:@gin(x));
@for(ii:@gin(xx));
min=@sum(ii(i):x(i)*money(i));
追问
求问程序是哪里有问题了,为啥我的就运行不出来呢
追答
集循环函数里面下标要么都写 要么不写
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询