<< Chapter < Page Chapter >> Page >
As an example of a reorder problem we consider an electronic store which reorders a certain type of unit on a regular weekly basis. Two possible actions: 1. Order two units, at a cost of $150 each; 2. Order four units, at a cost of $120 each. An optimal demand policy, based on sales the previous week is sought.

A reorder problem

An electronic store stocks a certain type of DVD player. At the end of each week, an order is placed for early delivery the following Monday. A maximum of fourunits is stocked. Let the states be the number of units on hand at the end of the sales week: E = { 0 , 1 , 2 , 3 , 4 } . Two possible actions:

  • Order two units, at a cost of $150 each
  • Order four units, at a cost of $120 each

Units sell for $200. If demand exceeds the stock in hand, the retailer assumes a penalty of $40 per unit (in losses due to customer dissatisfaction, etc.).Because of turnover, return on sales is considered two percent per week, so that discount is α = 1 / 1 . 02 on a weekly basis.

In state 0, there are three possible actions: order 0, 2, or 4. In states 1 and 2 there are two possible actions: order 0 or 2. In states 3 and 4, the only actionis to order 0. Customer demand in week n + 1 is represented by a random variable D n + 1 . The class is iid, uniformly distributed on the values 0, 1, 2, 3, 4. If X n is the state at the end of week n , then { X n , D n + 1 } is independent for each n .

Analyze the system as a Markov decision process with type 3 gains, depending upon current state, action, and demand. Determine the transition probability matrixPA (properly padded) and the gain matrix (also padded). Sample calculations are as follows:

State 0, action 0: p 00 ( 0 ) = 1 (all other p 0 k ( 0 ) = 0 State 0, action 2: p 00 ( 2 ) = P ( D 2 ) = 3 / 5 , p 01 ( 2 ) = P ( D = 1 ) = 1 / 5 , etc. State 2, action 2: p 2 j ( k ) = 1 / 5 , k = 0 , 1 , 2 , 3 , 4

For state = i , action = a , and demand = k , we seek g ( i , a , k )

g ( 0 , 0 , k ) = - 40 k 0 -40 -80 -120 -160 g ( 0 , 2 , k ) = - 300 + 200 min { k , 2 } - 40 max { k - 2 , 0 } -300 -100 100 60 20 g ( 0 , 4 , k ) = - 480 + 200 k -480 -280 -80 120 320

  1. Complete the transition probability table and the gain table.
  2. Determine an optimum infinite-horizon strategy with no discounting.
  3. Determine an optimum infinite-horizon strateby with discounting (alpha = 1/1.02).
  4. The manager decides to set up a six-week strategy, after which new sales conditions may be established. Determine an optimum strategy for the six-week period.

Data file

% file orderdata.m % Version of 4/5/94% Data organized for computation type = 3;states = 0:4; = [0 2 4 ... % Actions (padded)0 2 02 ... 0 2 02 ...0 00 00 ... 0 00 00]; C = [0 -300 -480 ... % Order costs (padded)0 -300 -300 ... 0 -300 -300 ...0 0 0 ... 0 0 0]; SP = 200; % Selling priceBP = 40; % Backorder penalty PD = 0.2*ones(1,5); % Demand probabilities

Transition probabilities and gains

The procedure

% file reorder.m % Version of 4/11/94% Calculates PA and GA for reorder policy states = input('Enter row vector of states ');A = input('Enter row vector A of actions (padded) '); C = input('Enter row vector C of order costs (padded) ');D = input('Enter row vector D of demand values '); PD = input('Enter row vector PD of demand probabilities ');SP = input('Enter unit selling price SP '); BP = input('Enter backorder penalty cost BP ');m = length(states'); q = length(A);na = q/m; N = length(D);S = ones(na,1)*states; S = S(:)';[d,s] = meshgrid(D,S);a = A'*ones(1,N); ca = C'*ones(1,N);TA = (s + a - d).*(s + a - d>= 0); for i = 1:qPA(i,:) = tdbn(states,TA(i,:),PD); endPA GA = ca + SP*d - (SP + BP)*(d -s -a).*(d>s+a)

Questions & Answers

what are components of cells
ofosola Reply
twugzfisfjxxkvdsifgfuy7 it
Sami
58214993
Sami
what is a salt
John
the difference between male and female reproduction
John
what is computed
IBRAHIM Reply
what is biology
IBRAHIM
what is the full meaning of biology
IBRAHIM
what is biology
Jeneba
what is cell
Kuot
425844168
Sami
what is biology
Inenevwo
what is cytoplasm
Emmanuel Reply
structure of an animal cell
Arrey Reply
what happens when the eustachian tube is blocked
Puseletso Reply
what's atoms
Achol Reply
discuss how the following factors such as predation risk, competition and habitat structure influence animal's foraging behavior in essay form
Burnet Reply
cell?
Kuot
location of cervical vertebra
KENNEDY Reply
What are acid
Sheriff Reply
define biology infour way
Happiness Reply
What are types of cell
Nansoh Reply
how can I get this book
Gatyin Reply
what is lump
Chineye Reply
what is cell
Maluak Reply
what is biology
Maluak
what is vertibrate
Jeneba
what's cornea?
Majak Reply
what are cell
Achol
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Topics in applied probability. OpenStax CNX. Sep 04, 2009 Download for free at http://cnx.org/content/col10964/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Topics in applied probability' conversation and receive update notifications?

Ask