model:
sets:
x/1..1000/:hyh;
y/1..100/:dvd;
s(x,y):d,A;
endsets
data:
[email=A=@ole(]A=@ole('pianaidu.xls','myd'[/email]);
[email=dvd=@ole(]dvd=@ole('pianaidu.xls','dvdsl'[/email]);
[email=!@ole(]!@ole('pianaidu.xls','jieguo')=d[/email];不懂你这句是何用意
enddata
[email=max=@sum(s:d*A]max=@sum(s:d*A[/email]);
@for(s(i,j)bin(d(i,j)));
@for(x(i):
@sum(y(j):d(i,j))<=3;
@sum(y(j):d(i,j))>=2;
);
@for(y(j)sum(x(i):d(i,j))<=dvd(j));
end
我用10万个0,1区间的随机数模拟了你的结果,现在能运行了你大部分的错误为书写格式上的问题 |