Download XPRESS-MP USER GUIDE
Transcript
IFact(NF) ITime(NT+1) TABLES RMREQ(IProd,IRMat) ! ! MAXSELLT(IProd,ITime)! ! MAXPROD(IFact) ! SPT(IProd,ITime) ! ! RMPT(IRMat,ITime) ! VC(IProd,IFact) ! ! INIM(IRMat,IFact) ! ! INIP(IProd,IFact) ! ! SET DYNINDEX ! ! DISKDATA -s RMREQ = MAXSELLT = MAXPROD = SPT = RMPT = VC = INIM = INIP = (*3 requirement of product p for raw material r maximum amount of p that can be sold in period t maximum amount fact f can make selling price of product p in period t price of raw mat. r in period t variable cost of product p in factory f initial raw material r stock level in factory f initial final product p stock level in factory f set up the index names "on the fly" (*4 ! Read data in sparse format (*5 rmreq.dat maxsellt.dat maxprod.dat spt.dat rmpt.dat vc.dat inim.dat inip.dat VARIABLES sp(IProd,IFact,ITime) ! ! sm(IRMat,IFact,ITime) ! ! sell(IProd,IFact,ITime) ! ! manuf(IProd,IFact,ITime)! ! buy(IRMat,IFact,ITime) ! ! stock level of final product p in factory f at beg. of period t stock level of raw material r in factory f at start of period t amount of product p sold from factory f in period t amount of product p made in factory f in period t amount of raw material r bought for factory f in period t CONSTRAINTS max:SUM(p=IProd,f=IFact,t=ITime) SPT(p,t)*sell(p,f,t) -SUM(p=IProd,f=IFact,t=ITime) VC(p,f)*manuf(p,f,t) -SUM(r=IRMat,f=IFact,t=ITime) RMPT(r,t)*buy(r,f,t) -SUM(p=IProd,f=IFact,t=ITime) 2*sp(p,f,t) & & & &