WOOD 492 MODELLING FOR DECISION SUPPORT Lecture 27 Simulation.

Slides:



Advertisements
Similar presentations
Waiting Line Management
Advertisements

CS433: Modeling and Simulation
Lab Assignment 1 COP 4600: Operating Systems Principles Dr. Sumi Helal Professor Computer & Information Science & Engineering Department University of.
CS 241 Spring 2007 System Programming 1 Queuing Framework for Process Management Evaluation Lecture 20 Klara Nahrstedt.
QUEUING MODELS Based on slides for Hilier, Hiller, and Lieberman, Introduction to Management Science, Irwin McGraw-Hill.
Simulation. Example: A Bank Simulator We are given: –The number of tellers –The arrival time of each customer –The amount of time each customer requires.
Simulation of multiple server queuing systems
Economics 1 Principles of Microeconomics Instructor: Ted Bergstrom.
Classification of Simulation Models
Probability Distributions
Previously Optimization Probability Review Inventory Models Markov Decision Processes Queues.
Components and Organization of Discrete-event Simulation Model
Final Exam Review. Format of Final 20 questions –similar to quiz questions, possibly w/ some subquestions) Will have to answer all questions. 80%-90%:
Simulating Single server queuing models. Consider the following sequence of activities that each customer undergoes: 1.Customer arrives 2.Customer waits.
Queueing Models: Data Collection and Hand Simulation from Prof. Goldsman’s lecture notes.
Project 2: ATM’s & Queues
CIS 310 Management Information Systems Course Overview Guthrie, Summer 2014.
CPSC 531: DES Overview1 CPSC 531:Discrete-Event Simulation Instructor: Anirban Mahanti Office: ICT Class Location:
Lecture 4 Mathematical and Statistical Models in Simulation.
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 CD12s.1 Generating Random Observations from a Probability Distribution The method for generating.
TAKING AN ONLINE EXAM. Class website > Exams > Begin now Opens after class at 11:00 50 questions = 50 minutes About = # questions from each chapter You.
CDA6530: Performance Models of Computers and Networks Examples of Stochastic Process, Markov Chain, M/M/* Queue TexPoint fonts used in EMF. Read the TexPoint.
Monte Carlo Methods A Monte Carlo simulation creates samples from a known distribution For example, if you know that a coin is weighted so that heads will.
Spreadsheet Modeling & Decision Analysis
1 Performance Evaluation of Computer Networks: Part II Objectives r Simulation Modeling r Classification of Simulation Modeling r Discrete-Event Simulation.
CS 103 Discrete Structures Lecture 01 Introduction to the Course
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Lecture 0 Course Information Econ 340. Lecture 1: Intro2 Announcements Course time: 8:30 – 9:50 AM –Thus NOT “Michigan Time” –Reason: To give you time.
Administrative Issues ICS 151 Winter 2010 Instructor: Eli Bozorgzadeh.
Project 2: ATM’s & Queues. ATM’s & Queues  Certain business situations require customers to wait in line for a service Examples:  Waiting to use an.
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.
Stochastic Models Lecture 2 Poisson Processes
Example simulation execution The Able Bakers Carhops Problem There are situation where there are more than one service channel. Consider a drive-in restaurant.
Solutions Simulation ) The weather can be considered a stochastic system, because it evolves in a probabilistic manner from one day to the next.
WOOD 492 MODELLING FOR DECISION SUPPORT Lecture 24 Simulation.
WOOD 492 MODELLING FOR DECISION SUPPORT Lecture 25 Simulation.
1 CMPSCI 187 Computer Science 187 Introduction to Introduction to Programming with Data Structures Lecture 13: Queues Announcements.
Queues. Examples of Queue Problems Post Office Post Office (Each counter with all services v Different counters for different services) T-Mobile Customer.
Welcome to CC8/ALG 1. About Me Parent (16 years) Mathematics Educator (19 years) BLMS – 2 nd Year Washington (2 years) Publications: Co-Author Accelerated.
Simulation. Inverse Functions Actually, we’ve already done this with the normal distribution.
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.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
CDA6530: Performance Models of Computers and Networks Chapter 8: Statistical Simulation ---- Discrete Event Simulation (DES) TexPoint fonts used in EMF.
MODELING AND SIMULATION CS 313 Simulation Examples 1.
InQsit – What - On-line test ( ) How - Make reservations several days ahead of exam; during finals & midterms,
Simulation of single server queuing systems
Inter Arrival Times. Instead of giving a chance that someone, or something arrives in a particular time interval or not, we use the inter arrival times.
Managerial Decision Making Chapter 13 Queuing Models.
Queuing Theory. Model Customers arrive randomly in accordance with some arrival time distribution. One server services customers in order of arrival.
Random number generation
18 Management of Waiting Lines
Math 1316 Prof. Thomas Jay.
Simulation Statistics
CMSC 471 Introduction to Artificial Intelligence section 1 Course Overview Spring 2017.
ETM 607 – Spreadsheet Simulations
Quick overview of your schedule Spring-2017 SPAU 3343
Announcements Exam 3 grades are posted online
Modeling and Simulation CS 313
Lecture 0 Course Information
MGF (Labs 02-14) Math for Liberal Arts
Solutions Hwk Que3 1 The port of Miami has 3 docking berths for loading and unloading ships but is considering adding a 4th berth.
More Explanation of an example in chapter4
What do you learn in this class?
TexPoint fonts used in EMF.
Lon-Capa 8th (final) HW assignment due Wednesday, November 30 by 5 pm.
Solutions Hwk Que3 1 The port of Miami has 3 docking berths for loading and unloading ships but is considering adding a 4th berth.
CSE 115 November , 2008.
RANDOM VARIABLES Random variable:
Administrative Issues
TexPoint fonts used in EMF.
Presentation transcript:

WOOD 492 MODELLING FOR DECISION SUPPORT Lecture 27 Simulation

Review Simulated a single server queue with Next-event increment method State of the system at each time t – N(t) = number of customers in the queue at time t Random events in the simulation: –Arrival of customers (mean inter arrival times are 1/3 hour) –Serving the customers (mean service times are 1/5 hour) System transition formula: –Arrival: reset N(t) to N(t)+1 –Serve customer: reset N(t) to N(t)-1 Next-event increment has two steps: 1.Advance time to the time of the next event 2.Update N(t) Nov 9, 2012Wood Saba Vahid2 Example 16

Example 17: drive-in restaurant simulation A drive-in restaurant has one queue and two servers for bringing the food to the cars The cars arrive every 1 to 4 minutes according to the probabilities in the table below. CDF (same as F(x)) values are given in the last column. Cars wait for the first server who’s free or has been free the longest The servers have different times for serving cars –Server 1: uniform distribution between 2 to 4 minutes –Server 2: uniform distribution between 3 to 5 minutes Nov 9, 2012Wood Saba Vahid3

Uniform distribution Nov 9, 2012Wood Saba Vahid4

Simulating the drive-in system Use Next-event increment method Assume at t=0 there are 2 cars in line and both servers are busy State of the system = N(t) = number of cars in the line Potential events: –Arrival of cars (arrival) –Car served by server 1 (exit to 1) –Car served by server 2 (exit to 2) System transition formula: –Arrival: N(t)=N(t-1)+1 –Exit to 1 or exit to 2 : N(t)=N(t-1)-1 Simulation clock: moves to the next event time, decided by a random draw and inverse CDF transformation Nov 9, 2012Wood Saba Vahid5 Example 17

Final comments Exam on November 19 th, 9:00 am, same room as usual Grades will be posted at my door about one week later Check the course website for any potential updates Quiz 5 answers posted online Some extra simulation and network problems will be uploaded next week Friday, 16th 10 to 12 office hours room 2026 Nov 9, 2012Wood Saba Vahid6