QueueTraffic and queuing theory

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

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

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

Sandwich shop : a queuing net work with finite disposable resources queue and infinite resources queue

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

Slides 9: Queuing Models

Classification of Queuing Models

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

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

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

Queuing Theory. Using the Math. Management Science

λ λ λ In-class problems

ISyE 2030 Practice Test 2

BIRTH DEATH PROCESSES AND QUEUEING SYSTEMS

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

Session-Based Queueing Systems

Performance Evaluation of Queuing Systems

COMP9334: Capacity Planning of Computer Systems and Networks

CS418 Operating Systems

Solutions to COMP9334 Week 8 Sample Problems

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

Chapter 5: Special Types of Queuing Models

Systems Simulation Chapter 6: Queuing Models

Photo: US National Archives

PBW 654 Applied Statistics - I Urban Operations Research

Exercises Stochastic Performance Modelling. Hamilton Institute, Summer 2010

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

Logistical and Transportation Planning. QUIZ 1 Solutions

Introduction to Markov Chains, Queuing Theory, and Network Performance

Homework 1 - SOLUTION

Advanced Computer Networks Lecture 3. Models of Queuing

Approximation Algorithms (Load Balancing)

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

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

CEE 320 Midterm Examination (50 minutes)

Buzen s algorithm. Cyclic network Extension of Jackson networks

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

COMP9334 Capacity Planning for Computer Systems and Networks

Basic Queueing Theory

Scheduling I. Today. Next Time. ! Introduction to scheduling! Classical algorithms. ! Advanced topics on scheduling

Module 5: CPU Scheduling

Chapter 1: Revie of Calculus and Probability

I, A BRIEF REVIEW ON INFINITE QUEUE MODEL M.

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

Review of Queuing Models

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

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

Introduction to queuing theory

Traffic Flow Theory & Simulation

Non Markovian Queues (contd.)

Course Documents Authorized Duration: 120 minutes. Questions are generally independent. You can respond to any question before the other.

Modelling and Optimization of Toll Stations on a Highway by Using Nonstationary Poisson Process

CPU Scheduling Exercises

Che-Wei Chang Department of Computer Science and Information Engineering, Chang Gung University

Little s result. T = average sojourn time (time spent) in the system N = average number of customers in the system. Little s result says that

Queueing Theory and Simulation. Introduction

The effect of probabilities of departure with time in a bank

Section 9.1 (Part 2) (pp ) Type I and Type II Errors

CPU scheduling. CPU Scheduling

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

Answers to selected exercises

The University of British Columbia Computer Science 405 Practice Midterm Solutions

All models are wrong / inaccurate, but some are useful. George Box (Wikipedia). wkc/course/part2.pdf

Bernoulli Counting Process with p=0.1

CS 370. FCFS, SJF and Round Robin. Yashwanth Virupaksha and Abhishek Yeluri

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

Computer Systems Modelling

Computer Systems Modelling

CDA6530: Performance Models of Computers and Networks. Chapter 8: Discrete Event Simulation (DES)

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.

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

Introduction to Queuing Theory. Mathematical Modelling

have tried with your racer that are working well? you would like to make to your car?

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

Scheduling I. Today Introduction to scheduling Classical algorithms. Next Time Advanced topics on scheduling

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

On the Resource/Performance Tradeoff in Large Scale Queueing Systems

THE ESTIMATION OF THE INITIAL NUMBER OF BERTHS IN A PORT SYSTEM BASED ON COST FUNCTION

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

UNIVERSITY OF YORK. MSc Examinations 2004 MATHEMATICS Networks. Time Allowed: 3 hours.

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 "

Dynamic Call Center Routing Policies Using Call Waiting and Agent Idle Times Online Supplement

CS 798: Homework Assignment 3 (Queueing Theory)

Chapter 6: CPU Scheduling

QUEUING SYSTEM. Yetunde Folajimi, PhD

Network Analysis of Fuzzy Bi-serial and Parallel Servers with a Multistage Flow Shop Model

Queuing Networks. - Outline of queuing networks. - Mean Value Analisys (MVA) for open and closed queuing networks

Statistical Monitoring of Queuing Networks

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

Queuing Theory and Stochas St t ochas ic Service Syste y ms Li Xia

Engineering Mathematics : Probability & Queueing Theory SUBJECT CODE : MA 2262 X find the minimum value of c.

Name of the Student:

Travel and Transportation

Created by T. Madas KINEMATIC GRAPHS. Created by T. Madas

Markov Processes and Queues

Introduction to Queuing Networks Solutions to Problem Sheet 3

IOE 202: lectures 11 and 12 outline

Vocabulary: Variables and Patterns

MONTE CARLO SIMULATION STUDY ON M/M/1 AND M/M/2 QUEUEING MODELS IN A MULTI SPECIALITY HOSPITAL

Season Finale: Which one is better?

Transcription:

QueueTraffic and queuing theory +

Queues in everyday life You have certainly been in a queue somewhere. Where? How were they different? At ticket vending machines, cash desks, at the doctors, at printers, in a call center, We encounter queues all the time! 2

Examples: supermarket, doctor Supermarket: many cash desks, many queues They even might have an express queue line! Doctor: one doctors (~cash desk), one queue Similar: queues in a self service restaurant, queues in front of a cable car 3

