SMO2107 Module
SMO2107 Module
COURSE OUTLINE
Chapter1 NETWORK MODELS
1
Chapter 6 Queuing Theory
Text books
1 Operations Research by Hamdy A. Taha
2 Introduction to Operations Research By C.W. Churchman, R.L Ackoff and E.L. Arnoff
3 Management Science by David R Anderson Dennis J Sweeney and Thomas A Williams
4 Any other Operations research textbook.
2
Chapter 1 Network Models
The primary objective is to determine the shortest route or path between any pair of
nodes in a network.
Example
2 17 7
15 6 5
4 6
1 3 4
10 6
Main Office 3 5 2
4
We need to determine the shortest route from the main office (node1) to each of the
other nodes in the network. We are going to perform a labeling procedure by giving
node one the permanent label {0,S}. The first number in the label for a particular node
indicates the distance from node 1 to that node, while the second number indicates the
preceding node on the route from node1 to that node.
[14,5 ]
Preceding node on the route from node1 to this node is node 5
3
To perform the first step of the labeling procedure, we must consider every node that can be
reached directly from node 1, ie node 2 & 3.
[15;1]
2 17 7
15 6 5
4 6
1 3 4
10 6
[0;S] 3 5 2
4
[10;1]
We next consider all tentatively labeled nodes in order to find the node with the smallest distance
value in its label. Node 2 which has the shortest distance out of all the temporally labeled nodes
is now permanently labeled. We now know that node 2 can be reached from node1 in the shortest
possible distance of 13 km by going through node 3. The next step or iteration begins at node 2 ,
the recently permanently labeled node. Nodes that can be reached from node 2 are node 4 and7.
Node 4 become [4;3] node 7 is [30;2]. From among the tentatively labeled nodes 4,5 &7, we
select the node with the smallest distance value and declare that node permanently labeled node.
Continuing this process summarise the solution as in the following table
Table 1.1 Shortest route from node one to all the other nodes.
4
Example 1.2
Find the shortest route between nodes 1 and all the other nodes in the following network.
2 2 5 3
14 9
2 6 6 8
5
1 5 3 10 6 1
4 12 5 2 0
1 13 8
9
4 7 10
11
A spanning tree for an N- node network is a set of N-1arcs that connects every node to every
other node. A minimal spanning tree is the set of arcs that does this at the shortest distance. The
steps of the algorithm of the shortest route problem is as follows:
Step 1 Arbitrarily begin at any node and connect it to the closest node in terms of the criteria
being
used. (eg, time, cost or distance). The two nodes are referred to as connected nodes and
the
remaining as unconnected nodes.
Step 2 Identify the unconnected node that is closest to the set of the connected nodes. Break ties
arbitrarily if two or more nodes quality as the closest node. Add this new node to the set
of
connected nodes.
EXAMPLE 1.3
N.U.S.T. I.T computer center must have special computer communications lines installed to
connect five satellite users with a new central computer. A Telephone Company will install the
new communication network. However, the installation is an expensive operation. To reduce
5
costs, the center’s management group wants the total length of the new communication lines to be
as small as possible. While the central computer could be connected directly to each user, it
appears to be more economical to install a direct line to some users and let other users tap into the
system by linking them with users already connected to the system. The network for this problem
with possible connection alternatives and distances (in km) is shown below.
2 40
20 5
50
1 40 3
30 40
Computer 40 10 30
Center 4
20
Solution
Starting at node1, the closest node is node 2 with a distance of 20.
Connect nodes 1&2 using bold lines.
In step 2 we find that the closest unconnected node to one of the connected nodes is node 4 with a
distance of 30.
Repeating the steps the minimal spanning tree solution is as below.
2 40
20 5
1
3
30
10
4
20
The minimal length of the spanning tree is given by the sum of distances on the arcs forming the
spanning tree which is 110 km in this case and this is the optimal solution.
6
EXAMPLE 1.4
The Bulawayo City Council has recently acquired land in the just ended land redistribution
exercise for a new council park, and park planners have identified the ideal locations for the
lodges, cabins picnic groves, boat dock, and scenic points of interest. These locations are
represented by the nodes of the network below. The arcs of the network represent possible road
alternatives in the park.
If the council designers want to minimize the total road distance (km) that must be constructed in
the park and still permit access to all facilities (nodes), which road alternatives should be
constructed.
2 6 12
1 12
5 3 8
6 6 3
8 5 8 7
11
11 4 6 15
3 7 9
4 1 2
2 2
1 4 6 8 3 5
10 14
4 4 7
9 2
3 5 3 4
3 6 13
9
This involves a network with one input or source node and one output or one sink node.
The problem tries to answer the maximum amount of flow (vehicles, messages, fluids etc) that
can enter and exit the network system in a given period of time.
The amount of flow in any arc is limited due to capacity restrictions on the various arcs of the
network.
Flow capacities are based on the direction of the flow.
eg
1 6 0 2
7
This indicates that a flow of 6 in the direction of 1-2 and no flow from 2-1.
On roads this can be interpreted as a “one way” road.
Step1 Find any path from the source (input) node to the sink (output) node that has flow
capacities in
the direction of flow greater than zero for all arcs on the path. If no path is available, then
an optimal solution has been reached.
Step 2 Find the smallest arc capacity Pf on the path selected in step 1. Increase the flow through
the
network by sending an amount Pf over the path selected in step1.
Step 3 For the path selected in step 1, reduce all arc flow capacities in the direction of flow by Pf
and increase all arc flow capacities in the reverse direction by Pf . Go to step1.
EXAMPLES 1.5
The West to East flow of vehicles moving in Rusape town reaches a level of 1500 vehicles per
hour at peak times. Due to some maintenance program, which calls for the temporary closing of
lanes and lower speed limits a network of alternative routes through the high way has been
proposed by a transport planning committee. The alternative routes include other highways as
well as city streets.
Due to differences in speed limits and traffic patterns, flow capacities vary, depending on the
particular streets or roads used. The proposed network with arc capacities is shown below.
No of vehicles(00) passing
per hour
2 3 0
0 5
2 0 8
5 1
2 0
1 6 0 6
3
5 7 1 0
3 0 7
0 6
0 4 5 0
Applying step 1 to step 3 the total number of vehicles that can pass through the network is 1400
per hour using the following path.
8
Path Pf
1-3-6-7 6
1-2-5-7 3
1-2-3-5-7 2
1-4-6-7 1
1-4-6-5-7 1
1-4-6-3-5-7 1
Total 14
Consider the 3-6 arc with initial and final flow capacities shown below
Initial Capacities
7 0
3 6
Final Capacities
2 5
3 6
The arc has a flow of 7-2 = 5 in the 3-6 and the flow is summarized as follows
3 5 6
9
The complete network will be as below
2 3
5
5 7
3
1 6 1 6
3
5
3 7
6
4 3
Example 1.6
BP Oil Company ours a pipeline network that is used to transmit oil from its source to several
storage locations. A portion of the network is as follows.
Due to varying pipe sizes, the flow capacities also vary. By selectively opening and closing
sections of the pipeline network, the firm can supply any of the storage locations
(a) if the firm wants to supply storage location 7 (node 7) and fully utilize the system capacity
how long will it take to satisfy a location 7 demand of 100, 000 gallons. What is the maximal
flow for this pipeline system.
(b) If a break occurs on time 2-3 and it is closed down, what is the maximal flow for the system.
How long will take to transmit 100,000 gallows location 7.
3 3
2 5
0 2 5
2
6 2 2
1
3
6 2 2 6 5 0
2 1
2
0 1 0 7
4 2 0
Exercises
10
Chapter 2
2.1 Introduction
The immediate predecessors for a particular activity are the activities that when
completed, enable the start of the activity in question eg. Activity A and B can
11
start anytime since they do not depend on the completion of any prior activity, but
activity D cannot start until activity A and C have been completed.
A network that shows the activities and also shows the predecessor relationships
among the activities is shown below.
B
C
2 2222
The completion of all the activities that lead into the node is referred to as an
event. For example node 2 corresponds to the event that activity B has been
completed and node 3 corresponds to the event that both activity A and C have
been completed.
Example 2.1
Develop the network for the project having the following activities and immediate
predecessors.
12
Activity E should not start at node 3 as this will imply that A and C are the
immediate predecessors for activity E, which is not. E has only C as the immediate
predecessor.
We insert a dummy activity, which is rather fictitious activity used to show proper
precedence among the activities.
A 3 D
1
4
B G 6
E
F
2 C 5
Note: Activity E and F both starts at node 5 and end at node 4. This situation
causes problem for certain computer programs that use starting and ending nodes,
and they recognize activities E and F as the same activity. Dummy activities can
be added to make sure that no two or more activities have the same starting and
ending nodes.
A 3 D
1
4
B G 6
E
2 C 5
F
7
13
2.3 PROJECT SCHEDULING WITH PERT/CPM
Example2:
The owner of Bulawayo Shopping Center is considering modernizing and
expanding the current 32 business Shopping complex. If the expansion project is
undertaken, the ower hopes to add 8 to 10 new business or tenants to the Shopping
complex. The specific activities that make up the expansion project are listed
below. The objective is to try and finish the project as quickly as possible. How
long will it take to finish the project?
Pert/CPM Network
5
2 D3
A 5 E1 4 4 F
1
C 4 G 14 7
B 6
3 H 12 6 2 I
14
NB: Total time to complete the project is 51 weeks. However several activities can be
conducted simultaneously eg A and B and this will reduce the total completion time for
the whole project.
To determine the project completion time we must identify the critical path.
A path is a sequence of connected activities that leads from the starting node (1) to the end
node.
The longest path through the network determines the total time required to complete the
whole project, and is called the critical path. The longest path activities are called critical
path activities of the project.
If managers wish to reduce the project completion time they will have to reduce the length
of the critical path by shortening the duration of the critical path activities
To get the critical path we must compute an earliest start and earliest finish time ES and
EF respectively.
ES = earliest start time for a particular activity
EF = earliest finish time for a particular activity
t = expected activity time for the activity
EF ES t
For activity A. ES 0 t 5 EF 0 5 5
ES
A
1 [0;5] 2
5
EF
RULE 1
The earliest start time for an activity leaving a particular node is equal to the largest of the earliest
finish times for all the activities entering that node.
Proceeding in a forward pass through the network we can establish the ES and EF for each
activity
15
5
2 D [5;8]
B [0;6]
3 H [9;12] 6
I[24;26]
The latest finish time for activity I is 26 weeks so the total time required to complete the project is
26
weeks. The critical path is obtained by making a backward pass calculation.
Starting at the completion point (node7) and using a latest finish time of 26 for activity 1 we trace
back through the network, computing a latest start and latest finish time for each activity.
LS LF t
eg LS for activity I = 26 - 2 = 24
Rule 2
The latest finish time for an activity entering a particular node is equal to the smallest of the latest
start times for all activities leaving that node.
Calculating backwards the LF and LS times are as below.
16
{7;10} 5
2 D [5;8]
Slack is defined as the length of time an activity can be delayed without affecting the total time
required to complete the whole project.
ie Slack = LS ES LF EF
This means activity C can be delayed up to 3 week (staring anywhere between week 5 and 8)
without changing the completion time of the whole project of 26 weeks.
The activity C is not a critical path activities.
For critical path activities slack = 0 ie Activities A, E, F, G and I form the critical path.
The critical path is A-E-F-G-I
17
2.5 PROJECT SCHEDULING WITH UNCERTIAN ACTIVITY
This involves the scheduling of a new product with the activities in this project never been
previously attempted.
Examples 2.3
The H and S Company have been manufacturing industrial vacuum cleaning system for a number
of years. A member of the company’s new- product research team submitted a report suggesting
that the company considers manufacturing a cordless vacuum cleaner. The company’s
management would like to study the feasibility of manufacturing the new product. The researcher
suggests the activity list of the new product as below.
2 C 5
F
A D
G J
1 E 4 7 8
B I
3 6
H
18
2.5.1 UNCERTIAN ACTIVITY TIMES
Accurate activity time estimates are important in the development of an activity schedule.
When activity times are uncertain, three time estimate (1) optimistic time, (ii) Most probable
time and
(iii) pessimistic time allow the project manager to take uncertainty into consideration in
determining the critical path and the activity schedule.
Optimistic time a = the activity time if everything progressed in an ideal manner.
Most probable time m = Most probable activity time under normal conditions
Pessimistic time b = the activity time if significant delays are encountered.
The average or expected time (t) for any activity is determined by the formula
a 4m b
t
eg for activity A the manager estimates the most probable time to be 5 weeks with a range of 4
weeks (optimistic) to 12weeks (pessimistic) therefore;
4 4(5) 12 36
tA 6 weeks
6 6
Also with uncertain activity times the variance or variation in the activity time is given by
ba
2
2
6
The difference between the pessimistic (b) and optimistic (a) time estimates greatly affects the
value of the variance.
12 4 8
2 2
So
2
A 1.78
6 6
1
NB The variance equation is based on the notion that a standard deviation is approximately of
6
the difference between the extreme values of the distribution. Variance is the square of the
standard deviation.
19
Activity Optimistic Most Pessimistic Expected Variance
Probable (m) (b) (t) σ2
A 4 5 12 6 1.78
B 1 1,5 5 2 0.44
C 2 3 4 3 0.11
D 3 4 11 5 1.78
E 2 3 4 3 0.11
F 1,5 2 2.5 2 0.03
G 1,5 3 4.5 3 0.25
H 2,5 3,5 7.5 4 0.69
I 1,5 2 2.5 2 0.03
J 1 2 3 2 0.11
32
To get the critical path we treat the expected activity times as the fixed length or duration of each
activity.
The critical path calculations will only determine the expected or average time to complete the
project.
2 C[6;9] 5 {13;15}
{10;13} F[9;11]
A[0;6] D[6;11]
{0;6} {6;9} {7;13} G[11;14] J[15;17]
1 E[6;9] 4 {12;15} 7 {15;17} 8
B[0;2] I
{7;9} 3 6 {13;15}
{9;13} [13;15]
H[9;13]
20
The expected completion time for the entire project is 17 weeks and the critical A-E-H- I-J.
Variation in critical path activities can cause variation in the project completion time .If a non-
critical path activity is delayed longer enough than its slack time, then if becomes part of a new
critical path and may affect the project completion time. Let T denote the total time required to
complete the project. The expect value of T which is determined by the critical activities A- E-
H- I-J is
ET t a t E t H t I t J
6 3 4 2 2 17
Stdev 2 1.65
The normal distribution tends to be the better approximation of the distribution of total time for
larger projects where the critical path has many activities. Suppose that management has allocated
20 weeks for the project. What is the probability that the 20 weeks deadline will be meet.
20 17
Z
1.65
1.87
Using Z = 1.82
21
There is an excellent (96.6%) chance that the project will be completed before the 20 week
deadline.
Use of more resources (such as more workers, overtime and so on) generally increase project
costs, and reduce activity times.
A manager has to make a decision that involves trading decreased activity time for increased
project costs.
In the previous example the 17- week completion time could be reduced if management were
willing to add more resources to shorten any of the critical path activities
A B
1 4 E 5
C D
22
The critical path is A-B-E and the project is taking 12 days.
Suppose the above project was declared to last for 10 days. This can be achieved by shortening
selected activity times by adding resources such as labor or overtime and is referred to as
crashing. Crashing results in added project costs.
We have to identify activities, which cost less to crash and then crash on them to meet the desired
project completion time.
M j j 'j
The per unit time basis crashing cost K j is given by
C 'j C j
Kj
Mj
Eg If the normal time for activity A is 7 days at CA = $500 and the time under maximum crashing
is 4 days at C’A = $800, then
M A 7 4 3 days and
23
1 1
So if we decide to crash activity A by 1 days the added cost is 1 ($100) $150
2 2
Total cost for activity A will be $500+150 = $650
Since we have 5 nodes or events in the above example we need five decisions variables to
identify the time of occurrence for each event.
We also need 5 decision variables to represent the amount of crash time used for each of the five
activities. So let
xi = time of occurrence of event i for i 1, 2,....5
y j = amount of crash time used for activity j = A,B,C,D and E
Since the total cost for a normal completion time is fixed at $1 700, we can minimize total project
cost (normal cost plus crash cost) by minimizing the total crashing cost.
E
Minimise Z k j y j k j crash cost coefficient.
j A
24
Chapter 3
Inventory Models
Introduction
Inventory refers to idle goods or materials that are held by an organizations for use
in the future. While inventory serves as a buffer against uncertain and fluctuating
usage and keeps a supply of items available in case the items are needed by the
organization or its customers, the expense associated with financing and
maintaining inventories is so high.
Two important questions that need to be addressed in inventory management are;
(i) how much to order when the level of inventory drops,
(ii) and when to order a given item,
should be answered to effectively manage inventories.
Examples 3.1
National Breweries is a distributor of beer, wine and soft drink products. From a
main warehouse located in Bulawayo the company supplies nearly 1000 retail
stores with its beverage products. The beer inventory which constitutes about 40%
of the company’s total inventory, averages around 50 000 crates. With an average
cost per crate of approximately $8, the company estimates the value of its beer
inventory to be $400 000. The warehouse manager has decided to do a detailed
study of the inventory costs associated with castle beer the number one selling beer
for the company. The purpose of the study is to establish the how much to- order
and the when to order decisions. The manager has obtained the following
historical demand data for the past 10 weeks.
25
Total Demand 20 000
Average per week 2000
Holding Costs
These are costs associated with maintaining or carrying a given level of inventory
and they depend on the size of the inventory.
First there is the cost of financing the inventory investment. This cost of capital is
usually expressed as a % of the amount invested. Netbrew estimates its cost of
capital at an annual rate of 18%. Other holding costs includes, insurance, taxes,
breakages and warehouse overhead. Net brew estimates these other costs at an
annual rate of approximately 7% of the value of its inventory.
Total holding costs for the beer inventory is 25% (18% + 7%) of the value of the
inventory. Assume the cost of 1 crate of castle beer is $8. The cost of holding one
crate of beer in inventory for 1 year is 0,25 ($8) = $2
Ordering Costs
This costs is considered fixed regardless of the order quantity. It covers the
preparation of the voucher, the processing of the order including payment, postage,
telephone, transportation, invoice verification, salaries of the purchasers etc. The
manager estimates its ordering costs are $32 per order regardless of the quantity
requested in the order.
1
Q Average Inventory level
2
26
T
Time
Average Inventory
Level
Time
Ch IC
Ch IC = 0,25 (8)
= $2
Annual holding cost = (Average inventory level ) (annual holding cost per unit)
1
= QC h
2
27
for Natbrew D = 52 (2000 crates per week)
= 104,000 crates per year.
D
By ordering Q units every time we order we have to place orders per year.
Q
If Co is the cost of placing one order,
Annual ordering cost = (Number of orders per year) (cost per order)
D
= Co
Q
1 104000
TC Q(2) (32)
2 Q
3 328 000
= Q
Q
3 328 000
For the castle beer TC Q
Q
Diagram
600 TC
Annual holding
cost
400
Cost ($)
28
Q*
Order Quantity (Q)
1 D
Since TC QCh Co
2 Q
Differentiating the above equation with respect to Q gives
d (TC ) 1 DC
Ch 2o
dQ 2 Q
d (TC )
at minimum 0
dQ
1 DC 2 DC0
Ch 20 0 Q2
2 Q Ch
ie
2 DC0
Q*
Ch
2(104000)32
Q*
2
1824 cases
*
NB Q will always balance the holding costs and the ordering costs
29
So they had to order when the inventory level reaches 800 crates. The reorder
point is the same as the lead –time demand.
The reorder point r is given by
r dm where
r = reorder point
d = demand per day
m = lead time for a new order in days
Inventory
Level Average inventory level
Time
30
This model assume two cost; holding costs and production set up costs.
Production set up costs include labor, material etc and is a fixed cost that occurs
for every production run regardless of the production lot size.
Let Q be the production lot size ie the total number of units produced during the
production period.
Let d = daily demand rate for the product
p = daily production rate for the product
t = number of days for a production run.
Since p d, the daily inventory build up rate during production phase is p - d.
After t days the level of inventory will be ( p d )t .
Q pt
Q
t days (length of a production run)
p
Maximun inventorylevel ( p d )t
Q
( p d)
p
d
(1 )Q
p
1
Average inventorylevel max imum inventorylevel
2
1 d
(1 )Q
2 p
Therefore
Annual holding costs Ave. Inventorylevel Annual holding costs
1 d
1 QCh
2 p
31
If D is the annual demand for the product and Co is the set up cost for a
production run then,
D
Co
Q
1 D D
TC 1 QCh Co
2 P Q
P is the annual production for the year.
d D
NB
p P
d (TC ) 1 D DC
(1 )C h 2o
dQ 2 P Q
2 DC0
Q*
D
(1 )Ch
P
Example 3.2
The New Green Key Bar Soap is produced on a production line that has an annual
capacity of 60 000 bars. The annual demand is estimated at 26 000 bars with the
demand rate essentially constant throughout the year. The cleaning, preparation
and set up of the production line cost approximately $135.00. The manufacturing
cost per bar is $4.50 and the annual holding cost is figured at a 24% rate.
(a)What is the recommended production lot size.
(b) Find
(i)Total cost
(ii) the reorder point and cycle time between production runs given that
the lead time is 1 week.
Solution
Ch IC 0.24($4.50) $1.08
(a)
32
2(26000)135
Q*
26000
(1 )1.08
60000
3 387
(b) (i)
1 D D
TC 1 QCh Co
2 P Q
$2 073
(ii)
r dm
(weekly demand)(1 week lead time)
26000
(1)
52
500 bars
and
250Q
T
D
250(3387)
26000
33 working days
Example 3.3
The data and cost analyses below show an annual holding cost of 20%, an ordering
cost of $49 per order, and an annual demand of 5000 units. What quantity should
be ordered?
33
Discount Order size Discount % Unit Cost
Category
1 0-999 0 $5
2 1000-2499 3 $4,85
3 2500 + 5 $4,75
Solution
Let Q1 , Q2 and Q3 represent the order quantity for discount category 1,2,3
respectively.
2DCo
Since Q * and Ch IC (0.20)C
Ch
Solution
Step 1 Calculate Q* based on the unit cost associated with the discount category 1,
2, 3 respectively.
2(5000)49
Q1* 700
0.2(5)
2(5000)49
Q2* 711
0.2(4.85)
2(5000)49
Q3* 718
0.2(4.75)
Step 2 For the Q* that is too small to qualify for the assumed discount price adjust
the order quantity upward to the nearest order quantity that will allow the product
to be purchased at the assumed price.
Purchase cost = annual demand x unit cost (which was constant and never
affected by the inventory order b4)
Q D
So the Total Cost TC Ch Co DC (i)
2 Q
N.B if a calculated Q for a given discount price is large enough to qualify for a
bigger discount, that value of Q cannot lead to an optimal solution.
34
Step 3 For each of the order quantities resulting from steps 1& 2, compute the
total
annual cost using the unit price from the appropriate discount category and the
order
quantity yielding the minimum total annual costs is the optimal order quantity.
So a decision to order 1000 units at the 3% discount rate yields the minimum cost
solution Q* = 1000
Co = cost per unit of overestimating demand (this cost represent the loss of
ordering one additional unit and finding it cannot be sold).
35
The general expressions for the expected loss for overestimating and
underestimating order –quantity are:
Cu
P(demand Q*) (8)
Co Cu
and this states the general condition for the optimal order quantity Q in the single –
period inventory model.
Thus to establish an optimal order quantity for single- period models we must
identify the probability distribution that describes the demand for the item and the
costs of overestimation and underestimation.
EXAMPLE 3.4
The J & B shop sells calendars with different colonial picture for each month.
The once – a – year order for each year’s calendar arrives in September.
From past experience, the Sept- Jul demand for the calendars can be
approximated by a N (500,1202 ).
The calendars cost $1 500 each and J&B sells them for $3 000 each.
(a) If J &B throws out all unsold calendars at the end of July (ie salvage value
is zero) how many calendars should be ordered?
(b) If J & B reduces the calendar price to $ 1000 at the end of July and can sell
all surplus calendars at this price, how many calendars should be ordered?
solution
1500
P(demand Q*)
3000
36
Normalising this equation yields
Q * 500 1
P Z
120 2
Q * 500
0 ( from normal tables)
120
Q* 500
Pdemand Q *
1500
2000
Q * 500
P Z 0.75
(b) 120
Q * 500
0.675
120
Q* 581
Example 3.
An Air- Conditioning Company is considering the purchase of a special
shipment of portable air conditioners manufactured in Japan. Each unit will
cost the company
$80 000 and it will be sold for $ 125 000.
The company does not want to carry surplus air conditioners over to next year.
Thus all surplus air conditioners will be sold to a wholesaler for $50 000 per
unit.
Assume that the air conditioners demand follows a N (20, 82)
(a) what is the recommended order quantity?
(b) What is the probability that the company will sell all the units it orders?
solutions
37
Pdemand Q *
Cu 45
C0 Cu 75
Q * 20
P Z 0.6
8
Q * 20
0.253
8
Q* 22
Reorder point
Order placed
38
At times, the order quantity of Q units will arrive before inventory reaches
zero.
However at times, higher demand will cause a stock out before a new order is
received. As with other order –quantity, reorder point models, the manager
must determine the order quantity Q and the re- order point for the inventory
system.
2DC0
Q*
Ch
If a normal distribution is used for lead-time demand, the general equation for r
is
r t Z where Z is the number of std deviation necessary to obtain the
acceptable stockout probability.
EXAMPLES 3.
Barons Inc provides a variety of auto parts to small local garages. Barons purchase
parts from manufacturers according to the EOQ mode and then ship the parts from
a regional warehouse directly to its customers. For a particular type of springs,
Baron’s EOQ analysis recommends orders with Q* = 25 to satisfy an annual
demand of 200 mufflers.
There are 250 working days and the lead-time averages 15 days.
(a) What is the re –order point if Barons assumes a constant demand rate?
(b) Suppose that an analysis shows that the lead –time demand follow N (12,
2,52). If the management can tolerate one stock out per year, what is the
revised re- order point?
(c) What is the safety stock for part (b) if Cn = $5 / year. What is the extra cost
due to the uncertainty demand?
solution
200
(a) r dm 15 12
250
D 200
(b) 8 orders per year
Q 25
39
P(stockout) = 0.125
r 12
Z 1.15
2.5
r 12 1.15(2.5) 14.875 15
40
Chapter 4
DECISION ANALYSIS
4.1 Introduction
EXAMPLES 4.1
The second step is to identify the future events that might occur, and these events,
which are not under the control of the decision maker, are referred to as the state of
nature.
The states of nature for the company are as follows:
Given the 3 decision alternatives and two states of nature, which computer system
should the company select.
41
4.2.1 Payoff Tables
The notation used in the payoff table is V (di, Sj) which is the payoff associated
with decision alternative di and state of nature Sj.
DECISION TREES
2
Large(d1)
1 3
Medium (d2)
42
Note node1 (which is a Square) is called a decision node whereas 2,3 and 4 are
state of nature nodes.
The optimistic evaluates each decision alternatives in term of the best payoff that
can occur.
In the above example, the optimistic approach would lead the decision maker to
choose the alternative corresponding to the largest profit.
For problems involving minimization, this approach leads to choosing the
alternative with the smallest payoff.
For the above problem the decision is to buy the large systems.
For maximization the approach is referred to as the maximax approach and for a
minimization it is referred to as the minimin approach.
This evaluates each decision alternative in terms of the worst payoff that can
occur.
The decision alternative recommended is the one that provides the best of the
worst possible payoff.
For a maximizations problem this approach is referred to as the maximin and for
minimization problem it is referred to as the minmax.
For A.C.S.
43
Since S1 occurred we see that d1 yielding a profit of $20 000 would have the best
decision.
Opportunity loss or regret = difference between best payoff (200 000) and payoff
experienced 100 000
R (di, Sj) = regret associated with decision alternative with decision alternative di
and
state of nature sj
V* (sj) = best payoff value under state of nature sj
V(di, Sj) = payoff associated with decision alternative di and state of nature sj
State of nature
Decision alternatives S1 S2
d1 0 80 000
d2 50 000 40 000
d3 100 000 0
44
4.4 DECISION MAKING WITH PROBABILITIES
Conditions
P (sj) 0 for all states of nature.
P(S
j 1
j ) P(S1 ) P(S 2 ) ......... P(S N ) 1
N
EV (d i ) P(S j )V (d i , S j )
j 1
2
Large(d1)
1 3
Medium (d2)
45
2
Large(d1) EV = $46 000
1 3
Medium (d2) EV = $59 000
Small (d3)
4 EV = $72 000
For A.C.S P(S1) = 0.3 and P(S2) = 0.7 these probabilities might change and such
changes is referred to as sensitivity analysis.
For example Let P(S1) = 0.6 and P(S2) = 0.4
For cases
To get p equal any two equation
p = 0,44
ie when p = 0,44 all the decision alternatives will provide the same EV for p
0,44 d3 provides the largest EV.
sensitivity analysis can assist management in deciding when it is worth investing
more time and money to obtain better probability estimates .
46
NB Similar sensitivity analysis with 3 d a and two S on should not be expected to
result in the same type of graph.
In cases where s o n are more than 3 a computer software package can be used to
assist with the computations
A.C.S. should conduct a market research study that would evaluate consumer
needs and such a study could help by improving the probability assessments for
the states of nature.
If the cost of obtaining the market research information exceeds its value then
the company should not conduct the research study.
If perfect information were available the decision strategy will be as follows:
If s1 occurs then select d1
‘’ s2 ‘’ ‘’ ‘’ ‘’ ‘’ select d3
since P (s1) = 0,3 & P (s2) = 0,7, we see that there is a 0,3 probability that ACS
will make $200 000 and 0,7 probability that ACS will make $60 000.
So the expected value of the decision strategy that uses perfect information is
0,3 ( 200 000) + 0,7 (60 0000) = $102 000.
$102 000 is referred to as the expected value with perfect information (EV w PT)
When perfect information was not available, the expected value of approach
resulted in d3 with an expected value of $72 000
$72 00 is the expected value without perfect information (EV W 0 P1)
The expected value of perfect information (EVP1) – EV wo P1
= 102 000 – 72000
= $30 000
In other words $30 000 represents the additional expected value that can be
obtained of perfect information were available about the states of nature.
So ACS should not pay more than $30 000 for any information no matter how
good.
To make the best possible decision, the decision maker may want to seek
additional information about the states of nature.
This new information can be used to revise or update the prior probabilities so that
the final decision is based on better probability estimates for the states if nature.
In the ACS example, P (s1) = 0,3 and P (S2) = 0,7 and these probabilities are
referred to as prior probabilities for the states of nature.
Suppose ACS has decided to carry a market research, which will provide new
information that can be combined with the prior probabilities by using Bayes
theorem.
47
The revised probabilities are called posterior probabilities and the new information
obtained through research or experiments is referred to as indicator.
The marketing research study outcome was as follows.
I1 = favorable market research report (ie the individually contacted express interest
in ACS services)
I1 = favorable market research report ( ie the individually contacted express little
interest in ACS)
Insert a diagram
The end result of the Bayesian revision process depicted above is a set of posterior
probabilities of the form P(sj/ Ik) ie sj will occur given what market research
study was indicator Ik
Assume that in the ACS problem the following are available
Insert diagram
Prior probabilities in the ACS problem were given as P (S1) = 0,3 & P (S2) = 0,7
To calculate the probabilities P (Ik) and P (sj / Ik) , Bayesian procedure is applied.
48
Insert the formulae
First for each indicator Ik we form a table consisting of the following 5 columns
1 States of nature Sj
2 Prior probabilities P(sj)
3 Conditional probabilities
4 Joint probabilities
5 Posterior probabilities
Then given any indicator Ik the following procedure can be used to calculate
Insert the solution
Step 1
In column 1, the states onto the problem being analyzed.
Step 2
In column 2, enter the prior probability to each of state of nature.
Step 3
In column 3 enter the appropriate value of ( I k sj ) for each s – o – n specified in
column 1
Step 4
To compute each entry in column 4 multiply column 2 x corresponding c 3
Step 5
Step 6
After computing the branch probabilities, we can use the expected value approach
to determine the decision strategy.
49
Working backward through the decision tree in use to calculate the expected value
at each s-o – n mode.
Enter formulae’s
IF Then
Report favorable Select large system (d1)
Report unfavorable Select small system (d3)
Since the additional information provided by the market research firm will result
in an added cost, in terms of the fee paid to the research firm, management may
question the value of this market research information.
The value of sample information is often measured by calculating what is referred
to as the expected value of sample information
For maximization problems insert the format and diagram.
So ACS should be willing to pay up to $18,402 for the market research.
Insert format
50
Chapter 5
5.1 Introduction
Example 5.1
Hefilis fast- food restaurant, sells hamburgers, cheeseburgers, French fries, soft
drinks, milk shakes, pizas and Chinese food and a lot more dessert selections.
Although Hefilis would like to serve each customer immediately at times more
customers arrive than can be handled by the food- service staff. Thus customers
wait in the line to place and receive their orders.
Hefilis is concerned that the methods they are currently using to serve customers
are resulting in excessive waiting times. Management has asked that a waiting line
study be performed to help determine the best approach to reducing waiting times
and improving services.
Order taking
and order
filling
51
5.2.1 The Process of Arrivals
For many waiting line situation, the arrivals occur in a random fashion, ie each
arrival is independent of other arrivals, and we cannot predict when the next
arrival will occur.
It was found out that the Poisson probability distribution provides a good
description of the arrival pattern.
x e
P( x) for x = 0, 1, 2 ,………
x!
Suppose that Hefilis has analyzed data on customer arrivals and has concluded that
mean arrival rate is 45 customers per hour ie
45
45 arrivals per hour or arrivals per minuate
60
x e (0.75) x e 0.75
P( x)
x! x!
(0.75) 0 e 0.75
P(0) 0.4724
0!
(0.75)1 e 0.75
P(1) 0.3543
1!
The service time is the time the customer spends at the service facility once the
service has started.
It has been determined that the exponential probability distribution often provides
a good approximation of service times in waiting line situations.
52
P[servicetime t ] 1 e t
where
μ = the average or mean number of units that can be served per time period.
Hefilis has found out that a single food server can process an average of 60
customer orders per hour.
Or 6060 = 1 customer per minute.
So μ = 1 customer minute
Most waiting line system assume a FIFO Basis (first in first out)
Other are FILO basis eg in an elevator
LILO
LIFO
5.3 The Single – Channel Waiting Line Model with Poisson Arrivals and
Exponential Service Times
Operating Characteristic
= the mean or average number of arrivals per time period (mean Arrival
Rate)
= the mean or average number of services per time period (mean service
rate)
P(0) 1
53
(2) the average number of units in the waiting line
2
Lq
( )
L Lq
(4) The average time a unit spends in the waiting line
Lq
Wq
(5) The average time a unit spends in the system
1
W Wq
Pw
(7) Probability of n units in the system
n
Pn P0
The above formulas are applicable only when the mean service rate μ is
greater than the mean arrival rate λ. ie when 1
For Hefilis problem since λ = 0,75 customers per minute and μ = 1 customer
per minute.
54
P0 1 0.25
2
Lq 2.25
( )
L 3 customers
Wq 3 min
W 4 min
Pw 0.75
Looking at the results of the single- channel waiting line for Hefilis
Customers wait for 3 minutes before service.
75% of the arriving customers have to wait.
There is probability of 0,1335 that seven or more customers are in the system
7
at one time P7 P0
Hefilis should consider alternative designs or plans for improving the waiting
line operation.
Assume Hefilis had considered employing an order filler who will assist the order
taker at the cash register.With this new deign management has estimated the mean
service rate to increase from 60 customers per hour to 75 customer per hour.
Or from 1 customer per min to 1,25 customer/min
55
Example5.
The reference desk at NUST library receives requests for assistance.Assume
that a poisons probability distribution with a mean of 10 requests per hour can
be used to describe the arrival pattern and that service times follow the
exponential probability distribution with mean service rate of 12 requests per
hour.
(1) What is the probability that there are no requests for assistance in the
system?
(2) What is the average number of request that will be waiting for service.
(3) What is the probability waiting time in minutes before services begins.
(4) What is the average time at the reference deist in minutes (wait t service).
(5) What is the probability that a new arrival has to wait for service?
This model consists of two or more channels or service locations that are
assumed to be identical in terms of service capability.
Operating Characteristics
= the mean arrival rate for the system
= the mean service rate for each channel
k = No of channels
k = mean service rate for the multiple- channel system.
56
1
P0
n k
k
k 1
n 0 n! k!
k
k
Lq P
k 1!k 2 0
L Lq
(4) The average time a unit spends in the waiting line
Lq
Wq
(5) The average time a unit spends in the system
1
W Wq
1 k k
Pw P0
k! k
(7) Probability of n units in the system
n
Pn P0 for n k
n!
n
Pn nk P0 for n > k
k!k
57
Assume that Hefilis wishes to open another cash register and order processing
station so that two customers can be served simultaneously.
P0 1 0.4545
2
Lq 0.1227
( )
L 0.8727customers
Wq 0.16 min
W 1.16 min
Pw 0.2045
1. The average time required between when you customer enters, the waiting
line and when the customer receivers the order (waiting time + service
time) is reduced from w = 4 min to w = 1,16 min.
2. Length of waiting line is reduced from Lq = 2,25 customer to Lq = 0,1227
customer.
3. Wq from Wq = 3 min to Wq = 0,16
4. The % of customers having to wait for service is reduced from Pw = 0,75
or 75% to Pw = 0,2045 or 20,45%.
TC = Cw + Cs k
In the Hefilis problem , the waiting cost per period would be the cost per minute
for a customer waiting for services.
58
Although the cost is not a direct cost to Hefilis but of Hefilis ignores this cost and
allows long waitng lines customers will ultimately take their business elsewhere,
thus experiencing lost sale and incur a cost.
Service cost include servers’s wages, benefits, and any other direct costs
associated with operating the service channel.
Lets suppose that Hefilis is willing to assign a cost of $10 per hour for customer
waiting time and service cost is estimated to be $7 per hour.
TC Cw L + Cs K
= $10 (3) + $7 (1)
= $37.00 per hour
TC = 10(0,8727 ) + 7(2)
= $22,73 per hour
Diagram
600 TC
Service cost
400
Cost ($)
Waiting cost
200
59
60