综合讨论版 #75712 层

Multi-product Newsboy inventory model, with substi

楼主 · 1 楼
MODEL:
! Multi-product Newsboy inventory model, with substitution, diversion, or spill. For each product, calculate the optimal order up to stock level, S;
SETS:
PROD/ G1 G2 SPOT/: C, V, H, S;
PXP( PROD, PROD): FRAC, TC;
SCEN/1..6/: PROB, PROF;
SXP( SCEN, PROD): DEM, U, I;
SXPXP( SCEN, PROD, PROD): T;
ENDSETS
DATA:
! Cost data for 1 Gig and 2 Gig disk drives.
Third product is outside spot market;
V = 20 30 0; ! Revenue/unit sold;
C = 140 200 0; ! Cost/unit stocked;
H = -30 -30 0; ! Holding cost/unit unused;
! The diversion matrix. FRAC( PR, PX) = upper limit on fraction of product PX unsatisfied demand that can be satisfied by product PR;
FRAC = 1 0 0 ! Upper limits on;
.66667 1 0 ! substitution fractions;
1 1 1; ! Sum over col should be >= 1;
! Transfer costs. TC( PR, PX) = cost per unit of satisfying a type PX demand with a type PR product;
TC =
0 0 0 ! Cost of transferring;
0 0 0 ! or substituting one;
190 250 0; ! product for another;
! The demand scenarios. 3rd product takes care of unsatisfied demand;
DEM = 2100 3300 0
900 2710 0
1890 2256 0
1994 1840 0
2442 2334 0
1509 2654 0;
! Prob of each scenario;
! (They are equally likely);
PROB = .166667 .166667 .166667
.166667 .166667 .166667;
ENDDATA
!--------------------------------------------------;
! Maximize expected profit;
MAX = @SUM( SCEN( SC): PROB( SC) * PROF( SC));
! For each scenario;
@FOR( SCEN( SC):
! profit = revenues - acquisition cost - holding cost - transfer costs;
! T( SC, PR, PX) = units of type PX demand satisfied by a type PR product;
PROF( SC) =
@SUM( PROD( PR):
V( PR) * @SUM( PROD( PX): T( SC, PX, PR))
- C( PR) * S( PR)
- H( PR) * I( SC, PR)
- @SUM( PROD( PX):
TC( PR, PX) * T( SC, PR, PX)));
@FREE( PROF( SC));
@FOR( PROD( PR):
! Stock = inventory left + sent to various products;
S( PR) = I( SC, PR) + @SUM( PROD( PX):
T( SC, PR, PX));
! Directly satisfied + unsatisfied = original demand;
T( SC, PR, PR) + U( SC, PR) = DEM( SC, PR);
! Unsatisfied demand must be covered from somewhere;
U( SC, PR) = @SUM( PROD( PX)| PX #NE# PR:
T( SC, PX, PR));
! Cannot send too much to any one place;
@FOR( PROD( PX)| PX #NE# PR:
T( SC, PX, PR) <= FRAC( PX, PR) * U( SC, PR);
! In case users find it confusing to transfer fractional items;
@GIN( T( SC, PR, PX));
);
);
);
END
看不明白。 Multi-product Newsboy inventory model, with substitution, diversion, or spill. For each product, calculate the optimal order up to stock level, S;是什么意思啊。是什么模型
2 楼
决定在库水准的模型

75742^x=1+x^2 实根个数? 75743個實根? 75743个。设y=2^x-x^2-1,显然0,1均为其根,此外,f(4)=-1<0,f(5)=6>0,由零点定理,在(4,5)之间至少有一根,事实上只有一根。所以共3个根。见附件。