怎样用LINGO表示
发布网友
发布时间:2022-03-26 19:44
我来回答
共1个回答
热心网友
时间:2022-03-26 21:13
sets:
si/1..8/:a;
sj/1..10/:b;
sij(si,sj):x,m;
endsets
min=@sum(sij:x*m)+80+100;
@for(si(i):@sum(sj(j):x(i,j))=a(i));
@for(sj(j):@sum(si(i):x(i,j))=b(j));
@for(sj(j)|j#le#2:@sum(si(i)|i#le#6:x(i,j))<=60);
@sum(sj(j)|j#ge#3:x(7,j))<=@sum(si(i)|i#le#6:x(i,1));
@sum(sj(j)|j#ge#3#and#j#le#8:x(7,j))<=@sum(si(i)|i#le#6:x(i,2));