Queuing Theory. Using the Math. Management Science

Similar documents
QUEUING SYSTEM. Yetunde Folajimi, PhD

Performance Evaluation of Queuing Systems

Introduction to queuing theory

Waiting Line Models: Queuing Theory Basics. Metodos Cuantitativos M. En C. Eduardo Bustos Farias 1

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

Computer Networks More general queuing systems

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

λ λ λ In-class problems

Computer Systems Modelling

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

BIRTH DEATH PROCESSES AND QUEUEING SYSTEMS

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 "

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

Review of Queuing Models

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

Classification of Queuing Models

PBW 654 Applied Statistics - I Urban Operations Research

Readings: Finish Section 5.2

MSA 640 Homework #2 Due September 17, points total / 20 points per question Show all work leading to your answers

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

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

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

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

Introduction to Markov Chains, Queuing Theory, and Network Performance

Chapter 8 Queuing Theory Roanna Gee. W = average number of time a customer spends in the system.

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

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

CS418 Operating Systems

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

Chapter 5: Special Types of Queuing Models

Queuing Theory. 3. Birth-Death Process. Law of Motion Flow balance equations Steady-state probabilities: , if

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

CDA5530: Performance Models of Computers and Networks. Chapter 4: Elementary Queuing Theory

QUEUING MODELS AND MARKOV PROCESSES

EE 368. Weeks 3 (Notes)

Bulk input queue M [X] /M/1 Bulk service queue M/M [Y] /1 Erlangian queue M/E k /1

Basic Queueing Theory

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

Link Models for Packet Switching

Lecture 20: Reversible Processes and Queues

Data analysis and stochastic modeling

Computer Systems Modelling

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

4.7 Finite Population Source Model

Slides 9: Queuing Models

Introduction to Queueing Theory

Advanced Computer Networks Lecture 3. Models of Queuing

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

Introduction to Queueing Theory

Continuous Time Processes

NATCOR: Stochastic Modelling

Link Models for Circuit Switching

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

Introduction to Queueing Theory

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

CS 798: Homework Assignment 3 (Queueing Theory)

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

Queueing Theory (Part 4)

16:330:543 Communication Networks I Midterm Exam November 7, 2005

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

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

Introduction to Queuing Theory. Mathematical Modelling

IEOR 6711, HMWK 5, Professor Sigman

NEW FRONTIERS IN APPLIED PROBABILITY

Systems Simulation Chapter 6: Queuing Models

Name of the Student:

YORK UNIVERSITY FACULTY OF ARTS DEPARTMENT OF MATHEMATICS AND STATISTICS MATH , YEAR APPLIED OPTIMIZATION (TEST #4 ) (SOLUTIONS)

Chapter 3 Balance equations, birth-death processes, continuous Markov Chains

Introduction to Queuing Networks Solutions to Problem Sheet 3

Generation of Discrete Random variables

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.

Figure 10.1: Recording when the event E occurs

57:022 Principles of Design II Final Exam Solutions - Spring 1997

Introduction to Queueing Theory with Applications to Air Transportation Systems

λ, µ, ρ, A n, W n, L(t), L, L Q, w, w Q etc. These

NANYANG TECHNOLOGICAL UNIVERSITY SEMESTER I EXAMINATION MH4702/MAS446/MTH437 Probabilistic Methods in OR

Homework 1 - SOLUTION

Performance Modelling of Computer Systems

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

Statistics 150: Spring 2007

Bernoulli Counting Process with p=0.1

I, A BRIEF REVIEW ON INFINITE QUEUE MODEL M.

Probability and Statistics Concepts

Session-Based Queueing Systems

Intro to Queueing Theory

Probability and Stochastic Processes Homework Chapter 12 Solutions

CPSC 531 Systems Modeling and Simulation FINAL EXAM

Chapter 2 Queueing Theory and Simulation

6 Solving Queueing Models

Queuing Theory. Queuing Theory. Fatih Cavdur April 27, 2015

A Study on Performance Analysis of Queuing System with Multiple Heterogeneous Servers

Multiaccess Problem. How to let distributed users (efficiently) share a single broadcast channel? How to form a queue for distributed users?

Introduction to queuing theory

Analysis of Software Artifacts

Non Markovian Queues (contd.)

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

Section 1.2: A Single Server Queue

IOE 202: lectures 11 and 12 outline

Firefly algorithm in optimization of queueing systems

Queueing Theory and Simulation. Introduction

Transcription:

Queuing Theory Using the Math 1

Markov Processes (Chains) A process consisting of a countable sequence of stages, that can be judged at each stage to fall into future states independent of how the process arrived at the previous state. Memoryless Many Queuing Models are Markov Chains 2

Queuing Models A Queuing Model Comprises Markovian Arrivals A Line or a Queue A Number of Servers And A Service Method 3

Arrivals Jobs arrive for service. Parameter is Mean Arrival Rate - λ (lamda) (so many jobs arriving per period) Key Statistic is the Interarrival Time, the average time between the arrivals of a job. Average time between arrival of jobs = mean interarrival time = 1/λ 4

Arrivals This statistic can be: Deterministic (e.g. 1 every time without fail) (Use Simulation Methods) period, According to a Probability Distribution: General (Use Simulation Methods) Markovian use Queuing Models 5

Service Jobs are serviced. Parameter is Mean Service Rate - µ (mu) (So many jobs serviceable per period) Key Statistic is the Mean or Average Potential Service Time, the average time it takes to service a job. Average Potential Service Time = 1/µ 6

Service This statistic can be: Deterministic (1 every time period, without fail) According to a Probability Distribution: Markovian General (we only use µ and σ) Number of servers can be one or many. 7

Queues Queue Length may be limitless (infinite) or finite. Job (customer) Population - may be infinite of finite. Queue Discipline jobs are served on FIFO. Time Horizon system foes on an on over and infinite or finite time frame. Warning if λ µnone of this works 8

Performance Measurement P 0 - Probability that there are no jobs in the system. P n - Probability that there are n jobs in the system. L - Average number of jobs in the system. L q - Average number of jobs in the queue. 9

Performance Measurement W - Average time a job spends in the system. W q - Average time a job spends in the queue. P w - Probability that all servers are busy. ρ - The Utilization rate for each server (percentage of time each server is busy). 10

Queue Classification Arrival / Service Process Process / Number of Servers / Finiteness of Queue Length / Finiteness of Job Population. M = exponential and reverse exponential (Poisson) distribution D = deterministic G = any general distribution of service times 1 = 1 server k = more than one server F = finite length of queue m = job population 11

Which gives us a number of choices to look at: M / M / 1 / M / M / k / M / G / 1 M / D / 1 M / M / k / F M / M / 1 / F λ µ M / M / 1 / F λ =µ M / M / 1 / / m 12

M / M / 1 Arrivals Markovian use Poisson distribution. Service Markovian use Exponential distribution. 1 Server Infinite Queue length Infinite Customer population 13

Truck Loading and Unloading from Quantitive Methods for Business Anderson, Sweeney and Williams M / M / 1 Trucks using a single-channel loading dock arrive according to a Poisson distribution. The time required to load/unload follows an exponential probability distribution. The mean arrival rate is 12 trucks per day, and the mean service rate is 18 trucks per day. 14

M / M / 1 Truck Loading and Unloading Parameters are Mean Arrival Rate - λ (12 trucks per day) and Mean Service Rate - µ (mu) (18 trucks per day) Queue type is M/M/1 a. What is the probability that no trucks are in the system? One truck? a. is asking for calculation of P 0 and for P n where n=1 = ( ) = ( ) P 1 λ / µ 0 ( 1 / )( / ) P λ µ λ µ n n 15

M / M / 1 Truck Loading and Unloading b. What is the average number of trucks waiting for service? In the queue? b. is asking for the calculation of L and Lq c. What is the average time a truck waits for the loading/unloading service to begin? Ave time in total at loading dock? c. is asking for the calculation of Wq and W = λ 1 L = λ µ λ L q µ ( µ λ) ( ) W q µ µ λ ( ) ( ) = λ W 2 = ( ) µ λ ( ) 16

M / M / 1 Truck Loading and Unloading d. What is the probability that an arriving truck will have to wait for service? d. is looking for the calculation of P w the probability that all the servers are busy. P = λ w µ Finally what is the utilization rate ρ for the server? ρ = λ µ 17

M / M / k Truck Loading and Unloading Due to the incredible business acumen of the company s Management Scientists the number of loading docks has increased to 3; the mean arrival rate is 40 trucks per day, and the mean service rate on each line is 18 trucks per day. Answer the questions a. through d. and calculate ρ. 18

M / M / k Arrivals Markovian use Poisson distribution. Service Markovian use Exponential distribution. k Servers Infinite Queue length Infinite Customer population 19

M / M / k Truck Loading and Unloading What is λ? What is µ? What is k? P P 0 n 1 = n k n= k 1 1 λ 1 λ kµ n= 1 n! + k! kµ λ µ µ ( ) n λ µ for n k 0 n! P = ( ) n λ µ for n k ( n k) P > 0 k! k 20

M / M / k Truck Loading and Unloading L λµ ( ) ( )( ) 2 0 k 1! k λµ λ = P + µ kµ λ L q = λµ ( ) ( )( ) 2 0 k 1! k λµ kµ λ P W λµ ( ) µ = + ( )( ) 2 0 k 1! k kµ λ P 1 µ W q = λµ ( ) ( )( ) 2 0 k 1! k µ kµ λ P P w λ µ 1 kµ = k! kµ λ k P 0 ρ = λ kµ 21

Reading and Homework. Homework 11, due in class on Thursday 9 th of May. Redo M/M/1 with Lamda = 20 and Mu = 30 Redo M/M/k with k = 2 22