<< Chapter < Page Chapter >> Page >

An electronic store stocks a certain type of VCR. 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 b = { 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 case 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; A = [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

if three forces F1.f2 .f3 act at a point on a Cartesian plane in the daigram .....so if the question says write down the x and y components ..... I really don't understand
Syamthanda Reply
hey , can you please explain oxidation reaction & redox ?
Boitumelo Reply
hey , can you please explain oxidation reaction and redox ?
Boitumelo
for grade 12 or grade 11?
Sibulele
the value of V1 and V2
Tumelo Reply
advantages of electrons in a circuit
Rethabile Reply
we're do you find electromagnetism past papers
Ntombifuthi
what a normal force
Tholulwazi Reply
it is the force or component of the force that the surface exert on an object incontact with it and which acts perpendicular to the surface
Sihle
what is physics?
Petrus Reply
what is the half reaction of Potassium and chlorine
Anna Reply
how to calculate coefficient of static friction
Lisa Reply
how to calculate static friction
Lisa
How to calculate a current
Tumelo
how to calculate the magnitude of horizontal component of the applied force
Mogano
How to calculate force
Monambi
a structure of a thermocouple used to measure inner temperature
Anna Reply
a fixed gas of a mass is held at standard pressure temperature of 15 degrees Celsius .Calculate the temperature of the gas in Celsius if the pressure is changed to 2×10 to the power 4
Amahle Reply
How is energy being used in bonding?
Raymond Reply
what is acceleration
Syamthanda Reply
a rate of change in velocity of an object whith respect to time
Khuthadzo
how can we find the moment of torque of a circular object
Kidist
Acceleration is a rate of change in velocity.
Justice
t =r×f
Khuthadzo
how to calculate tension by substitution
Precious Reply
hi
Shongi
hi
Leago
use fnet method. how many obects are being calculated ?
Khuthadzo
khuthadzo hii
Hulisani
how to calculate acceleration and tension force
Lungile Reply
you use Fnet equals ma , newtoms second law formula
Masego
please help me with vectors in two dimensions
Mulaudzi Reply
how to calculate normal force
Mulaudzi
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