Introduction to Simulation Chapter 12. Introduction to Simulation  In many spreadsheets, the value for one or more cells representing independent variables.

Slides:



Advertisements
Similar presentations
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. A PowerPoint Presentation Package to Accompany Applied Statistics.
Advertisements

Statistical Inventory control models I
Chapter 18 If mathematical analysis is too difficult, we can try each possibility out on paper. That way we can find which alternative appears to work.
1 Overview of Simulation When do we prefer to develop simulation model over an analytic model? When not all the underlying assumptions set for analytic.
11 Simulation. 22 Overview of Simulation – When do we prefer to develop simulation model over an analytic model? When not all the underlying assumptions.
IE 429, Parisay, January 2003 Review of Probability and Statistics: Experiment outcome: constant, random variable Random variable: discrete, continuous.
Stochastic Inventory Modeling
Q. 9 – 3 D G A C E Start Finish B F.
Inventory Control Chapter 17 2.
Chapter 10: Simulation Modeling
Managerial Decision Modeling with Spreadsheets
Chapter 11, Part A Inventory Models: Deterministic Demand
1 Inventory Models. 2 Overview of Inventory Issues Proper control of inventory is crucial to the success of an enterprise. Typical inventory problems.
1 Simulation Chapter Ten Overview of Simulation When do we prefer to develop simulation model over an analytic model? When not all the underlying.
EMGT 501 HW #3 Solutions Chapter 10 - SELF TEST 7
Outline/Coverage Terms for reference Introduction
 1  Outline  Model  problem statement  detailed ARENA model  model technique  Output Analysis.
12-1 Introduction to Spreadsheet Simulation Using Crystal Ball.
1 Spreadsheet Modeling & Decision Analysis: A Practical Introduction to Management Science, 3e by Cliff Ragsdale.
1 SIMULATION – PART I Introduction to Simulation and Its Application to Yield Management For this portion of the session, the learning objectives are:
1 Monte-Carlo Simulation Simulation with Spreadsheets.
Building and Running a FTIM n 1. Define the system of interest. Identify the DVs, IRVs, DRVs, and Objective. n 2. Develop an objective function of these.
Chapter 14 Simulation. Monte Carlo Process Statistical Analysis of Simulation Results Verification of the Simulation Model Computer Simulation with Excel.
Module C10 Simulation of Inventory/Queuing Models.
Simulation Examples Continued
Lab 01 Fundamentals SE 405 Discrete Event Simulation
Chapter 12: Inventory Control Models
Monté Carlo Simulation MGS 3100 – Chapter 9. Simulation Defined A computer-based model used to run experiments on a real system.  Typically done on a.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Introduction to ModelingMonte Carlo Simulation Expensive Not always practical Time consuming Impossible for all situations Can be complex Cons Pros Experience.
Spreadsheet-Based Decision Support Systems
Introduction to Spreadsheet Modeling
Chapter 12 Inventory Models
Simulation Examples ~ By Hand ~ Using Excel
Introduction to Management Science
CHAPTER 12 Inventory Control.
Inventory Management.
1 OM2, Supplementary Ch. D Simulation ©2010 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible.
1 Slides used in class may be different from slides in student pack Chapter 17 Inventory Control  Inventory System Defined  Inventory Costs  Independent.
Contemporary Engineering Economics, 6 th edition Park Copyright © 2016 by Pearson Education, Inc. All Rights Reserved Risk Simulation Lecture No. 40 Chapter.
Independent Demand Inventory Planning CHAPTER FOURTEEN McGraw-Hill/Irwin Copyright © 2011 by the McGraw-Hill Companies, Inc. All rights reserved.
Structure of a Waiting Line System Queuing theory is the study of waiting lines Four characteristics of a queuing system: –The manner in which customers.
IE 429, Parisay, January 2010 What you need to know from Probability and Statistics: Experiment outcome: constant, random variable Random variable: discrete,
Outline of Chapter 9: Using Simulation to Solve Decision Problems Real world decisions are often too complex to be analyzed effectively using influence.
Simulation is the process of studying the behavior of a real system by using a model that replicates the behavior of the system under different scenarios.
Simulation is the process of studying the behavior of a real system by using a model that replicates the system under different scenarios. A simulation.
Computer Simulation. The Essence of Computer Simulation A stochastic system is a system that evolves over time according to one or more probability distributions.
1 1 Slide Simulation Professor Ahmadi. 2 2 Slide Simulation Chapter Outline n Computer Simulation n Simulation Modeling n Random Variables and Pseudo-Random.
Simulation Chapter 16 of Quantitative Methods for Business, by Anderson, Sweeney and Williams Read sections 16.1, 16.2, 16.3, 16.4, and Appendix 16.1.
12-1 Introduction to Monte-Carlo Simulation Experiments.
System Analysis System – set of interdependent elements that interact in order to accomplish a one or more final outcomes. Constrained and affected by:
MODELING AND SIMULATION CS 313 Simulation Examples 1.
Managerial Decision Making Chapter 13 Queuing Models.
Variance reduction techniques Mat Simulation
Simulation Modeling.
Supplementary Chapter B Optimization Models with Uncertainty
Computer Simulation Henry C. Co Technology and Operations Management,
Prepared by Lloyd R. Jaisingh
Modeling and Simulation CS 313
Chapter 10 Verification and Validation of Simulation Models
Prepared by Lee Revere and John Large
Simulation Modeling.
OPERATIONS MANAGEMENT: Creating Value Along the Supply Chain,
Slides by John Loucks St. Edward’s University.
Simulation Part 1: Simulation with Discrete Random Variables
Slides by John Loucks St. Edward’s University.
RANDOM VARIABLES Random variable:
Introduction to Simulation Using Crystal Ball
Simulation Supplement B.
Verification and Validation of Simulation Models
Presentation transcript:

