Introduction to Queueing Theory with Applications to Air Transportation Systems

Similar documents
Queueing Theory I Summary! Little s Law! Queueing System Notation! Stationary Analysis of Elementary Queueing Systems " M/M/1 " M/M/m " M/M/1/K "

Queueing Review. Christos Alexopoulos and Dave Goldsman 10/6/16. (mostly from BCNN) Georgia Institute of Technology, Atlanta, GA, USA

Queueing Review. Christos Alexopoulos and Dave Goldsman 10/25/17. (mostly from BCNN) Georgia Institute of Technology, Atlanta, GA, USA

Queueing Systems: Lecture 3. Amedeo R. Odoni October 18, Announcements

Queues and Queueing Networks

Chapter 6 Queueing Models. Banks, Carson, Nelson & Nicol Discrete-Event System Simulation

1.225 Transportation Flow Systems Quiz (December 17, 2001; Duration: 3 hours)

Non Markovian Queues (contd.)

PBW 654 Applied Statistics - I Urban Operations Research

CPSC 531: System Modeling and Simulation. Carey Williamson Department of Computer Science University of Calgary Fall 2017

Class 11 Non-Parametric Models of a Service System; GI/GI/1, GI/GI/n: Exact & Approximate Analysis.

Slides 9: Queuing Models

IOE 202: lectures 11 and 12 outline

Queuing Analysis. Chapter Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall

Networking = Plumbing. Queueing Analysis: I. Last Lecture. Lecture Outline. Jeremiah Deng. 29 July 2013

Introduction to Queueing Theory

GI/M/1 and GI/M/m queuing systems

Introduction to Queueing Theory

5/15/18. Operations Research: An Introduction Hamdy A. Taha. Copyright 2011, 2007 by Pearson Education, Inc. All rights reserved.

INDEX. production, see Applications, manufacturing

Performance Evaluation of Queuing Systems

Outline. Finite source queue M/M/c//K Queues with impatience (balking, reneging, jockeying, retrial) Transient behavior Advanced Queue.

Discrete-event simulations

Richard C. Larson. March 5, Photo courtesy of Johnathan Boeke.

Queueing Theory. VK Room: M Last updated: October 17, 2013.

Name of the Student:

Queuing Networks: Burke s Theorem, Kleinrock s Approximation, and Jackson s Theorem. Wade Trappe

Queueing Theory and Simulation. Introduction

Queueing Theory II. Summary. ! M/M/1 Output process. ! Networks of Queue! Method of Stages. ! General Distributions

Data analysis and stochastic modeling

Introduction to Queueing Theory

Kendall notation. PASTA theorem Basics of M/M/1 queue

Link Models for Circuit Switching

Elementary queueing system

Contents Preface The Exponential Distribution and the Poisson Process Introduction to Renewal Theory

Queueing systems. Renato Lo Cigno. Simulation and Performance Evaluation Queueing systems - Renato Lo Cigno 1

Queuing Theory. Using the Math. Management Science

Chapter 2 Queueing Theory and Simulation

Other properties of M M 1

