调用要有路径的~看看我编的行不?
model:
sets:
VIP/1..1000/;
disk/1..100/:d,t;
link(VIP,disk):s,x;
endsets
data:
d=@ole('D:\B2005.xls');
s=@ole('D:\B2005.xls');
@ole('D:\B2005.xls')=x;
enddata
max=@sum(link:s*x);
@for(disk(j):sum(VIP(i):x(i,j))<=d(j));
@for(VIP(i):sum(disk(j):x(i,j))=3);
@for(link:bin(x));
而且在excel里面要定义我程序里的d和s~
[ 本帖最后由 yangxh7 于 2007-8-31 20:22 编辑 ] |