Professional Documents
Culture Documents
LOG307 Seminar 4 Jan 2024
LOG307 Seminar 4 Jan 2024
January 2024
Simulation Fundamentals
Simulation Tools
4
Zahraei and Ghosh, 2023
Chapter 7
Simulation Fundamentals
✓ Manufacturing—scheduling, inventory
✓ Distribution and logistics
✓ Staffing personal - service operations (e.g., banks, fast food, theme parks, etc.)
✓ Health care—emergency, operating rooms
✓ Computer systems
✓ Telecommunications
✓ Military
✓ Public policy (e.g. emergency planning, courts, prisons, probation/parole etc.)
✓ What-if scenarios
✓ Flexibility
❑The main difference is that simulation uses at least one of the input
variable cells in a simulation model contains random numbers.
▪ A newsboy must decide how many newspapers (Q) to buy for the next day.
▪ He does not know the demand for the next day (D) but knows the possible
quantities and their respective probabilities (i.e., demand distribution).
▪ He buys each newspaper at unit cost (UC) and sells them at regular price (SP). If
he cannot sell all the newspapers by the end of the day, unsold papers can only be
sold at a lower value (SV).
❑ He needs to decide the best quantity to buy that maximises his profit.
Demand Distribution
✓ The probabilities of possible demand for newspapers the next day are generally
derived from the historical newspaper sales data in the previous months.
From historical data, demand for ✓ Each Chicken Rice dish sells for $6.90 and costs
chicken rice is estimated as: $4.90 to make. Dishes that are not sold at the end of
Demand/day Probability of demand
the day are sold at a at a reduced price of $2.90.
180 0.05
200 0.10
220 0.20 ✓ How many chicken rice dishes Grandma’s Kitchen
240 0.30 should prepare for the next day?
260 0.20
280 0.10
300 0.05
✓ Aim is to use built-in Excel tools to simulate profit for several order
quantities and ultimately choose the“best” order quantity.
Zahraei and Ghosh, 2023 19
Excel Reminder - VLOOKUP
Use VLOOKUP when you need to find things in a table or a range by row.
✓ Built-in excel tools cannot be used to determine the order quantity (Q) that
achieves maximum profit.
II. Another easier way is to use Data Table in Excel to determine the average
profits for different Q values.
➢ Data Table takes different values of a variable from the selected cells, carries
out the entire calculations, and presents results for each variable value.
Suppose you own a car and purchased auto insurance. This insurance has a $1000
deductible, so that if you have an accident and the damage is less than $1000, you pay
for it out of your pocket. However, if the damage is greater than $1000, you pay the first
$1000 and the insurance pays the rest. In the current year there is probability 0.025 that
you will have an accident. If you have an accident, the damage amount is normally
distributed with mean $3000 and standard deviation $750.
Build a simulation model using Excel built-in functions to determine the amount of
money you have to pay for damages if there is an accident. Run 1000 iterations.
a) Find out the average, standard deviation, and maximum and minimum amount to pay.
b) Change the deductible amount as $500, $1000, $1500, and $2000 and determine the
same statistics. (You may use a data table for this problem.)
Hint: Use NORMINV(RAND(),µ,σ) to generate random number from a normal distribution with mean
and standard deviation of µ and σ, respectively.
Zahraei and Ghosh, 2023
Zahraei and Ghosh, 2023 26
Chapter 8
Simulation Tools
Advantages of add-in
or
✓ Outputs values will be calculated when the simulation is run, for each run
✓ Different summary measures can be computed by @RISK functions (e.g.,
RISKMEAN, RISKSTDDEV, RISKMAX etc.)
✓ Number of iterations
✓ 10000 is the maximal allowed in the student’s version
✓ Number of simulation
✓ 1 (unless wishes to run for several different decisions)
✓ Start Simulation
✓ Use @Risk to simulate the profit and find out how many chicken rice
dishes should Grandma’s Kitchen prepare for the next day.
=RiskDiscrete(D4:D10,E4:E10) =@RiskOutput("Profit")+C13+D13-E13
Summary
Browse Results
Zahraei and Ghosh, 2023 36
Example 4.2. Simulation with @Risk
Summary Measures of Profit
=RiskMean(F13)
=RiskStdDev (F13)
= @RiskMin(F13)
=@RiskMax(F13)
Zahraei and Ghosh, 2023 37
Order Quantity with Maximum Profit using @RISK
✓ Simulation model can run several times, with a different order quantity
✓ However, this has two drawbacks.
➢ it takes a lot of time and work.
➢ each time you run the simulation; you get a different set of random
demands.
=RiskSimtable(D13:I13)
=RiskMean(Profit,G20)
✓ The strength of @RISK is that it keeps track of the outputs and shows
corresponding results as graphs or tables
✓ @RISK provides several options for displaying results
*You are encouraged to explore the possibilities.
❑ But the goal is to
✓see how outputs vary as random inputs vary
✓generate reports that tell the story most effectively.
Refer to Case 10.1 Ski Jacket Production (page number 650 of the customised
textbook). Assume demand for ski packets follow a normal distribution or
triangular distribution Answer the following:
=ROUND(RiskTriang(H4,H5,H6),0)
=MIN(C14,B9)