45
1 Introduction Introduction • Queuing is the study of waiting lines, or queues. • The objective of queuing analysis is to design systems that enable organizations to perform optimally according to some criterion. Possible Criteria – Maximum Profits. – Desired Service Level.

Queuing

Embed Size (px)

DESCRIPTION

Queuing

Citation preview

  • IntroductionQueuing is the study of waiting lines, or queues.The objective of queuing analysis is to design systems that enable organizations to perform optimally according to some criterion. Possible CriteriaMaximum Profits.Desired Service Level.

  • IntroductionAnalyzing queuing systems requires a clear understanding of the appropriate service measurement.Possible service measurementsAverage time a customer spends in line.Average length of the waiting line.The probability that an arriving customer must wait for service.

  • Elements of the Queuing ProcessA queuing system consists of three basic components: Arrivals: Customers arrive according to some arrival pattern.

    Waiting in a queue: Arriving customers may have to wait in one or more queues for service.

    Service: Customers receive service and leave the system.

  • The Arrival ProcessThere are two possible types of arrival processesDeterministic arrival process.Random arrival process.The random process is more common in businesses.

  • The Arrival ProcessUnder three conditions the arrivals can be modeled as a Poisson processOrderliness : one customer, at most, will arrive during any time interval.Stationarity : for a given time frame, the probability of arrivals within a certain time interval is the same for all time intervals of equal length.Independence : the arrival of one customer has no influence on the arrival of another.

  • The Poisson Arrival ProcessP(X = k) =Wherel = mean arrival rate per time unit.t = the length of the interval.e = 2.7182818 (the base of the natural logarithm).k! = k (k -1) (k -2) (k -3) (3) (2) (1). (lt)ke- ltk!

  • HANKs HARDWARE Arrival ProcessCustomers arrive at Hanks Hardware according to a Poisson distribution. Between 8:00 and 9:00 A.M. an average of 6 customers arrive at the store.What is the probability that k customers will arrive between 8:00 and 8:30 in the morning (k = 0, 1, 2,)?

  • HANKs HARDWARE An illustration of the Poisson distribution. Input to the Poisson distribution l = 6 customers per hour. t = 0.5 hour. lt = (6)(0.5) = 3.

    k(lt) e- lt k !=00!0.0497871!1 0.14936122!0.22404233! 0.2240421234567P(X = k )=80123

  • HANKs HARDWARE Using Excel for the Poisson probabilitiesSolutionWe can use the POISSON function in Excel to determine Poisson probabilities.Point probability: P(X = k) = ?Use Poisson(k, lt, FALSE)Example: P(X = 0; lt = 3) = POISSON(0, 1.5, FALSE)Cumulative probability: P(Xk) = ?Example: P(X3; lt = 3) = Poisson(3, 1.5, TRUE)

  • HANKs HARDWARE Excel Poisson

  • The Waiting Line CharacteristicsFactors that influence the modeling of queues Line configurationJockeyingBalking Priority Tandem Queues Homogeneity

  • Line ConfigurationA single service queue.Multiple service queue with single waiting line.Multiple service queue with multiple waiting lines.Tandem queue (multistage service system).

  • Jockeying and BalkingJockeying occurs when customers switch lines once they perceived that another line is moving faster.Balking occurs if customers avoid joining the line when they perceive the line to be too long.

  • Priority RulesThese rules select the next customer for service.There are several commonly used rules:First come first served (FCFS).Last come first served (LCFS).Estimated service time.Random selection of customers for service.

  • Tandem QueuesThese are multi-server systems. A customer needs to visit several service stations (usually in a distinct order) to complete the service process.ExamplesPatients in an emergency room.Passengers prepare for the next flight.

  • HomogeneityA homogeneous customer population is one in which customers require essentially the same type of service.A non-homogeneous customer population is one in which customers can be categorized according to: Different arrival patternsDifferent service treatments.

  • The Service ProcessIn most business situations, service time varies widely among customers.When service time varies, it is treated as a random variable.The exponential probability distribution is used sometimes to model customer service time.

  • The Exponential Service Time Distributionm = the average number of customers who can be served per time period.Therefore, 1/m = the mean service time.

  • Schematic illustration of the exponential distributionThe probability that service is completed within t time unitsP(X t) = 1 - e-mtX = t

  • HANKs HARDWARE Service timeHanks estimates the average service time to be 1/m = 4 minutes per customer.Service time follows an exponential distribution.What is the probability that it will take less than 3 minutes to serve the next customer?

  • Using Excel for the Exponential ProbabilitiesWe can use the EXPDIST function in Excel to determine exponential probabilities.Probability density: f(t) = ?Use EXPONDIST(t, m, FALSE)Cumulative probability: P(Xk) = ?Use EXPONDIST(t, m, TRUE)

  • HANKs HARDWARE Using Excel for the Exponential ProbabilitiesThe mean number of customers served per minute is = (60) = 15 customers per hour. P(X < .05 hours) = 1 e-(15)(.05) = ?From Excel we have:EXPONDIST(.05,15,TRUE) = .5276

  • HANKs HARDWARE Using Excel for the Exponential Probabilities=EXPONDIST(A10,$B$3,FALSE)Drag to B11:B26

    Chart1

    15

    10.3093391819

    7.0854982911

    4.8697870104

    3.3469524022

    2.3003245027

    1.5809883684

    1.0865963555

    0.7468060255

    0.5132717747

    0.3527661878

    0.2424524188

    0.1666349481

    0.1145264133

    0.078712776

    0.054098447

    0.0371812826

    t

    f(t)

    Exponential Distribution for Mu = 15

    Sheet1

    Exponential Distribution

    Mu15

    t =0.05

    P(X

  • The Exponential Distribution - CharacteristicsThe memoryless property.No additional information about the time left for the completion of a service, is gained by recording the time elapsed since the service started.For Hanks, the probability of completing a service within the next 3 minutes is (0.52763) independent of how long the customer has been served already.

    The Exponential and the Poisson distributions are related to one another.If customer arrivals follow a Poisson distribution with mean rate l, their interarrival times are exponentially distributed with mean time 1/l.

  • 9.3 Performance Measures of Queuing System Performance can be measured by focusing on:Customers in queue.Customers in the system.

    Performance is measured for a system in steady state.

  • 9.3 Performance Measures of Queuing System The transient period occurs at the initial time of operation.Initial transient behavior is not indicative of long run performance.Roughly, this is a transient periodnTime

  • 9.3 Performance Measures of Queuing System This is a steady state period..nTimeThe steady state period follows the transient period. Meaningful long run performance measures can be calculated for the system when in steady state.Roughly, this is a transient period

  • 9.3 Performance Measures of Queuing System In order to achieve steady state, the effective arrival rate must be less than the sum of the effective service rates .

    l< kmEach with service rate of ml< m1 +m2++mkFor k serverswith service rates mil< mFor one server

  • Steady State Performance Measures

    P0 = Probability that there are no customers in the system.

    Pn = Probability that there are n customers in the system.

    L = Average number of customers in the system.

    Lq = Average number of customers in the queue.W = Average time a customer spends in the system.Wq = Average time a customer spends in the queue.Pw = Probability that an arriving customer must wait for service.

    r = Utilization rate for each server (the percentage of time that each server is busy).

  • Littles FormulasLittles Formulas represent important relationships between L, Lq, W, and Wq.These formulas apply to systems that meet the following conditions: Single queue systems, Customers arrive at a finite arrival rate l, and The system operates under a steady state condition.

    L = l W Lq = l WqL = Lq + l/mFor the case of an infinite population

  • Classification of QueuesQueuing system can be classified by:Arrival process.Service process.Number of servers.System size (infinite/finite waiting line).Population size.NotationM (Markovian) = Poisson arrivals or exponential service time.D (Deterministic) = Constant arrival rate or service time.G (General) = General probability for arrivals or service time. Example:

    M / M / 6 / 10 / 20

  • M/M/1 Queuing System - AssumptionsPoisson arrival process.Exponential service time distribution.A single server.Potentially infinite queue. An infinite population.

  • M / M /1 Queue - Performance MeasuresP0 = 1 (l/m)Pn = [1 (l/m)](l/m)nL = l /(m l)Lq = l2 /[m(m l)]W = 1 /(m l)Wq = l /[m(m l)]Pw = l / m r = l / m The probability thata customer waits in the system more than t is P(X>t) = e-(m - l)t

  • MARYs SHOESCustomers arrive at Marys Shoes every 12 minutes on the average, according to a Poisson process.

    Service time is exponentially distributed with an average of 8 minutes per customer.

    Management is interested in determining the performance measures for this service system.

  • MARYs SHOES - SolutionInputl = 1/12 customers per minute = 60/12 = 5 per hour. m = 1/ 8 customers per minute = 60/ 8 = 7.5 per hour.

    Performance CalculationsP0 = 1 - (l/m) = 1 - (5/7.5) = 0.3333Pn = [1 - (l/m)](l/m)n = (0.3333)(0.6667)n L = l/(m - l) = 2Lq = l2/[m(m - l)] = 1.3333W = 1/(m - l) = 0.4 hours = 24 minutesWq = l/[m(m - l)] = 0.26667 hours = 16 minutes

  • MARYs SHOES - Spreadsheet solution

  • Economic Analysis of Queuing SystemsThe performance measures previously developed are used next to determine a minimal cost queuing system.The procedure requires estimated costs such as: Hourly cost per server .Customer goodwill cost while waiting in line. Customer goodwill cost while being served.

  • Tandem Queuing SystemsIn a Tandem Queuing System a customer must visit several different servers before service is completed. ExamplesAll-You-Can-Eat restaurant

  • Beverage Meats In a Tandem Queuing System a customer must visit several different servers before service is completed.Tandem Queuing SystemsExamplesAll-You-Can-Eat restaurant

  • Beverage Meats Tandem Queuing SystemsA drive-in restaurant, where first you place your order, then pay and receive it in the next window.A multiple stage assembly line.ExamplesAll-You-Can-Eat restaurantIn a Tandem Queuing System a customer must visit several different servers before service is completed.

  • Tandem Queuing SystemsFor cases in which customers arrive according to a Poisson process and service time in each station is exponential, .Total Average Time in the System = Sum of all average times at the individual stations

  • BIG BOYS SOUND, INC.Big Boys sells audio merchandise.The sale process is as follows:A customer places an order with a sales person.The customer goes to the cashier station to pay for the order.After paying, the customer is sent to the pickup desk to obtain the good.

  • BIG BOYS SOUND, INC.Data for a regular SaturdayPersonnel.8 sales persons are on the job.3 cashiers.2 workers in the merchandise pickup area.Average service times.Average time a sales person waits on a customer is 10 minutes.Average time required for the payment process is 3 minutes.Average time in the pickup area is 2 minutes.Distributions.Exponential service time at all the service stations.Poisson arrival with a rate of 40 customers an hour.

  • BIG BOYS SOUND, INC.What is the average amount of time, a customer who makes a purchase spends in the store?Only 75% of the arriving customers make a purchase!

  • BIG BOYS SOUND, INC. SolutionThis is a Three Station Tandem Queuing System

    Sales ClerksM / M / 8CashiersM / M / 3Pickup deskM / M / 2l = 40l = 30l = 30W1 = 14 minutesW2 = 3.47 minutesW3 = 2.67 minutesTotal = 20.14 minutes.(.75)(40)=30