Queues (waiting lines) - besana111.combesana111.com/ileana/cursos/2011/IN2012/pdf/Queues1.pdf ·...

39
Queues (waiting lines)

Transcript of Queues (waiting lines) - besana111.combesana111.com/ileana/cursos/2011/IN2012/pdf/Queues1.pdf ·...

Queues (waiting lines)

Non-people queues

Great inefficiencies also occur because of other kinds of waiting than people standing in line.

For example, making machines wait to be repaired may result in lost production. may result in lost production.

Vehicles (including ships and trucks) that need to wait to be unloaded may delay subsequent shipments.

Airplanes waiting to take off or land may disrupt later travel schedules.

20/02/2011 2Ileana Castillo, Ph.D.

Non-people queues

Delays in telecommunication transmissions due to saturated lines may cause data glitches.

Causing manufacturing jobs to wait to be performed may disrupt subsequent production. performed may disrupt subsequent production.

Delaying service jobs beyond their due dates may result in lost future business.

20/02/2011 3Ileana Castillo, Ph.D.

Queueing Theory

Queueing theory is the study of waiting in all these various forms.

It uses queueing models to represent the various types of queueing systems

(systems that involve queues of some kind) that arise in practice.

20/02/2011 4Ileana Castillo, Ph.D.

Queueing Theory

Formulas for each model indicate how the corresponding queueing system should perform, including the average amount of waiting that will occur, under a variety of waiting that will occur, under a variety of circumstances.

20/02/2011 5Ileana Castillo, Ph.D.

Queueing ModelsTherefore, these queueing models are very

helpful for determining how to operate aqueueing system in the most effective way. Providing too much service capacity to operate the system involves excessive

costs. But not providing enough service capacity

results in excessive waiting and all its unfortunate consequences.

20/02/2011 6Ileana Castillo, Ph.D.

Queueing Models

The models enable finding anappropriate balance between the cost of service and the amount of waiting.

20/02/2011 7Ileana Castillo, Ph.D.

Queueing Process

20/02/2011 8Ileana Castillo, Ph.D.

the infinite case, this assumption is often made.

20/02/2011 9Ileana Castillo, Ph.D.

The statistical pattern by which customers are generated over time must also be specified.

The common assumption is that they are generated according to a Poisson process;

i.e., the number of customers generated until any specific time has a Poisson distribution.

This case is the one where arrivals to the queueingsystem occur randomly but at a certain fixed mean rate, regardless of how many customers already are there (so the size of the input source is infinite).

20/02/2011 10Ileana Castillo, Ph.D.

An equivalent assumption is that theprobability distribution of the time between

consecutive arrivals is an exponential distribution.

The time between consecutive arrivals is referred to as the interarrival time.referred to as the interarrival time.

Any unusual assumptions about the behavior of arriving customers must also be specified.

One example is balking, where the customer refuses to enter the system and is lost if the queue is too long.20/02/2011 11Ileana Castillo, Ph.D.

20/02/2011 12Ileana Castillo, Ph.D.

FCFSLCFSSIRO: Service in random orderGD: General queue discipline

20/02/2011 13Ileana Castillo, Ph.D.

20/02/2011 14Ileana Castillo, Ph.D.

20/02/2011 15Ileana Castillo, Ph.D.

The time elapsed from the commencement of service to its completion for a customer

at a service facility is referred to as the service time.

A model of a particular queueing system A model of a particular queueing system must specify the probability distribution of service times for each server (and possibly for different types of customers), although it is common to assume the same distribution for all servers.

20/02/2011 16Ileana Castillo, Ph.D.

The service-time distribution that is most frequently assumed in practice (largely because it is far more tractable than any other) is the exponential distribution

Other important service-time distributionsare the degenerate distribution (constant

service time) and the Erlang (gamma) distribution

20/02/2011 17Ileana Castillo, Ph.D.

20/02/2011 18Ileana Castillo, Ph.D.

Kendall-Lee Notation:1/2/3M|M|s

20/02/2011 19Ileana Castillo, Ph.D.

In these cases, the notation forthe queueing model in theprevious slide would be:

M|M|s, M|D|sM|Ek|s, M|G|s20/02/2011 20Ileana Castillo, Ph.D.

20/02/2011 21Ileana Castillo, Ph.D.

20/02/2011 22Ileana Castillo, Ph.D.

20/02/2011 23Ileana Castillo, Ph.D.

Certain notation also is required to describe steady-state results.

When a queueing system has recently begun operation, the state of the system (number of customers in the system) will (number of customers in the system) will be greatly affected by the initial state and by the time that has since elapsed.

The system is said to be in a transient condition

20/02/2011 24Ileana Castillo, Ph.D.

However, after sufficient time haselapsed, the state of the system becomes

essentially independent of the initial state and the elapsed time (except under unusual circumstances).

The system has now essentially reached a steady-state condition, where the probability distribution of the state of the system remains the same (the steady-state or stationary distribution) over time.

20/02/2011 25Ileana Castillo, Ph.D.

Queueing theory has tended to focus largely on the steady-state condition, partially because the transient case is more difficult analytically.

The following notation assumes that thesystem is in a steady-state condition:

20/02/2011 26Ileana Castillo, Ph.D.

20/02/2011 27Ileana Castillo, Ph.D.

The exponential distribution

20/02/2011 28Ileana Castillo, Ph.D.

20/02/2011 29Ileana Castillo, Ph.D.

20/02/2011 30Ileana Castillo, Ph.D.

20/02/2011 31Ileana Castillo, Ph.D.

20/02/2011 32Ileana Castillo, Ph.D.

20/02/2011 33Ileana Castillo, Ph.D.

20/02/2011 34Ileana Castillo, Ph.D.

Ejemplo del Winston …

Escuela de Ingeniería Industrial y de Sistemas

20/02/2011 35Ileana Castillo, Ph.D.

Ejemplo …

Escuela de Ingeniería Industrial y de Sistemas

�������������

��� ===

��

������

�� λλ

20/02/2011 36Ileana Castillo, Ph.D.

Ejercicios …

Escuela de Ingeniería Industrial y de Sistemas

20/02/2011 37Ileana Castillo, Ph.D.

Ejercicios …

Escuela de Ingeniería Industrial y de Sistemas

20/02/2011 38Ileana Castillo, Ph.D.

References

• Chase • Hillier y Lieberman• Winston• Winston

20/02/2011 39Ileana Castillo, Ph.D.