Simulation A Queuing Simulation. Example The arrival pattern to a bank is not Poisson There are three clerks with different service rates A customer must.

Slides:



Advertisements
Similar presentations
Waiting Line Management
Advertisements

Structure of a Waiting Line System
Module C8 Queuing Economic/Cost Models. ECONOMIC ANALYSES Each problem is different Examples –To determine the minimum number of servers to meet some.
IE 429, Parisay, January 2003 Review of Probability and Statistics: Experiment outcome: constant, random variable Random variable: discrete, continuous.
Lab Assignment 1 COP 4600: Operating Systems Principles Dr. Sumi Helal Professor Computer & Information Science & Engineering Department University of.
1 Simulation Chapter Ten Overview of Simulation When do we prefer to develop simulation model over an analytic model? When not all the underlying.
Queuing Models M/M/k Systems. CLASSIFICATION OF QUEUING SYSTEMS Recall that queues are classified by (Arrival Dist.)/(Service Dist.)/(# servers) Designations.
The Theory of Queues Models of Waiting in line. Queuing Theory Basic model: Arrivals  Queue  Being Served  Done – Queuing theory lets you calculate:
Queuing Models Basic Concepts
Chap. 20, page 1051 Queuing Theory Arrival process Service process Queue Discipline Method to join queue IE 417, Chap 20, Jan 99.
Queuing Models Economic Analyses. ECONOMIC ANALYSES Each problem is different Examples –To determine the minimum number of servers to meet some service.
Simulation A Queuing Simulation. Example The arrival pattern to a bank is not Poisson There are three clerks with different service rates A customer must.
Simulation An Inventory Simulation. Example Daily demand for refrigerators at Hotpoint City has a probability distribution Lead time is not fixed but.
Other Markovian Systems
Simulation with ArenaChapter 2 – Fundamental Simulation Concepts Discrete Event “Hand” Simulation of a GI/GI/1 Queue.
MGTSC 352 Lecture 23: Congestion Management Introduction: Asgard Bank example Simulating a queue Types of congested systems, queueing template Ride’n’Collide.
The Theory of Queues Models of Waiting in line. Queuing Theory Basic model: Arrivals  Queue  Being Served  Done – Queuing theory lets you calculate:
Simulating Single server queuing models. Consider the following sequence of activities that each customer undergoes: 1.Customer arrives 2.Customer waits.
Module C10 Simulation of Inventory/Queuing Models.
Queuing. Elements of Waiting Lines  Population –Source of customers Infinite or finite.
Simulation Basic Concepts. NEED FOR SIMULATION Mathematical models we have studied thus far have “closed form” solutions –Obtained from formulas -- forecasting,
The Poisson process and exponentially distributed service time In real life customers don’t arrive at pre-ordained times as specified in the last tutorial…
Simulation Basic Concepts. NEED FOR SIMULATION Mathematical models we have studied thus far have “closed form” solutions –Obtained from formulas -- forecasting,
QUEUING MODELS Queuing theory is the analysis of waiting lines It can be used to: –Determine the # checkout stands to have open at a store –Determine the.
Internet Queuing Delay Introduction How many packets in the queue? How long a packet takes to go through?
Lecture 14 – Queuing Systems
Simulation Examples ~ By Hand ~ Using Excel
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
1 Chapter 17 Standing in line – at the bank, the market, the movies – is the time-waster everyone loves to hate. Stand in just one 15-minute line a day,
Waiting Line Models (1) Pertemuan 11 Matakuliah: K0442-Metode Kuantitatif Tahun: 2009.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 Slide © 2001 South-Western College Publishing/Thomson Learning Anderson Sweeney Williams Anderson Sweeney Williams Slides Prepared by JOHN LOUCKS QUANTITATIVE.
4/11: Queuing Models Collect homework, roll call Queuing Theory, Situations Single-Channel Waiting Line System –Distribution of arrivals –Distribution.
1 Queuing Analysis Overview What is queuing analysis? - to study how people behave in waiting in line so that we could provide a solution with minimizing.
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,
Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.
1 Elements of Queuing Theory The queuing model –Core components; –Notation; –Parameters and performance measures –Characteristics; Markov Process –Discrete-time.
1 Systems Analysis Methods Dr. Jerrell T. Stracener, SAE Fellow SMU EMIS 5300/7300 NTU SY-521-N NTU SY-521-N SMU EMIS 5300/7300 Queuing Modeling and Analysis.
1 Queuing Systems (2). Queueing Models (Henry C. Co)2 Queuing Analysis Cost of service capacity Cost of customers waiting Cost Service capacity Total.
1 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
SIMULATION OF A SINGLE-SERVER QUEUEING SYSTEM
WOOD 492 MODELLING FOR DECISION SUPPORT Lecture 25 Simulation.
MGTSC 352 Lecture 25: Congestion Management MEC example Manufacturing example.
Copyright 2006 John Wiley & Sons, Inc. Beni Asllani University of Tennessee at Chattanooga Waiting Line Analysis for Service Improvement Operations Management.
Waiting Lines and Queuing Theory Models
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
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.
1 Ardavan Asef-Vaziri Sep-09Operations Management: Waiting Lines3 Example: The arrival rate to a GAP store is 6 customers per hour and has Poisson distribution.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
1 1 Slide Chapter 12 Waiting Line Models n The Structure of a Waiting Line System n Queuing Systems n Queuing System Input Characteristics n Queuing System.
EVOLUTION OF INDUSTRIAL ENGINEERING Prof. Dr. Orhan TORKUL Res. Asst. M. Raşit CESUR Res. Asst. Furkan YENER.
Example 14.3 Queuing | 14.2 | 14.4 | 14.5 | 14.6 | 14.7 |14.8 | Background Information n County Bank has several.
Random Variables r Random variables define a real valued function over a sample space. r The value of a random variable is determined by the outcome of.
Queuing Theory. Model Customers arrive randomly in accordance with some arrival time distribution. One server services customers in order of arrival.
Introduction to Simulation Chapter 12. Introduction to Simulation  In many spreadsheets, the value for one or more cells representing independent variables.
18 Management of Waiting Lines
ETM 607 – Spreadsheet Simulations
Queuing Models Economic Analyses.
Internet Queuing Delay Introduction
Demo on Queuing Concepts
Internet Queuing Delay Introduction
DECISION MODELING WITH Prentice Hall Publishers and
Lecture 13 – Queuing Systems
Discrete Event “Hand” Simulation of a GI/GI/1 Queue
On average, there are 3(4.42) =13.26 claims waiting be processed.
Queuing Theory III.
Queuing Theory III.
Presentation transcript:

Simulation A Queuing Simulation

Example The arrival pattern to a bank is not Poisson There are three clerks with different service rates A customer must choose which idle server to go to These conditions do not meet the restrictions of queuing models developed earlierThese conditions do not meet the restrictions of queuing models developed earlier

TIME BETWEEN ARRIVALS MINUTES PROB RN

SERVICE TIME FOR ANN MINUTES PROB RN

SERVICE TIME FOR BOB MINUTES PROB RN

SERVICE TIME FOR CARL MINUTES PROB RN

CHOICE OF SERVER ALL THREE SERVERS IDLE CHOICE PROB RN ANN1/ BOB1/ CARL1/ * (* Carl’s prob. is.0001 more than 1/3) TWO SERVERS IDLE (A/B), (A/C), (B,C) CHOICE: A/B A/C B/C PROB RN Ann Ann Bob 1/2 0-4 Bob Carl Carl 1/25-9

ARBITRARY CHOICE OF COLUMNS FOR SIMULATION EVENT COLUMN ARRIVALS 10 CHOICE OF SERVER 15 ANN’S SERVICE 1 BOB’S SERVICE 2 CARL’S SERVICE 3

DESIRED QUANTITIES W Q -- the average waiting time in queue W -- the average waiting time in system L Q -- the average # customers in the queue L -- the average # customers in the system If we get estimates for W q and W, then from Little’s Laws we can estimate: –L Q = W Q –L = W

WILL WE REACH STEADY STATE? Average time between arrivals = 1/ =.4(1) +.3(2) +.2(3) +.1(4) = 2.0 minutes = 60/2 = 30/hr. Ann’s average service time = 1/  A =.1(3) +.2(4) + …+.05(9) = 5.3 minutes  A = 60/5.3 = 11.32/hr.

WILL WE REACH STEADY STATE? Bob’s average service time = 1/  B =.05(2) +.1(3) + …+.05(9) = 5.5 minutes  B = 60/5.5 = 10.91/hr. Carl’s average service time = 1/  C =.25(6) +.50(7) +.25(8) = 7 minutes  C = 60/7 = 8.57/hr. = 30/hr.  A +  B +  C = = 30.8/hr. Will reachSteady State! Will reach Steady State!

THE SIMULATION # RN IAT AT W Q RN SERV SB RN ST SE W : B 8: : : C : : B : : A 8: : : C : : B 8: : : A 8: : : C 8: : : B 8: :28 10

SIMULATION (CONT’D) # RN IAT AT W Q RN SERV SB RN ST SE W : A 8: : : A 8: : : C 8: : : B 8: : : A 8: : : C 8: : : B 8: : : A 8: : : B 8: :44 10

CALCULATING THE STEADY STATE QUANTITIES The quantities we want are steady state quantities -- –The system must be allowed to settle down to steady state –Throw out the results from the first n customers Here we use n = 8 –Average the results of the rest Here we average the results of customers 9 -18

CALCULATIONS FOR W, W q Total Wait in the queue of the last 10 customers = ( ) = 49 min. W Q  4.9 min. W Q  49/10 = 4.9 min. Total Wait in the system of the last 10 customers = ( ) = 90 min. W  9.0 min. W  90/10 = 9.0 min.

CALCULATIONS FOR L, L q Little’s Laws: L Q = W Q and L = W and W and W q must be in the same time units – = 30/hr. =.5/min. L Q 2.45L Q = W Q  (.5)(4.9) = 2.45 L4.50L = W  (.5)(9.0) = 4.50 ρ2.05ρ = est. of system utilization  = 2.05 Est. of Average number of idle workers 0.95Est. of Average number of idle workers  = 0.95

Mapping for Continuous Random Variables The Explicit inverse distribution method can be used to map a random number to exponential distribution variables. P(x<t) = 1-e -µt e -µt = 1-P(x<t) LN(e -µt ) = LN(1-P(x<t)) -µt = LN(1-P(x<t)) t = -LN(1-P(x<t))(1/µ)

Mapping for Continuous Random Variables (continued) Assume that service time is exponential distribution with  = 2 (i.e. average of 2 customers per minute). Random number generated = This RN is mapped to a service time of minutes = - LN( )*(1/2)

Mapping for Continuous Random Variables – Using Excel =RAND() Drag to cell B13 =-LN(1-B4)/$B$1 Drag to cell C13

To map random number to normal distribution variables, use NORMINV function in Excel Assume that service time is normal distribution with µ = 5 minutes and  = 1 minute Random number generated = This RN is mapped to a service time of 4.66 minutes =NORMINV( ,5,1) Random numbers and Excel

Review Simulation of Queuing Models to Determine System Parameters Check to See if Steady State Will Be Reached Determine random number mappings Use of pseudorandom numbers to estimate W Q and W Ignore the results from the first few arrivals Use Little’s Laws to get L, L Q Average Number of Busy Workers = L - L Q