Since D has an exponential distribution, E[D] = 0.09 years. Since {A(t) : t 0} is a Poisson process with rate λ = 10, 000, A(0.

Chapter 5: Special Types of Queuing Models

The effect of probabilities of departure with time in a bank

Chapter 1. Introduction. 1.1 Stochastic process

Figure 10.1: Recording when the event E occurs

Lecture 7: Simulation of Markov Processes. Pasi Lassila Department of Communications and Networking

NICTA Short Course. Network Analysis. Vijay Sivaraman. Day 1 Queueing Systems and Markov Chains. Network Analysis, 2008s2 1-1

Course Outline Introduction to Transportation Highway Users and their Performance Geometric Design Pavement Design

Section 1.2: A Single Server Queue

Generation of Discrete Random variables

QUEUING SYSTEM. Yetunde Folajimi, PhD

Introduction to queuing theory

Introduction to Queuing Theory. Mathematical Modelling

0utline. 1. Tools from Operations Research. 2. Applications

Computer Systems Modelling

The exponential distribution and the Poisson process

IEOR 6711, HMWK 5, Professor Sigman

IEOR 6711: Stochastic Models I, Fall 2003, Professor Whitt. Solutions to Final Exam: Thursday, December 18.

10.2 For the system in 10.1, find the following statistics for population 1 and 2. For populations 2, find: Lq, Ls, L, Wq, Ws, W, Wq 0 and SL.

SOLUTIONS IEOR 3106: Second Midterm Exam, Chapters 5-6, November 8, 2012

Exercises Stochastic Performance Modelling. Hamilton Institute, Summer 2010

(b) What is the variance of the time until the second customer arrives, starting empty, assuming that we measure time in minutes?

THE HEAVY-TRAFFIC BOTTLENECK PHENOMENON IN OPEN QUEUEING NETWORKS. S. Suresh and W. Whitt AT&T Bell Laboratories Murray Hill, New Jersey 07974

Solutions to COMP9334 Week 8 Sample Problems

Chapter 10. Queuing Systems. D (Queuing Theory) Queuing theory is the branch of operations research concerned with waiting lines.

M/G/1 and M/G/1/K systems

A Queueing System with Queue Length Dependent Service Times, with Applications to Cell Discarding in ATM Networks

Classical Queueing Models.

Introduction to Queuing Networks Solutions to Problem Sheet 3

Performance Modelling of Computer Systems

Probability and Statistics Concepts

CS 798: Homework Assignment 3 (Queueing Theory)

Simulation & Modeling Event-Oriented Simulations

Throughput, Risk, and Economic Optimality of Runway Landing Operations

Dynamic Control of a Tandem Queueing System with Abandonments

Review of Queuing Models

The Performance Impact of Delay Announcements

ECE 3511: Communications Networks Theory and Analysis. Fall Quarter Instructor: Prof. A. Bruce McDonald. Lecture Topic

Transient Analysis of a Series Configuration Queueing System

Probability Models in Electrical and Computer Engineering Mathematical models as tools in analysis and design Deterministic models Probability models

J. MEDHI STOCHASTIC MODELS IN QUEUEING THEORY

Introduction to Markov Chains, Queuing Theory, and Network Performance

Computer Networks More general queuing systems

Electronic Companion Fluid Models for Overloaded Multi-Class Many-Server Queueing Systems with FCFS Routing

Stochastic Models of Manufacturing Systems

Exercises Solutions. Automation IEA, LTH. Chapter 2 Manufacturing and process systems. Chapter 5 Discrete manufacturing problems

Session-Based Queueing Systems

Solutions to Homework Discrete Stochastic Processes MIT, Spring 2011

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science

Analysis of an M/M/1/N Queue with Balking, Reneging and Server Vacations

Queuing Theory. The present section focuses on the standard vocabulary of Waiting Line Models.

SYMBOLS AND ABBREVIATIONS

1.225J J (ESD 205) Transportation Flow Systems

Discrete Event and Process Oriented Simulation (2)

Queuing Theory. Richard Lockhart. Simon Fraser University. STAT 870 Summer 2011

Part II: continuous time Markov chain (CTMC)

Quiz Queue II. III. ( ) ( ) =1.3333

MAT SYS 5120 (Winter 2012) Assignment 5 (not to be submitted) There are 4 questions.

4.7 Finite Population Source Model

λ λ λ In-class problems

EE 368. Weeks 3 (Notes)

Transcription:

Introduction to Queueing Theory with Applications to Air Transportation Systems John Shortle George Mason University February 28, 2018

Outline Why stochastic models matter M/M/1 queue Little s law Priority queues Simulation: Lindley s equation A simple airport model

Why Stochastic Models Matter Often, we simplify models by replacing stochastic values with their averages Sometimes this is a reasonable approximation But it also has the potential to drastically change the behavior of the model

Typical Queueing Process Customers Arrive Common Notation l: Arrival Rate (e.g., customer arrivals per hour) m: Service Rate (e.g., service completions per hour) 1/m: Expected time to complete service for one customer r: Utilization: r = l / m

A Simple Deterministic Queue l m Customers arrive at 1 min, 2 min, 3 min, etc. Service times are exactly 1 minute. What happens? Customers in system 1 2 3 4 5 6 7 Arrival Departure Time (min)

A Stochastic Queue Times between arrivals are ½ min. or 1½ min. (50% each) Service times are ½ min. or 1½ min. (50% each) Average inter-arrival time = 1 minute Average service time = 1 minute What happens? Customers in system Arrival Departure Service Times 1 2 3 4 5 6 7 Time (min)

Stochastic Queue in the Limit 100 90 Wait in Queue (min) 80 70 60 50 40 30 20 10 7 0 0 500 1000 1500 2000 2500 3000 3500 4000 Customer # Two queues with same average arrival and service rates Deterministic queue: zero wait in queue for every customer Stochastic queue: wait in queue grows without bound Variance is an enemy of queueing systems

Outline Why stochastic models matter M/M/1 queue Little s law Priority queues Simulation: Lindley s equation A simple airport model

The M/M/1 Queue Inter-arrival times follow an exponential distribution (or arrival process is Poisson) A single server Service times follow an exponential distribution 0.018 0.016 Gamma 0.014 0.012 Normal f(x) 0.01 0.008 0.006 0.004 0.002 Exponential 0 40 60 80 100 120 140 160 180 200 220 240 x

M/M/1 Queue Inter-arrival times are exponential with rate l Service times are exponential with rate m First-come-first-served discipline All random variables are independent Infinite queue, no balking, reneging,... 0 l l l l 1 2 3 4 l m m m m Number in System m

M/M/1 Queue Can solve system as a continuous time Markov chain A variety of queueing metrics can be calculated analytically (in steady state) L q q 2 r = 1 r r L = 1 r W W r 1 = 1 r m = 1 m l Average # in queue Average # in system Average wait in queue Average wait in system

The M/M/1 Queue Observations 100% utilization is not desired Limitations Model assumes steady-state. Solution does not exist when r > 1 (arrival rate exceed service rate). Poisson arrivals can be a reasonable assumption Exponential service distribution is usually a bad assumption. 50 45 r L = 1 r L 40 35 30 25 20 15 10 5 0 0 0.2 0.4 0.6 0.8 1 1.2 r

Insights Fraction of wasted time = 1 r Unused airport capacity, empty seats, etc. Tension between wasted time and delays Generally a bad idea to have r near 1 Higher delays and higher variability Results are true in steady state L 50 45 40 35 30 25 20 15 10 5 0 0 0.2 0.4 0.6 0.8 1 1.2 r

The M/G/1 Queue Service times follow a general distribution Required inputs: l: arrival rate 1/m: expected service time : std. dev. of service time 35 30 25 20 15 10 5 L L = r r 2 l 2 2(1 r) 2 0 0 0.2 0.4 0.6 0.8 1 1.2 r m = 1, = 0.5 Avg. # in System

M/G/1: Effect of Variance 18 16 14 Deterministic Service L 12 10 8 6 4 2 0 Exponential Service 0 0.5 1 1.5 2 2.5 3 Arrival Rate Service Rate Held Constant L = r r 2 l 2 2(1 r) 2 l = 0.8, m = 1 (r = 0.8)

What Happens When r > 1? Road Traffic Example Vehicles / hr Vehicles / km Nagel, K., P. Wagner, R. Woesler. 2003. Still flowing: approaches to traffic flow and traffic jam modeling. Operations Research, 51(5), 681-710.

Limitations of Analytical Models Typically assume steady state Typically assume stationary process No time of day, day of week,... effects Basic models require exponential distribution Often this assumption can be relaxes Typically assume independence of arrival times (and service times) Many results exist for single-server queues

Outline Why stochastic models matter M/M/1 queue Little s law Priority queues Simulation: Lindley s equation A simple airport model

Little s Law L = l W L = average # in system W = average time in system l = average arrival rate Little s law does not require Poisson arrivals, Independent arrivals First-come-first-served discipline Exponential service Etc. Minimum physics required Sequence of arrivals to a system Sequence of departures from a system Stable long-run average behavior

Little s Law System l Arrivals Departures System Metrics L, W

Example: Non-Queueing 100 students / yr School Four years per student How many students in school on average?

Example #1 System l L = l W

Example #2 System l L q = l W q

Example #3: Single-Server System l Fraction of time server busy = l (1 / m) = r L W

Outline Why stochastic models matter M/M/1 queue Little s law Priority queues Simulation: Lindley s equation A simple airport model

Priority Queues Some basic analytical results exist for priority models Assumptions n arrival types, each with arrival rate l i and service rate m i (r i = l i / m i ) (exponential distributions) After service completion, customers of type i served before customers of type j > i W = n () i k= 1 q i 1 r / m (1 )(1 ) k k i r r r i 1 2 i

So What? Expected wait in queue is minimized by giving priority to the customer class with the shortest average service time Generalization: cm-rule: If each customer class incurs a cost c per time and is served with rate m, the expected cost in queue is minimized by giving priority to the customer class with the lowest value of cm E.g., to minimize passenger delay (c proportional to # of passengers on a plane), land planes with higher numbers of passengers first

Seems Like a Good Idea, But... First-come-first-served is optimal in the sense that it minimizes higher moments (e.g., variance). Any scheme of priorities not depending on service times makes all higher moments worse than FCFS That is, a priority rule may increase the variance of delay Priority customers have small delay Non-priority customers have large delay

Outline Why stochastic models matter M/M/1 queue Little s law Priority queues Simulation: Lindley s equation A simple airport model

Simulation Models Fairly easy to think up scenarios in which analytical results do not exist This lecture: Lindley s equation Can be used as a building block in more complicated models Helps to understand the basic physics of queueing models

Single-Server Queue FCFS single-server queue is a fundamental unit in many queueing models Only requires a sequence of arrival times and service times Times do not have to follow an exponential distribution Nor do they have to follow any distribution Stationarity, independence, etc. not required Definitions T (n) : Time between arrivals of customers n and n+1 S (n) : Service time of customer n W q (n) : Waiting time in queue of customer n

Lindley s Equation: Case 1 Customer n arrives Customer n + 1 arrives Customer n 1 departs Customer n departs Time T (n) W q (n) S (n) W q (n+1) W = W S T ( n 1) ( n) ( n) ( n) q q

Lindley s Equation: Case 2 Customer n arrives Customer n 1 departs Customer n + 1 arrives Customer n departs Time T (n) W q (n) S (n) W q (n+1) = 0

Lindley s Equation ( n 1) = ( n) ( n) ( n) q q W max( W S T,0) Wait of previous customer Service time Of that customer Inter-arrival time No negative wait

Numerical Example

Little s Law 12 10 A(t) 8 6 4 L(t) W q (n) D(t) 2 0 0 5 10 15 20 25 30 t

Shortest Queue Goes First

Outline Why stochastic models matter M/M/1 queue Little s law Priority queues Simulation: Lindley s equation A simple runway model

Runway Example Arrivals Runway

Spreadsheet Calculations Inter-arrival time = -LN(RAND()) / l Next arrival time = arrival time + inter-arrival time Runway time Next queue time = max(queue time + runway time interarrival time, 0) Departure time = queue time + runway time Arrival count Simulation examples

SAN Runway Layout

LGA Runway Layout

43 ORD Runway Layout

Arrival / Departure Runway Arrivals Runway Departures

Single-Runway Separation Rules Lead Trail Separation Requirement Arrival Arrival Trailing aircraft cannot cross threshold until leading aircraft has landed and is clear of the runway Arrival Departure Trailing aircraft cannot begin take-off roll until leading aircraft has landed and is clear of the runway Departure Departure Trailing aircraft cannot begin take-off roll until leading aircraft has departed, crossed the runway end Departure Arrival Trailing aircraft cannot cross threshold until leading aircraft has departed, crossed the runway end This simplifies to Operation Arrival Departure Occupies Runway Once aircraft crosses threshold until it has landed and is clear of the runway Once aircraft begins take-off roll until aircraft has departed, crossed the runway end FAA 7110.65R 3-9-6, 3-10-3. There are also exceptions to these rules

Assumptions An arrival occupies the runway for a time S A A departure occupies the runway for a time S D Then use Lindley s equation W = max( W S T,0) ( n 1) ( n) ( n) ( n) q q Note: In this problem, arrival refers in a generic sense to an operation (either an arrival or departure) that arrives to use the runway resource

Spreadsheet Calculations Inter-arrival time = -LN(RAND()) / l Next arrival time = arrival time + inter-arrival time Operation = IF(RAND() < p, A, D ) Runway time = IF(operation = A, S A, S D ) Next queue time = max(queue time + runway time interarrival time, 0) Departure time = queue time + runway time Arrival count = IF(operation = A, 1, 0) Operation # Inter-arr. Time Arr. Time Operation Rwy Time Queue Time Dep. Time Arr Dep 1 0.356 0.000 D 2 0.000 2 0 1

Radar/Wake Separation Requirements In addition to previous separation requirements Lead Trail Separation Requirement Arrival Arrival Trailing aircraft must be at least x nm behind leading aircraft at runway threshold (x = 3, 4, 5, 6 nm, depending on aircraft weights) Arrival Departure No additional separation requirements Departure Departure Trailing aircraft must satisfy radar/wake separation requirements once airborne (x = 3, 4, 5, 6 nm, depending on aircraft weights) and at least 2 minutes behind Heavy/B757 Departure Arrival While airborne, aircraft must satisfy standard radar separation FAA 7110.65R 3-9-6, 5-5-4. There are also exceptions to these rules

Extended Model Time that an operation holds the runway is Following Operation Leading Operation Arrival Departure Arrival S AA S AD Departure S DA S DD W = = ( n) ( n) ( Wq T SAA) if n Arrival, n 1 Arrival ( n) ( n) W ( n 1) q T SAD n n = = q = ( n) ( n) Wq T SDA n = n = ( n) ( n) Wq T SDD n = n = ( ) if Arrival, 1 Departure ( ) if Departure, 1 Arrival ( ) if Departure, 1 Departure