Introduction to Simulation Chapter 12

Introduction to Simulation  In many spreadsheets, the value for one or more cells representing independent variables is unknown or uncertain.  As a result, there is uncertainty about the value the dependent variable will assume: Y = f(X 1, X 2, …, X k )  Simulation can be used to analyze these types of models.

Simulation  To properly assess the risk inherent in the model we need to use simulation.  Simulation is a 4 step process: 1) Identify the uncertain cells in the model. 2) Implement appropriate RNGs for each uncertain cell. 3) Replicate the model n times, and record the value of the bottom-line performance measure. 4) Analyze the sample values collected on the performance measure.

What is Crystal Ball?  Crystal Ball is a spreadsheet add-in that simplifies spreadsheet simulation.  A limited life trial version of Crystal Ball is on the CD-ROM accompanying this book.  It provides: –dialogs & functions for generating random numbers –commands for running simulations –graphical & statistical summaries of simulation data

Monte Carlo Simulation  Monte Carlo simulation generates random events.  Random events in a simulation model are needed when the input data includes random variables.  To reflect the relative frequencies of the random variables, the random number mapping method is used. (process of matching pseudo - random numbers to simulated events or the random variable)

 Jewel Vending Company (JVC) installs and stocks vending machines.  Bill, the owner of JVC, considers the installation of a certain product in a vending machine located at a new supermarket. JEWEL VENDING COMPANY – an example for the random mapping technique

 Data –The vending machine holds 80 units of the product. –The machine should be filled when it becomes half empty. –Daily demand distribution is estimated from similar vending machine placements.  P(Daily demand = 0 units) = 0.10  P(Daily demand = 1 units) = 0.15  P(Daily demand = 2 units) = 0.20  P(Daily demand = 3 units) = 0.30  P(Daily demand = 4 units) = 0.20  P(Daily demand = 5 units) = 0.05 Bill would like to estimate the expected number of days it takes for a filled machine to become half empty. Bill would like to estimate the expected number of days it takes for a filled machine to become half empty. JEWEL VENDING COMPANY – an example of the random mapping technique

Random Mapping Daily DemandCorresponding Random Numbers P(Daily demand = 0 units) = 0.10 P(Daily demand = 1 units) = 0.15 P(Daily demand = 2 units) = 0.20 P(Daily demand = 3 units) = 0.30 P(Daily demand = 4 units) = 0.20 P(Daily demand = 5 units) = 0.05

Random number mapping uses the probability function to generate random demand. Idea: the frequency of the random event ( i.e. demand here ) over the simulated number of days should reflect the probability distribution A number between 00 and 99 is selected randomly The daily demand is determined by the mapping demonstrated below Random number mapping – The Probability function Approach Demand

Simulation of the JVC Problem Since we have two digit probabilities, we use the first two digits of each random number An illustration of generating a daily random demand.  A random demand can be generated by hand (for small problems) from a table of pseudo random numbers.  Using Excel Rand()

The simulation is repeated and stops once total demand reaches 40 or more. => estimate how many days before filling the machine. Simulation of the JVC Problem The number of “simulated” days required for the total demand to reach 40 or more is recorded.

Simulation Modeling of Inventory Systems  Inventory simulation models are used when underlying assumptions needed for analytical solutions are not met.  Typical inputs into the simulation model are –Order cost –Holding cost –Lead time –Demand distribution

 Frequently, the Fixed-Time Simulation approach is appropriate for the modeling of inventory problems. –The system is monitored periodically. –The activities associated with demand, orders, and shipments are determined, and the system is updated accordingly.  Typical output is the average total cost for a given inventory policy. Simulation Modeling of Inventory Systems – continued

ALLEN APPLIANCE COMPANY – An example of an inventory simulation  Allen Appliance stocks and sells the KitchenChef electric mixer.  Allen wishes to determine an optimal inventory policy for the mixer based on the following data:  Data –Unit cost is $200, and selling price is $260. –Annual holding cost rate is 26%. –Orders are placed at the end of a week, and arrive at the beginning of a week, two weeks later. –Ordering cost is $45 per order. –Backorder cost is $5 per unit per week. –Backorder administrative cost is $2 per unit. Continued…

