Simulation
Simulation
Problem No 1: Numbers representing a full inventory system were given daily demand: 4,3,8,2,5. The
beginning inventory is 4 units. The demand probability is-
Demand 0 1 2
Probability 0.2 0.5 0.3
To solve Problem 1:
Steps:
o 0 → 0.2
3. Perform the simulation for 5 days using the random numbers provided: 4, 3, 8, 2, 5.
Convert the random numbers to probabilities by dividing by 10 (assuming the range is 0-9).
Simulation:
Day 1:
• Begin inventory = 4
• End inventory = 4 - 1 = 3
Day 2:
• Begin inventory = 3
• End inventory = 3 - 1 = 2
Day 3:
• Begin inventory = 2
• End inventory = 2 - 2 = 0
Day 4:
• Demand = 0 (≤ 0.2)
• End inventory = 0 - 0 = 0
Day 5:
Final Results:
The distribution of the number of units demanded per day is shown in Table 2.19.
Random-Digit for demand: 24, 35, 65, 81, 54, 03, 87, 27, 73, 70, 47, 45, 48, 17, 09, 42, 87, 26, 36, 40, 07, 63,
19, 88, 94.
Assume that orders are placed at the close of business and are received for inventory at the beginning of
Business as determined by the lead time.
The simulation started with the inventory level at 3 units and an order of 8 units scheduled to arrive in 2
days.
Cycle Days Beginning RD for Demand Ending Shortage Order RD for Days
inventory demand Inventory quantity Quantity lead until
time order
arrival
1 3 24 1 2 0 1
2 2 35 1 1 0 0
1 3 65
4 81
5 54
1 03
2
2 3
4
5
The simulation started with the inventory level at 3 units and an order of 8 units scheduled to arrive in 2
days. The lead time for this order was 1 day.
Notice that the beginning inventory on the second day of the third cycle was zero. An order for 2 units on
that day led to a shortage condition. The units were backordered on that day and the next day also. On the
morning of day 4 of cycle 3 there was a beginning inventory of 9 units. The 4 units that were backordered
and the 1 unit demanded that day reduced the ending inventory to 4 units.
Based on five cycles of simulation, the average ending inventory is approximately 3.5 (88 25) units. On 2
of 25 days a shortage condition existed.