<< Chapter < Page | Chapter >> Page > |
The manager of a department store is planning for the holiday season. A certain item costs c dollars per unit and sells for p dollars per unit. If the demand exceeds the amount m ordered, additional units can be special ordered for s dollars per unit ( ). If demand is less than amount ordered, the remaining stock can be returned (or otherwise disposed of) at r dollars per unit ( ). Demand D for the season is assumed to be a random variable with Poisson distribution. Suppose . What amount m should the manager order to maximize the expected profit?
PROBLEM FORMULATION
Suppose D is the demand and X is the profit. Then
It is convenient to write the expression for X in terms of I M , where . Thus
Then .
ANALYTIC SOLUTION
For Poisson ,
Hence,
Because of the discrete nature of the problem, we cannot solve for the optimum m by ordinary calculus. We may solve for various m about and determine the optimum. We do so with the aid of MATLAB and the m-function cpoisson.
mu = 50;
c = 30;p = 50;
s = 40;r = 20;
m = 45:55;EX = (p - s)*mu + m*(s -c) + (s - r)*mu*(1 - cpoisson(mu,m)) ...
-(s - r)*m.*(1 - cpoisson(mu,m+1));disp([m;EX]')45.0000 930.8604
46.0000 935.523147.0000 939.1895
48.0000 941.796249.0000 943.2988
50.0000 943.6750 % Optimum m = 5051.0000 942.9247
52.0000 941.069953.0000 938.1532
54.0000 934.234755.0000 929.3886
A direct, solution may be obtained by MATLAB, using finite approximation for the Poisson distribution.
APPROXIMATION
ptest = cpoisson(mu,100) % Check for suitable value of n
ptest = 3.2001e-10n = 100;
t = 0:n;pD = ipoisson(mu,t);
for i = 1:length(m) % Step by step calculation for various mM = t>m(i);
G(i,:) = t*(p - r) - M.*(t - m(i))*(s - r)- m(i)*(c - r);end
EG = G*pD'; % Values agree with theoretical to four deicmals
An advantage of the second solution, based on simple approximation to D , is that the distribution of gain for each m could be studied — e.g., the maximum and minimum gains.
—
Suppose the pair has joint density on the triangular region bounded by , , (see [link] ). Let . Determine .
APPROXIMATION
tuappr
Enter matrix [a b]of X-range endpoints [-1 1]
Enter matrix [c d]of Y-range endpoints [0 1]
Enter number of X approximation points 400Enter number of Y approximation points 200
Enter expression for joint density 3*u.*(u<=min(1+t,1-t))
Use array operations on X, Y, PX, PY, t, u, and PG = t.^2 + 2*t.*u; % g(X,Y) = X^2 + 2XY
EG = total(G.*P) % E[g(X,Y)]EG = 0.1006 % Theoretical value = 1/10
[Z,PZ]= csort(G,P); % Distribution for Z
EZ = Z*PZ' % E[Z]from distribution
EZ = 0.1006
Notification Switch
Would you like to follow the 'Applied probability' conversation and receive update notifications?