CS433 Modeling and Simulation Lecture 11 Monté Carlo Simulation Dr. Anis Koubâa 05 Jan 2009 Al-Imam Mohammad Ibn.

Slides:



Advertisements
Similar presentations
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.
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.
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 3-1 © 2006 by Prentice Hall, Inc. Upper Saddle River, NJ Prepared by.
To accompany Quantitative Analysis for Management, 8e by Render/Stair/Hanna 6-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 6 Inventory.
Operations Research 2 Nur Aini Masruroh. Contents Introduction 1 Course outline 2 References 3 Grading 4.
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 16-1 © 2006 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 16.
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.
Simulation Modeling Chapter 14
To accompany Quantitative Analysis for Management, 8e by Render/Stair/Hanna 7-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 7 Linear.
To accompany Quantitative Analysis for Management, 8e by Render/Stair/Hanna 3-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 3 Fundamentals.
Transparency Masters to accompany Operations Management, 5E (Heizer & Render) 4-20 © 1998 by Prentice Hall, Inc. A Simon & Schuster Company Upper Saddle.
To accompany Quantitative Analysis for Management, 8e by Render/Stair/Hanna 15-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 15.
To accompany Quantitative Analysis for Management, 8e by Render/Stair/Hanna 14-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 14.
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.
© 2004 by Prentice Hall, Inc., Upper Saddle River, N.J F-1 Operations Management Simulation Module F.
Chapter 14 Simulation. Monte Carlo Process Statistical Analysis of Simulation Results Verification of the Simulation Model Computer Simulation with Excel.
CHAPTER 6 Statistical Analysis of Experimental Data
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 1-1 © 2006 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 1 Introduction.
Simulation Examples Continued
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 14-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 14.
To accompany Quantitative Analysis for Management, 8e by Render/Stair/Hanna 16-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 16.
Simulation Basic Concepts. NEED FOR SIMULATION Mathematical models we have studied thus far have “closed form” solutions –Obtained from formulas -- forecasting,
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
To accompany Quantitative Analysis for Management, 8e by Render/Stair/Hanna 17-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 17.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Prentice Hall Slide 5- 1.
Introduction to Management Science
Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine.
Chapter 13 Operational Decision-Making Tools: Simulation.
CS433 Modeling and Simulation Lecture 16 Output Analysis Large-Sample Estimation Theory Dr. Anis Koubâa 30 May 2009 Al-Imam Mohammad Ibn Saud University.
F Simulation PowerPoint presentation to accompany Heizer and Render
B – 1 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall. Simulation Supplement B.
F - 1© 2011 Pearson Education, Inc. publishing as Prentice Hall F F Simulation PowerPoint presentation to accompany Heizer and Render Operations Management,
1 1 Slide Simulation. 2 2 Simulation n Advantages and Disadvantages of Simulation n Simulation Modeling n Random Variables n Simulation Languages n Validation.
Contemporary Engineering Economics, 6 th edition Park Copyright © 2016 by Pearson Education, Inc. All Rights Reserved Risk Simulation Lecture No. 40 Chapter.
CS433 Modeling and Simulation Lecture 15 Random Number Generator Dr. Anis Koubâa 24 May 2009 Al-Imam Mohammad Ibn Saud Islamic University College Computer.
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 17-1 © 2006 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 17.
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna M3-1 © 2006 by Prentice Hall, Inc. Upper Saddle River, NJ Module 3 Decision.
Ch 6-1 © 2004 Pearson Education, Inc. Pearson Prentice Hall, Pearson Education, Upper Saddle River, NJ Ostwald and McLaren / Cost Analysis and Estimating.
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.,
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.
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.
Simulation. Introduction What is Simulation? –Try to duplicate features, appearance, and characteristics of real system. Idea behind Simulation –Imitate.
Simulations. To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 3-2 © 2006 by Prentice Hall, Inc. Upper Saddle River, NJ
1 1 Slide Simulation Professor Ahmadi. 2 2 Slide Simulation Chapter Outline n Computer Simulation n Simulation Modeling n Random Variables and Pseudo-Random.
MONTE CARLO ANALYSIS When a system contains elements that exhibit chance in their behavior, the Monte Carlo method of simulation may be applied.
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.
Simulation in Healthcare Ozcan: Chapter 15 ISE 491 Fall 2009 Dr. Burtner.
MAT 4830 Mathematical Modeling 04 Monte Carlo Integrations
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, 8e by Render/Stair/Hanna 7-1 1© 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 7 Linear.
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 15-1 © 2006 by Prentice Hall, Inc. Upper Saddle River, NJ Prepared by.
Simulation Modeling & Simulation 33.  Simulation: It is a numerical technique for conducting experiments with certain types of mathematical models.
Operational Decision-Making Tools: Simulation
Copyright 2006 John Wiley & Sons, Inc. Beni Asllani University of Tennessee at Chattanooga Operations Management - 5 th Edition Chapter 12 Supplement Roberta.
Simulation Modeling.
Simulasi sistem persediaan
Al-Imam Mohammad Ibn Saud University Large-Sample Estimation Theory
Prepared by Lee Revere and John Large
Professor S K Dubey,VSM Amity School of Business
Simulation Modeling.
Simulation Modeling Chapter 15
OPERATIONS MANAGEMENT: Creating Value Along the Supply Chain,
Simulation Modeling Chapter 15
Simulation Supplement B
Presentation transcript:

CS433 Modeling and Simulation Lecture 11 Monté Carlo Simulation Dr. Anis Koubâa 05 Jan 2009 Al-Imam Mohammad Ibn Saud University

Reading  Required  Lemmis Park, Discrete Event Simulation - A First Course, Chapter 8: Section8.2, Monte Carlo Estimation

Goals of Today  Understand the concept of Monté Carlo Simulation  Learn how to use Monté Carlo Simulation to make good decisions  Learn how to use Monté Carlo Simulation for estimating complex integrals

What is Monte Carlo Simulation ?  Monte Carlo methods are a widely used class of computational algorithms for simulating the behavior of various physical and mathematical systems, and for other computations.  Monte Carlo algorithm is often a numerical Monte Carlo method used to find solutions to mathematical problems (which may have many variables) that cannot easily be solved, (e.g. integral calculus, or other numerical methods)

What is Monte Carlo Simulation ?  A Monte Carlo simulation is a statistical simulation technique that provides approximate solutions to problems expressed mathematically. It utilizes a sequence of random numbers to perform the simulation.  This technique can be used in different domains:  complex integral computations,  economics,  making decisions in specific complex problems, …

General Algorithm of Monte Carlo Simulation  In general, Monte Carlo Simulation is roughly composed of five steps: 1.Set up probability distributions: what is the probability distribution that will be considered in the simulation 2.Build cumulative probability distributions 3.Establish an interval of random numbers for each variable 4.Generate random numbers: only accept numbers that satisfies a given condition. 5.Simulate trials

Examples  Example 1 and Example 2: using Monte Carlo simulation for the analysis of real systems  Example 3: using Monte Carlo simulation to evaluate an integral.

Example 1. HERFY Cake Shop

 The cake seller HERFY shop sells a random number of cakes each day. HERFY manager wants to determine a policy for managing his inventory of cakes (e.g. how many cakes should he prepare in 10 days).  We can use Monte Carlo simulation to analyze HERFY inventory… Demand Frequency Probability for cakes =10/200 Example inspired from: To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna © 2006 by Prentice Hall, Inc. Upper Saddle River, NJ 07458

Example 1. HERFY Cake Shop Step 1: Set up the probability distribution for cake sales. Using historical data HERFY Shop determined that 5% of the time 0 cakes were demanded, 10% of the time 1 cake was demanded, etc… P(1) = 10%