–Distribution of…  The number of customers who arrive weekly: P(Arrivals = 0) =.10 P(Arrivals = 1) =.30 P(Arrivals = 2) =.25 P(Arrivals = 3) =.20 P(Arrivals = 4) =.15  The demand per customer: P(Demand = 1) = 0.10 P(Demand = 2) = 0.15 P(Demand = 3) = 0.40 P(Demand = 4) = 0.35 ALLEN APPLIANCE COMPANY

AAC – Using an Analytical Model  Let us assume first a constant demand rate, and use an analytical model. We need to calculate the following parameters: Average weekly demand = (Average number of customers/week)(Average demand/customer) = [.10(0)+.25(2)+.2(3)+.15(4)][.10(1)+.15(2)+.40(3)+.35(4)] = (2)(3) = 6 Holding cost per unit per week = (Ann. Holding cost rate)(Unit cost)/52 =.26(200)/52 = $1

 Assume the following ordering policy :  Q * = 25  ROP = 10 AAC – Using an Analytical Model

 The random number mapping associated with the distributions are: Number of ArrivalsProbabilityRandom # mapping – – – – – 99 Demand/customerProbabilityRandom # mapping – – – – 99 AAC – The Simulation Model

 The simulation keeps track of the following quantities: –Beginning inventory for the week = Ending inventory of the previous week + order received. –Number of retailers arriving, their demand, and the total weekly demand. –Ending inventory for the week = Beginning inventory + order received – weekly demand. AAC – The Simulation Logic

 The simulation determines whether or not an order should be placed as follows: –Is the ending inventory  10 and is there no outstanding order? If so, place an order and keep track of the lead time.  The simulation calculates the Weekly cost: –Ordering cost (if applicable) + Holding cost (if ending inventory > 0) + Backorder cost (if ending inventory < 0). AAC – The Simulation Logic

 Initial inventory = 25.  Weekly cost = Order cost (if any) + 1(Stock on hand) + 2(New back orders) + 5(Total backorders)  Total cost for 10 weeks = $415 (weekly average = $41.5). AAC – 10 week simulation results

AAC – 1000 weeks of simulation spreadsheet results

Simulation of a Queuing System  In queuing systems time itself is a random variable. Therefore, we use the next event simulation approach.  The simulated data are updated each time a new event takes place (not at a fixed time periods.)

CAPITAL BANK An example of queuing system simulation  Capital Bank is considering opening the bank on Saturdays morning from 9:00 a.m.  Management would like to determine the waiting time on Saturday morning based on the following data:

CAPITAL BANK  Data: –There are 5 teller positions of which only three will be staffed.  Ann Doss is the head teller, experienced, and fast.  Bill Lee and Carla Dominguez are associate tellers less experienced and slower.

CAPITAL BANK  Data: –Service time distributions: Ann’s Service Time Distribution Bill and Carla’s Service Time Distribution Service Time Probability Service TimeProbability.5 minutes.051 minute

CAPITAL BANK  Data: –Customer inter-arrival time distribution inter-arrival time Probability. 5 min –Service priority rule is first come first served  A simulation model is required to analyze the service.

 Calculating expected values: –E(inter-arrival time) =.5(.65)+1( (.15)+2(.05) =.80 minutes [75 customers arrive per hour on average, (60/.8=75)] –E(service time for Ann) =.1(.05)+1(.10)+…+3.5(.05) = 2 minutes [Ann can serve 60/2=30 customers/hour on average] –E(Service time for Bill and Carla) = 1(.05)+1.5(.15)+…+4.5(.05) = 2.5 minutes [Bill and Carla can serve 60/2.5=24 customers/hour on average]. CAPITAL BANK – Solution

 To reach a steady state the bank needs to employ all the three tellers (30+2(24) = 78 > 75). Random Number Mapping

 If no customer waits in line, an arriving customer seeks service by a free teller in the following order: Ann, Bill, Carla.  If all the tellers are busy the customer waits in line and takes then the next available teller.  The waiting time is the time a customer spends in line, and is Time service begins - Arrival Time The Simulation logic

CAPITAL – Simulation Demonstration MappingInterarrival time 80 – minutes Mapping Bill’s Service time 40 – minutes Ann Bill

1000 Customer Simulation

CAPITAL – 1000 Customer Simulation This simulation estimates two performance measures: Average waiting time in line (W q ) = 1.67 minutes Average waiting time in the system W = minutes This simulation estimates two performance measures: Average waiting time in line (W q ) = 1.67 minutes Average waiting time in the system W = minutes  To determine the other performance measures, we can use Little’s formulas we learned in Ch13: –Average number of customers in line L q =(1/.80)(1.67) = customers –Average number of customers in the system = (1/.80)(3.993) = 4.99 customers.  To determine the other performance measures, we can use Little’s formulas we learned in Ch13: –Average number of customers in line L q =(1/.80)(1.67) = customers –Average number of customers in the system = (1/.80)(3.993) = 4.99 customers. Average inter-arrival time =.80 minutes.

Additional Uses of Simulation  Simulation is used to describe the behavior, distribution and/or characteristics of some bottom- line performance measure when values of one or more input variables are uncertain.  Often, some input variables are under the decision makers control.  We can use simulation to assist in finding the values of the controllable variables that cause the system to operate optimally.

End of Chapter 12