model:
sets:
workers/w1..w7/;
jobs/j1..j7/;
links(workers,jobs):cost,volume;
endsets
min=@sum(links:cost*volume);
@for(workers(i):
@sum(jobs(j):volume(i,j))=1;
);
@for(jobs(J):
@sum(workers(I): volume(I,J))=1;
);
data:
cost=@ole('data.xlsx',cost);
@ole('data.xlsx',result)
enddata
end
就这个里面怎样将min的值传给@ole('data.xlsx',result),如果直接把min的值赋给它,还出现下面图片所示的错误,好像是因为min是一个函数,不能被直接赋值,求帮忙解答!