本问题是DVD在线租赁的策划问题,涉及到网站对DVD流通的预测与运筹,其关键问题是市场运行管理中怎样预测DVD最小购买量与如何健全租赁体制的问题,以提高客户服务系统中会员的满意度指数。
i100/1..100/:k;
j20/1..20/:b;
link(i100,j20):a,x,w,y;
endsets
max=@sum(link(i,j):x(i,j)*w(i,j));
@for(link(i,j):@bin(x));
@for(i100:@bin(k));
@for(link:@free(y));
@for(link(i,j):y(i,j)=@if(a(i,j)#eq#0,-1,a(i,j)));
@for(link(i,j):w(i,j)=@if(y(i,j)#eq#-1,0,1/y(i,j)));
@for(i100(i):@sum(j20(j):x(i,j))=3*k(i));
@for(j20(j):@sum(i100(i):x(i,j))<=b(j));
data:
a=D2005Table2
b=8 1 22 10 8 40 40 1 8 15 19 20 10 2 5 8 30 10 8 38; enddata
end
4、Program4.lg4
model:
sets:
i100/1..100/:k,k1;
j20/1..20/:b;
link(i100,j20):a,x,x2,q,y;
endsets
min=0.5*@sum(j20:b)-0.5*@sum(link:x*q)-x4;
xhl=@sum(link:x *q);
x1=@sum(j20:b);
!ab=@sum(link:q*@if(k(i)#eq#1,0,x(i,j)));
@for(link(i,j):@bin(x));
@for(link(i,j):@bin(x2));
@for(j20:@gin(b));
@for(i100:@bin(k));
@for(i100:@bin(k1));
@for(link:@free(y));
@for(link(i,j):y(i,j)=@if(a(i,j)#eq#0,-1,a(i,j)));
@for(link(i,j):q(i,j)=@if(y(i,j)#eq#-1,0,1/y(i,j)));
@for(i100(i):@sum(j20(j):x(i,j))=3*k(i));
@for(j20(j):@sum(i100(i):x(i,j))=b(j));
@sum(link:x)+0.6*@sum(link:x)>=285;
@for(i100(i)|i#gt#60:k1(i)=1);
x4=@sum(link(i,j)|i#gt#60:x2(i,j)*q(i,j));
13