新手 求助lingo中出现 unable to open file? 有哪些原因
excel已在文档在e盘下model:sets:department/1..92/;type/1..20/;a/1..92/:c;benefit(department,t...
excel已在文档在e盘下
model:
sets:
department/1..92/;
type/1..20/;
a/1..92/:c;
benefit(department,type):d,x;
endsets
min=@sum(benefit(i,j):d(i,j)*x(i,j));
@for(benefit:@bin(x));
@for(department(i):
@sum(type(j):x(i,j))=1);
@for(type(j):(6.225-@sum(a(i):x(i,j)*c(i)))<1.9);
@for(type(j):(6.225-@sum(a(i):x(i,j)*c(i)))>-1.9);
@for(type(i):x(i,i)=1);
data:
d=@ole('e:/Book3.xls',dataq);
c=@ole('e:/ Book3.xls',dataw);
enddata
end 展开
model:
sets:
department/1..92/;
type/1..20/;
a/1..92/:c;
benefit(department,type):d,x;
endsets
min=@sum(benefit(i,j):d(i,j)*x(i,j));
@for(benefit:@bin(x));
@for(department(i):
@sum(type(j):x(i,j))=1);
@for(type(j):(6.225-@sum(a(i):x(i,j)*c(i)))<1.9);
@for(type(j):(6.225-@sum(a(i):x(i,j)*c(i)))>-1.9);
@for(type(i):x(i,i)=1);
data:
d=@ole('e:/Book3.xls',dataq);
c=@ole('e:/ Book3.xls',dataw);
enddata
end 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询