QUEUING SYSTEM Dr. Adil Yousif Lecture 2. 2  Mathematical analysis of queues and waiting times in stochastic systems.  Used extensively to analyze production.

Slides:



Advertisements
Similar presentations
Introduction to Queuing Theory
Advertisements

LESSONs NINE and TEN QUEUING MODELS.
Capacity Setting and Queuing Theory
Lecture 13 – Continuous-Time Markov Chains
Model Antrian By : Render, ect. Outline  Characteristics of a Waiting-Line System.  Arrival characteristics.  Waiting-Line characteristics.  Service.
Queuing Systems Chapter 17.
Queueing Theory: Part I
Queueing Theory Chapter 17.
1 Service A Queuing System Arrival Rate (  Average Number in Queue ( L q ) Avg Time in System ( W ) Avg Number in System ( L ) Average Wait in Queue.
Introduction to Queuing and Simulation
Queueing Theory Professor Stephen Lawrence Leeds School of Business University of Colorado Boulder, CO
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
Operations Management Waiting-Line Models Module D
Chapter 9: Queuing Models
Lecture 14 – Queuing Systems
Group members  Hamid Ullah Mian  Mirajuddin  Safi Ullah.

Queuing Theory (Waiting Line Models)
Queuing Networks. Input source Queue Service mechanism arriving customers exiting customers Structure of Single Queuing Systems Note: 1.Customers need.
Spreadsheet Modeling & Decision Analysis
Introduction to Management Science
Introduction to Queuing Theory
Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.
Introduction to Queueing Theory
Management of Waiting Lines McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Introduction to Operations Research
Lecture 14 – Queuing Networks Topics Description of Jackson networks Equations for computing internal arrival rates Examples: computation center, job shop.
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.
1 Queuing Models Dr. Mahmoud Alrefaei 2 Introduction Each one of us has spent a great deal of time waiting in lines. One example in the Cafeteria. Other.
1 Elements of Queuing Theory The queuing model –Core components; –Notation; –Parameters and performance measures –Characteristics; Markov Process –Discrete-time.
Waiting Lines and Queuing Models. Queuing Theory  The study of the behavior of waiting lines Importance to business There is a tradeoff between faster.
Queuing Theory. Introduction Queuing is the study of waiting lines, or queues. The objective of queuing analysis is to design systems that enable organizations.
CS433 Modeling and Simulation Lecture 12 Queueing Theory Dr. Anis Koubâa 03 May 2008 Al-Imam Mohammad Ibn Saud University.
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 EXAMPLES QUEUEING SYSTEMS.
1 ISE 195 Introduction to Industrial & Systems Engineering.
Waiting Lines and Queuing Theory Models
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.
Chapter 6 Queueing Models
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.
Queuing Theory.  Queuing Theory deals with systems of the following type:  Typically we are interested in how much queuing occurs or in the delays at.
SIMULATION EXAMPLES. Monte-Carlo (Static) Simulation Estimating profit on a sale promotion Estimating profit on a sale promotion Estimating profit on.
© 2015 McGraw-Hill Education. All rights reserved. Chapter 17 Queueing Theory.
Waiting Line Theroy BY, PRAYASH NEUPANE, KARAN CHAND & SANTOSH SHERESTHA.
Management of Waiting Lines Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent.
Queuing Models.
Mohammad Khalily Islamic Azad University.  Usually buffer size is finite  Interarrival time and service times are independent  State of the system.
Simple Queueing Theory: Page 5.1 CPE Systems Modelling & Simulation Techniques Topic 5: Simple Queueing Theory  Queueing Models  Kendall notation.
1 BIS 3106: Business Process Management (BPM) Lecture Nine: Quantitative Process Analysis (2) Makerere University School of Computing and Informatics Technology.
Abu Bashar Queuing Theory. What is queuing ?? Queues or waiting lines arise when the demand for a service facility exceeds the capacity of that facility,
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 18 Management of Waiting Lines.
Introduction to Queuing and Simulation
Models of Traffic Flow 1.
Al-Imam Mohammad Ibn Saud University
Queueing Theory What is a queue? Examples of queues:
Chapter 9: Queuing Models
Queuing Models (Waiting Lines)
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Chapter 8 การเข้าแถวคอยและการจําลอง Queuing and Simulation
Distributed Process Scheduling: 5.1 A System Performance Model
System Performance: Queuing
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Queueing Theory 2008.
MECH 3550 : Simulation & Visualization
Introduction to Queuing and Simulation
Course Description Queuing Analysis This queuing course
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Presentation transcript:

QUEUING SYSTEM Dr. Adil Yousif Lecture 2

2  Mathematical analysis of queues and waiting times in stochastic systems.  Used extensively to analyze production and service processes exhibiting random variability in market demand (arrival times) and service times.  Queues arise when the short term demand for service exceeds the capacity  Most often caused by random variation in service times and the times between customer arrivals.  If long term demand for service > capacity the queue will explode! What is Queuing Theory?

3  Capacity problems are very common in industry and one of the main drivers of process redesign  Need to balance the cost of increased capacity against the gains of increased productivity and service  Queuing and waiting time analysis is particularly important in service systems  Large costs of waiting and of lost sales due to waiting Prototype Example – ER at County Hospital  Patients arrive by ambulance or by their own accord  One doctor is always on duty  More and more patients seeks help  longer waiting times  Question: Should another MD position be instated? Why is Queuing Analysis Important?

4 Process capacity Cost Cost of waiting Cost of service Total cost A Cost/Capacity Tradeoff Model

5  Commercial Queuing Systems  Commercial organizations serving external customers  Ex. Dentist, bank, ATM, gas stations, plumber, garage …  Transportation service systems  Vehicles are customers or servers  Ex. Vehicles waiting at toll stations and traffic lights, trucks or ships waiting to be loaded, taxi cabs, fire engines, elevators, buses …  Business-internal service systems  Customers receiving service are internal to the organization providing the service  Ex. Inspection stations, conveyor belts, computer support …  Social service systems  Ex. Judicial process, the ER at a hospital, waiting lists for organ transplants or student dorm rooms … Examples of Real World Queuing Systems?

Flowchart for arrival routine, queuing model Arrival event Set delay = 0 for this customer and gather statistics Is the server busy? Schedule the next arrival event Add 1 to the number of customers delayed Make the server busy Schedule a departure event for this customer Add 1to the number in queue Write error message and stop simulation Store time of arrival of this customer Is the queue Full? Return NoYes No

Departure event Subtract 1 from the number in queue Is the queue empty? Compute delay of customer entering service and gather statistics Add 1 to the number of customers delayed Schedule a departure event for this customer Make the server idle Move each customer in queue (if any) up one place Eliminate departure event from consideration Return NoYes Flowchart for departure routine,queueing model

8 Components of a Basic Queuing Process Calling Populatio n Queue Service Mechanis m Input SourceThe Queuing System Jobs Arrival Process Queue Configuratio n Queue Discipline Served Jobs Service Process leave the system

9  The calling population  The population from which customers/jobs originate  The size can be finite or infinite (the latter is most common)  Can be homogeneous (only one type of customers/ jobs) or heterogeneous (several different kinds of customers/jobs)  The Arrival Process  Determines how, when and where customer/jobs arrive to the system  Important characteristic is the customers’/jobs’ inter-arrival times  To correctly specify the arrival process requires data collection of interarrival times and statistical analysis. Components of a Basic Queuing Process (II)

10  The queue configuration  Specifies the number of queues Single or multiple lines to a number of service stations  Their location  Their effect on customer behavior Balking and reneging  Their maximum size (# of jobs the queue can hold) Distinction between infinite and finite capacity Components of a Basic Queuing Process (III)

11 Example – Two Queue Configurations Servers Multiple Queues Servers Single Queue

12 1. The service provided can be differentiated  Ex. Supermarket express lanes 2. Labor specialization possible 3. Customer has more flexibility 4. Balking behavior may be deterred  Several medium-length lines are less intimidating than one very long line 1. Guarantees fairness  FIFO applied to all arrivals 2. No customer anxiety regarding choice of queue 3. Avoids “cutting in” problems 4. The most efficient set up for minimizing time in the queue 5. Jockeying (line switching) is avoided Multiple v.s. Single Customer Queue Configuration Multiple Line Advantages Single Line Advantages

13  The Service Mechanism  Can involve one or several service facilities with one or several parallel service channels (servers) - Specification is required  The service provided by a server is characterized by its service time Specification is required and typically involves data gathering and statistical analysis. Most analytical queuing models are based on the assumption of exponentially distributed service times, with some generalizations.  The queue discipline  Specifies the order by which jobs in the queue are being served.  Most commonly used principle is FIFO.  Other rules are, for example, LIFO, SPT, EDD…  Can entail prioritization based on customer type. Components of a Basic Queuing Process (IV)

14 1. Concealing the queue from arriving customers  Ex. Restaurants divert people to the bar or use pagers, amusement parks require people to buy tickets outside the park, banks broadcast news on TV at various stations along the queue, casinos snake night club queues through slot machine areas. 2. Use the customer as a resource  Ex. Patient filling out medical history form while waiting for physician 3. Making the customer’s wait comfortable and distracting their attention  Ex. Complementary drinks at restaurants, computer games, internet stations, food courts, shops, etc. at airports 4. Explain reason for the wait 5. Provide pessimistic estimates of the remaining wait time  Wait seems shorter if a time estimate is given. 6. Be fair and open about the queuing disciplines used Mitigating Effects of Long Queues

15 A Commonly Seen Queuing Model (I) C C C … C Customers (C) C S = Server C S C S Customer =C The Queuing System The Queue The Service Facility

16  Service times as well as interarrival times are assumed independent and identically distributed  If not otherwise specified  Commonly used notation principle: A/B/C  A = The interarrival time distribution  B = The service time distribution  C = The number of parallel servers  Commonly used distributions  M = Markovian (exponential) - Memoryless  D = Deterministic distribution  G = General distribution  Example: M/M/c  Queuing system with exponentially distributed service and inter-arrival times and c servers A Commonly Seen Queuing Model (II)

17  The most commonly used queuing models are based on the assumption of exponentially distributed service times and interarrival times. Definition: A stochastic (or random) variable T  exp(  ), i.e., is exponentially distributed with parameter , if its frequency function is: The Exponential Distribution and Queuing  The Cumulative Distribution Function is:  The mean = E[T] = 1/   The Variance = Var[T] = 1/  2

18 The Exponential Distribution Time between arrivals Mean= E[T]=1/  Probability density t f T (t) 

19  Property 1: f T (t) is strictly decreasing in t  P(0  T  t) > P(t  T  t+  t)for all t,  t  0  Implications  Many realizations of T (i.e.,values of t) will be small; between zero and the mean  Not suitable for describing the service time of standardized operations when all times should be centered around the mean Ex. Machine processing time in manufacturing  Often reasonable in service situations when different customers require different types of service  Often a reasonable description of the time between customer arrivals Properties of the Exp-distribution (I)

20  Property 2: Lack of memory  P(T>t+  t | T>t) = P(T >  t)for all t,  t  0  Implications –It does not matter when the last customer arrived, (or how long service time the last job required) the distribution of the time until the next one arrives (or the distribution of the next service time) is always the same. –Usually a fair assumption for interarrival times –For service times, this can be more questionable. However, it is definitely reasonable if different customers/jobs require different service Properties of the Exp-distribution (II)

21  Property 3: The minimum of independent exponentially distributed random variables is exponentially distributed Assume that {T 1, T 2, …, T n } represent n independent and exponentially distributed stochastic variables with parameters {  1,  2, …,  n }. Let U=min {T 1, T 2, …, T n }   Implications –Arrivals with exponentially distributed interarrival times from n different input sources with arrival intensities { 1, 2, …, n } can be treated as a homogeneous process with exponentially distributed interarrival times of intensity = …+ n. –Service facilities with n occupied servers in parallel and service intensities {  1,  2, …,  n }can be treated as one server with service intensity  =  1 +  2 +…+  n Properties of the Exp-distribution (III)

22  Relationship to the Poisson distribution and the Poisson Process Let X(t) be the number of events occurring in the interval [0,t]. If the time between consecutive events is T and T  exp(  )  X(t)  Po(  t)  {X(t), t  0} constitutes a Poisson Process Properties of the Exp-distribution (IV)

23  Definition: A stochastic process in continuous time is a family {X(t)} of stochastic variables defined over a continuous set of t- values.  Example: The number of phone calls connected through a switch board  Definition: A stochastic process {X(t)} is said to have independent increments if for all disjoint intervals (t i, t i +h i ) the differences X i (t i +h i )  X i (t i ) are mutually independent. Stochastic Processes in Continuous Time X(t)=# Calls t

24  The standard assumption in many queuing models is that the arrival process is Poisson Two equivalent definitions of the Poisson Process 1. The times between arrivals are independent, identically distributed and exponential 2. X(t) is a Poisson process with arrival rate. The Poisson Process

25  Poisson processes can be aggregated or disaggregated and the resulting processes are also Poisson processes a)Aggregation of N Poisson processes with intensities { 1, 2, …, n } renders a new Poisson process with intensity = …+ n. b)Disaggregating a Poisson process X(t)  Po( t) into N sub-processes {X 1 (t), X 2 (t),, …, X 3 (t)} (for example N customer types) where X i (t)  Po( i t) can be done if – For every arrival the probability of belonging to sub-process i = p i – p 1 + p 2 +…+ p N = 1, and i = p i Properties of the Poisson Process

26 Illustration – Disaggregating a Poisson Process X(t)  Po( t) p1p1 p2p2 pNpN

27  The state of the system = the number of customers in the system  Queue length = (The state of the system) – (number of customers being served) N(t) =Number of customers/jobs in the system at time t P n (t) =The probability that at time t, there are n customers/jobs in the system. n =Average arrival intensity (= # arrivals per time unit) at n customers/jobs in the system  n =Average service intensity for the system when there are n customers/jobs in it. (Note, the total service intensity for all occupied servers)  =The utilization factor for the service facility. (= The expected fraction of the time that the service facility is being used) Terminology and Notation

28 Example – Service Utilization Factor Consider an M/M/1 queue with arrival rate = and service intensity =  = Expected capacity demand per time unit  =Expected capacity per time unit  Similarly if there are c servers in parallel, i.e., an M/M/c system but the expected capacity per time unit is then c*  

29 Questions