Example 1. HERFY Cake Shop Step 2: Build a Cumulative Probability Distribution 15% of the time the demand was 0 or 1 cake P(0) = 5% + P(1) = 10%

Example 1. HERFY Cake Shop Demand Frequency Probability Cumulative Probability Random Number Interval Step 3: Establish an interval of random numbers. Must be in correct proportion Note: 5% of the time 0 cakes are demanded, so the random number interval contains 5% of the numbers between 1 and 100

Example 1. HERFY Cake Shop Step 4: Generate random numbers

Example 1. HERFY Cake Shop Step 5: Simulate a series of trials. Using random number table on previous slide, simulated demand for 10 days is: Random number: Simulated demand: Tires Interval of DemandedRandom Numbers

Example 1. HERFY Cake Shop Create lookup table using cumulative probability Generate a random number and look it up in the table

Example 1. HERFY Cake Shop

Example 2. SEC Power Company Example inspired from: To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna

Example 2. SEC Power Company  SEC provides power to Riyadh city.  The company is concerned about generator failures because a breakdown costs about 75 SAR per hour versus a 30 SAR per hour salary for repairpersons who work 24 hours a day, seven days a week.  Management wants to evaluate the service maintenance cost, simulated breakdown cost, and total cost.  We can use Monte Carlo simulation to analyze SEC system costs. Example inspired from: To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna © 2006 by Prentice Hall, Inc. Upper Saddle River, NJ 07458

Example 2. SEC Power Company Example inspired from: To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna © 2006 by Prentice Hall, Inc. Upper Saddle River, NJ ½ ½ ½ Time Between Breakdowns (Hrs) Number of Times Observed Probability Cumulative Probability Random Number Interval Steps 1-3: Determine probability, cumulative probability, and random number interval - BREAKDOWNS. Total

Example 2. SEC Power Company Example inspired from: To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna © 2006 by Prentice Hall, Inc. Upper Saddle River, NJ Repair Time Required (Hours) Number of Times Observed ProbabilityCumulative Probability Random Number Interval Steps 1-3: Determine probability, cumulative probability, and random number interval - REPAIRS.

Example 2. SEC Power Company Example inspired from: To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna © 2006 by Prentice Hall, Inc. Upper Saddle River, NJ :00 713: : : : : : : : :002 ::::::::: :006:004228: :308: :004.5 Simulation Trial Random Number Time Repair Can Begin Random Number Time Repair Ends Repair Time No. of hrs. Machine is down Time b/t Breakdowns Time of Breakdown

Example 2. SEC Power Company Example inspired from: To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna © 2006 by Prentice Hall, Inc. Upper Saddle River, NJ Cost Analysis  Service maintenance = 34 hrs of worker service X 30 SAR per hr = 1,020 SAR  Simulate machine breakdown costs = 44 total hrs of breakdown X $75 lost per hr of downtime = 3,300 SAR  Total simulated maintenance cost of the current system = service cost + breakdown costs = $1,020 + $3,300 = $4,320

Example 3. Computation of Integrals

 The Monte Carlo method can be used to numerically approximate the value of an integral  Pick n randomly distributed points x 1, x 2, …, x n in the interval [a,b]  Determine the average value of the function  Compute the approximation to the integral  An estimate for the error is Where

Algorithm. Estimation of  = % Matlab Program to Find Pi using Random Numbers % Tom Huber, June 15, 1996 Nrand = input('How Many Random Numbers '); NInside = 0; for nloops=1:Nrand Xrand = rand; % Generate Random XY Point Yrand = rand; Rrand = Xrand^2 + Yrand^2; % Find its distance from origin if (Rrand <= 1) NInside = NInside + 1; end disp(['Total Generated: ' num2str(Nrand) ' Inside Pts: ' num2str(NInside)]); piapprox = 4*NInside/Nrand; disp([' Approximation to pi = ' num2str(piapprox)]);