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.

Slides:



Advertisements
Similar presentations
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.
Advertisements

11 Simulation. 22 Overview of Simulation – When do we prefer to develop simulation model over an analytic model? When not all the underlying assumptions.
Desktop Business Analytics -- Decision Intelligence l Time Series Forecasting l Risk Analysis l Optimization.
Monte Carlo Simulation A technique that helps modelers examine the consequences of continuous risk Most risks in real world generate hundreds of possible.
Chapter 10: Simulation Modeling
1 Simulation Chapter Ten Overview of Simulation When do we prefer to develop simulation model over an analytic model? When not all the underlying.
1 Introduction to Operations Research Prof. Fernando Augusto Silva Marins
CS433 Modeling and Simulation Lecture 11 Monté Carlo Simulation Dr. Anis Koubâa 05 Jan 2009 Al-Imam Mohammad Ibn.
Spreadsheet Demonstration
Module F: Simulation. Introduction What: Simulation Where: To duplicate the features, appearance, and characteristics of a real system Why: To estimate.
FIN 685: Risk Management Topic 5: Simulation Larry Schrenk, Instructor.
1 SIMULATION – PART I Introduction to Simulation and Its Application to Yield Management For this portion of the session, the learning objectives are:
1 1 Slide © 2005 Thomson/South-Western Chapter 13 Simulation n Advantages and Disadvantages of Using Simulation n Modeling n Random Variables and Pseudo-Random.
Simulation.
Introduction to Simulation. What is simulation? A simulation is the imitation of the operation of a real-world system over time. It involves the generation.
Chapter 14 Simulation. Monte Carlo Process Statistical Analysis of Simulation Results Verification of the Simulation Model Computer Simulation with Excel.
SIMULATION. Simulation Definition of Simulation Simulation Methodology Proposing a New Experiment Considerations When Using Computer Models Types of Simulations.
Descriptive Modelling: Simulation “Simulation is the process of designing a model of a real system and conducting experiments with this model for the purpose.
QMF Simulation. Outline What is Simulation What is Simulation Advantages and Disadvantages of Simulation Advantages and Disadvantages of Simulation Monte.
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.
Operations Management
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Simulation.
Introduction to ModelingMonte Carlo Simulation Expensive Not always practical Time consuming Impossible for all situations Can be complex Cons Pros Experience.
Monte Carlo Simulation 1.  Simulations where random values are used but the explicit passage of time is not modeled Static simulation  Introduction.
Lecture 11 Implementation Issues – Part 2. Monte Carlo Simulation An alternative approach to valuing embedded options is simulation Underlying model “simulates”
Problem 1 Given a high-resolution computer image of a map of an irregularly shaped lake with several islands, determine the water surface area. Assume.
Managerial Decision Modeling with Spreadsheets
Financial Risk Management of Insurance Enterprises
Introduction to Management Science
MBAD/F 619: Risk Analysis and Financial Modeling Instructor: Linda Leon Fall 2014
Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine.
SIMULATION USING CRYSTAL BALL. WHAT CRYSTAL BALL DOES? Crystal ball extends the forecasting capabilities of spreadsheet model and provide the information.
Chapter 13 Operational Decision-Making Tools: Simulation.
F Simulation PowerPoint presentation to accompany Heizer and Render
F - 1© 2011 Pearson Education, Inc. publishing as Prentice Hall F F Simulation PowerPoint presentation to accompany Heizer and Render Operations Management,
Contemporary Engineering Economics, 6 th edition Park Copyright © 2016 by Pearson Education, Inc. All Rights Reserved Risk Simulation Lecture No. 40 Chapter.
1 Peter Fox GIS for Science ERTH 4750 (98271) Week 8, Tuesday, March 20, 2012 Analysis and propagation of errors.
Crystal Ball: Risk Analysis  Risk analysis uses analytical decision models or Monte Carlo simulation models based on the probability distributions to.
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.
Transparency Masters to accompany Heizer/Render – Principles of Operations Management, 5e, and Operations Management, 7e © 2004 by Prentice Hall, Inc.,
Monté Carlo Simulation  Understand the concept of Monté Carlo Simulation  Learn how to use Monté Carlo Simulation to make good decisions  Learn how.
McGraw-Hill/Irwin © 2006 The McGraw-Hill Companies, Inc., All Rights Reserved. 1.
Monte Carlo Process Risk Analysis for Water Resources Planning and Management Institute for Water Resources 2008.
PowerPoint presentation to accompany Operations Management, 6E (Heizer & Render) © 2001 by Prentice Hall, Inc., Upper Saddle River, N.J F-1 Operations.
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.
ESD.70J Engineering Economy Module - Session 21 ESD.70J Engineering Economy Fall 2010 Session Two Xin Zhang – Prof. Richard de Neufville.
1 1 Slide © 2004 Thomson/South-Western Simulation n Simulation is one of the most frequently employed management science techniques. n It is typically.
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.
MAT 4830 Mathematical Modeling 04 Monte Carlo Integrations
System Analysis System – set of interdependent elements that interact in order to accomplish a one or more final outcomes. Constrained and affected by:
EMIS 7300 SYSTEMS ANALYSIS METHODS FALL 2005 Dr. John Lipp Copyright © 2005 Dr. John Lipp.
Simulation Discrete Variables. What is it? A mathematical model Probabilistic Uses the entire range of possible values of a variable in the model.
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 15-1 © 2006 by Prentice Hall, Inc. Upper Saddle River, NJ Prepared by.
Problem 1: Service System Capacity CustomersServed Customers Queue Server Problem: Can a server taking an average of x time units meet the demand? Solution.
Operational Decision-Making Tools: Simulation
Introduction to Simulation Chapter 12. Introduction to Simulation  In many spreadsheets, the value for one or more cells representing independent variables.
Simulation Modeling.
Simulasi sistem persediaan
Computer Simulation Henry C. Co Technology and Operations Management,
Comparing Dynamic Programming / Decision Trees and Simulation Techniques BDAuU, Prof. Eckstein.
Monte Carlo Simulation
Prepared by Lee Revere and John Large
Professor S K Dubey,VSM Amity School of Business
Simulation Modeling.
Slides by John Loucks St. Edward’s University.
Simulation Part 1: Simulation with Discrete Random Variables
Presentation transcript:

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 model are valid. When mathematical complexity makes it hard to provide useful results. When “good” solutions (not necessarily optimal) are satisfactory. A simulation develops a model to numerically evaluate a system over some time period. By estimating characteristics of the system, the best alternative from a set of alternatives under consideration can be selected.