What is it about today? Learn a mathematical model How are queues analyzed? What are important concepts and terms for this? Learning goals with the use of QueueTraffic Being able to explain the concepts arrival rate, throughput, utilization and calculate those for given situations with the help of QueueTraffic Being able to interpret different values for utilization: Do we get a queue or not? Being able to explain the difference between Poisson and uniform distribution in a illustrative way 4

The best system? What is better, what worse? Many cash desks? Fast lines? Number tickets?...? Cannot be decided like this! What can be decided: How well works a system in a certain situation. 5

Waiting queues and me: 2 points of view 1. I am responsible for the setting of queues Manager of a store Doctor in a medical practice Operator of a cable car... I can control the system 2. I am waiting in a queue Client Patient Hiker... I am depending on the system 6

Problems of a store manger When and why do we get queues? Too many people, too few desks What can we do about it? More cash desks What if there are too many desks open? costs, boredom, Let on more people in First serve the people who need little service time e.g. printers that sorts job by their size Limit the time during which someone is being served e.g. limited treatment time per client at the doctor 7

Problems of a customer Why does it always feel to us like all other queues move faster? Which queue should I take? Where shall I append? How long do I have to wait? Where there are the fewest people in queue? Where the people have the least products to dispatch? Where the fastest cashier is? Where one can only pay cash? Where someone helps me bagging?...? 8

We observe From the left he queue gets extended From the right the queue gets shortened 9

Arrival and service-process The act of new clients permanently putting theirselves in queue is called arrival process. The number of clients adding theirselves to the queue within a certain period of time is called the arrival rate λ. The act of clients being cleared from queue from the right is called service process. The time one service process takes for one client is called the service time b. 10

Arrival rate λ (lambda) und service time b Arrival rate λ: How often do new clients arrive? In a supermarket 5 clients come through the door per hour, on average. Arrival rate: λ = 5/60 clients/minute Service time b: how long takes a service station for one client? It take the man at the cashier on average 15 minutes to serve a client. service time: b = 15 minutes/client 11

throughput μ (Mu) Throughput μ: How many clients are served per time unit? The throughput is the reciprocal of the service time: μ = 1/b Example: service time b = 15 minute/client Throughput: μ = 1 / 15 clients/minute = 1 client / 15 minutes = 4 clients/hour 12

Utilization ρ (Rho) Utilization ρ = λ/μ: How much of the capacity of the system is used? Important parameter for the analysis of queuing systems! 3 examples: - λ 1 = 10 clients/hour, μ 1 = 30 c./h - λ 2 = 30 c./h, μ 2 = 30 c./h - λ 3 = 60 c./h, μ 3 = 30 c./h Utilization: ρ 1 = λ 1 /μ 1 = 10 / 30 = 0.33 ρ 2 = λ 2 /μ 2 = 30 / 30 = 1 ρ 3 = λ 3 /μ 3 = 60 / 30 = 2 13

Distributions at the arrival Arrivals in QueueTraffic are uniform or Poisson distributed. or 14

QueueTraffic: Demo Source: http://swisseduc.ch/compscience/infotraffic/ 15

QueueTraffic Situation and help Simulation area Traffic control Volume of traffic Simulation control Data and charts 16

You solve some first exercises Solve exercises A until 3. 17

Theoretical and effective throughput in in QueueTraffic So far, we only considered the theoretical throughput μ t, since we took at look at how many clients (cars) can be served (drive through) under optimal conditions. QueueTraffic is a simulation and to calculate the throughput it counts the number of cars driving over the crossroad per round. This is called the effective throughput μ e. 18

Why do we need the effective throughput? Fact: How many car could theoretically get through cannot easily be measured or counted. The number of served cars can easily be counted! This gives us the effective throughput μ e μ e = μ t is reached, if λ > μ t, i.e. if enough cars arrive. 19

Sample - calculation Arrival rate: λ = 10 car/60s Effective throughput: μ e = 10 cars/60s Theoretical throughput: μ t = (28 s/60s) * (1 car/1s) = 28 cars/60s Utilization:!!! ρ = λ / μ t = (10 cars/60 s) / (28 cars/60 s) = 0.36 calculated! simulated! (counted) 20

Remarks to the calculations in QueueTraffic Traffic volume is per 60 s Formula for theoretical throughput μ t = proportion green time * capacity per lane e.g.: μ t = 28s/60s * 1 car/s given! Use the theoretical throughput μ t to calculate the utilization: ρ = λ / μ t 21

now: your turn! 22

The most important terms term example Arrival rate λ Service time b throughput μ t = 1/b 12 cars/minute 0.1 minute/car 10 cars/minute utilization ρ = λ / μ t 1.2 23

Connection between utilization ρ = λ / μ t and traffic jam. In general holds: ρ < 1 no (or little) jam: system under-worked ρ 1 a little jam: system loaded ρ > 1 growing jam: system overloaded Practical Interpretation: Jam if λ > μ t, i.e. if the arrival rate is bigger than the (theoretical) throughput. Thus: If more cars arrive than what can be served, we get jam! 24

What was it about today? Get to know a mathematical model How are waiting queues analyzed? What are important terms and concepts? Concrete goals: Being able to explain the concepts arrival rate, throughput, utilization and calculate those for given situations with the help of QueueTraffic Being able to interpret different values for utilization: Do we get a queue or not? Being able to explain the difference between Poisson and uniform distribution in a illustrative way 25

THE END QueueTraffic und queuing theory Remarks and feedback please to: rarnold@wherever.ch http://swisseduc.ch/informatik/infotraffic/ 26