2 Continuous simulation systems monitor the system each time a change in its state takes place. Discrete simulation systems monitor changes in a state of a system at discrete points in time. Simulation of most practical problems requires the use of a computer program. Overview of Simulation

3 Approaches to developing a simulation model Using add-ins to Excel such or Crystal Ball Using general purpose programming languages such as: FORTRAN, PL/1, Pascal, Basic. Using simulation languages such as GPSS, SIMAN, SLAM. Using a simulator software program. Overview of Simulation Modeling and programming skills, as well as knowledge of statistics are required when implementing the simulation approach.

4 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.

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

6 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 jaw breakers) = 0.10 P(Daily demand = 1 jaw breakers) = 0.15 P(Daily demand = 2 jaw breakers) = 0.20 P(Daily demand = 3 jaw breakers) = 0.30 P(Daily demand = 4 jaw breakers) = 0.20 P(Daily demand = 5 jaw breakers) = 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 number mapping uses the probability function to generate random demand. 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

Random number mapping – The Cumulative Distribution Approach The daily demand X is determined by the random number Y between 0 and 1, such that X is the smallest value for which F(X)  Y. F(1) =.25 <.34 F(2) =.45 >.34 Y =

9 A random demand can be generated by hand (for small problems) from a table of pseudo random numbers. Using Excel a random number can be generated by The RAND() function The random number generation option (Tools>Data Analysis) Simulation of the JVC Problem

10 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.

11 The simulation is repeated and stops once total demand reaches 40 or more. Simulation of the JVC Problem The number of “simulated” days required for the total demand to reach 40 or more is recorded.

12 Trials = 1 Max=…; sales = 0 S = 0; S2 = 0 Day = 0 Determine Daily demand (D) Sales = Sales + D Day = Day + 1 Sales < 40 Record day S = S + day S2 = S2 + Day 2 Trials< Max End Trials = Trials + 1 Sales = 0 Day = 0 JVC – A Flow Chart Flow charts help guide the simulation program Yes No Yes

13 JVC – Excel Spreadsheet =MAX(A5:A105 ) =IF(C5<40,A5+1,"") =IF(C5<40,VLOOKUP(RAND(),$K$6:$L$11,2),"") =IF(C5<40,B6+C5,"" ) VLOOKUP TABLE Enter this data Drag A5:C5 to A105:C105

14 JVC – Excel Spreadsheet =(E3-16)/E4 =TDIST(ABS(H5),9,2) The p-value =.2966… This value is quite high compared to any reasonable significance level. Based on this data there is insufficient evidence to infer that the mean number of days differs from 16.

15 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.) The process interactive approach is used in this kind of simulation (all relevant processes related to an item as it moves through the system, are traced and recorded).

16 Simulation of an M / M / 1 Queue Applying the process interaction approach we have: New arrival time = Previous arrival time + Random interarrival time. Service finish time = Service start time + Random service time. A customer joins the line if there is a service in progress (its arrival time < current service finish time ). A customer gets served when the server becomes idle. Waiting times and number of customers in line and in the system are continuously recorded.

17 LANFORD SUB SHOP An example of the M/M/1 queuing simulation Lanford Sub Shop sells sandwiches prepared by its only employee, the owner Frank Lanford. Frank can serve a customer in 1 minute on the average according to an exponential distribution. During lunch time, 11:30 a.m. to 1:30 p.m., an average of 30 customers an hour arrive at the shop according to a Poisson distribution.

18 LANFORD SUB SHOP Using simulation, Frank wants to determine the average time a customer must wait for service Using simulation, Frank wants to determine the average time a customer must wait for service

19 LANFORD SUB SHOP - Solution Input Data  = 30,  = 60. Data generated by the simulation: C# = The number of the arriving customer. R#1 = The random number used to determine interarrivals. IAT = The interarrival time. AT = The arrival time for the customer. TSB = The time at which service begins for the customer. WT = The waiting time a customer spends in line. R#2 = The random number used to determine the service time. ST = The service time. TSE = The time at which service end for the customer

20 The interarrival time = - ln( ) / 30 = hours = 1.09 minutes The explicit inverse method Arrival time of customer 3 = Arrival time of customer = Waiting time = End of service = Average waiting time = ( ) / 10 = 1.59 Average waiting time = ( ) / 10 = 1.59 LANFORD SUB SHOP – Simulation for first 10 Customers T ime S ervice E nds S ervice T ime T ime S ervice B egins A rrival T ime

21 LANFORD SUB SHOP – Simulation for first 1000 Customers