EMGT 501 Fall 2005 Midterm Exam SOLUTIONS.

Slides:



Advertisements
Similar presentations
Lecture 10 Queueing Theory. There are a few basic elements common to almost all queueing theory application. Customers arrive, they wait for service in.
Advertisements

Many useful applications, especially in queueing systems, inventory management, and reliability analysis. A connection between discrete time Markov chains.
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Where is There Waiting? Service Facility –Fast-food restaurants –Post office –Grocery store.
Chapter Queueing Notation
Queueing Models and Ergodicity. 2 Purpose Simulation is often used in the analysis of queueing models. A simple but typical queueing model: Queueing models.
Continuous-Time Markov Chains Nur Aini Masruroh. LOGO Introduction  A continuous-time Markov chain is a stochastic process having the Markovian property.
1 Chapter 5 Continuous time Markov Chains Learning objectives : Introduce continuous time Markov Chain Model manufacturing systems using Markov Chain Able.
INDR 343 Problem Session
Review of Probability Distributions
TCOM 501: Networking Theory & Fundamentals
1 Part III Markov Chains & Queueing Systems 10.Discrete-Time Markov Chains 11.Stationary Distributions & Limiting Probabilities 12.State Classification.
Lecture 13 – Continuous-Time Markov Chains
Nur Aini Masruroh Queuing Theory. Outlines IntroductionBirth-death processSingle server modelMulti server model.
Queuing Models Basic Concepts
Model Antrian By : Render, ect. Outline  Characteristics of a Waiting-Line System.  Arrival characteristics.  Waiting-Line characteristics.  Service.
HW # Due Day: Nov 23.
Queueing Theory (2). Home Work 12-9 and Due Day: October 31 (Monday) 2005.
Performance analysis for high speed switches Lecture 6.
Queuing Systems Chapter 17.
Waiting Line Models And Service Improvement
Queueing Theory: Part I
Question 11 – 3.
Queueing Theory Chapter 17.
Lecture 11 Queueing Models. 2 Queueing System  Queueing System:  A system in which items (or customers) arrive at a station, wait in a line (or queue),
To Accompany Russell and Taylor, Operations Management, 4th Edition,  2003 Prentice-Hall, Inc. All rights reserved. Chapter 16 Waiting Line Models and.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
HW # Due Day: Nov 23.
QUEUING MODELS Queuing theory is the analysis of waiting lines It can be used to: –Determine the # checkout stands to have open at a store –Determine the.
Lecture 14 – Queuing Systems
Queuing Theory (Waiting Line Models)
Queuing Models and Capacity Planning
Copyright 2006 John Wiley & Sons, Inc. Beni Asllani University of Tennessee at Chattanooga Waiting Line Analysis for Service Improvement Operations Management.
Introduction to Management Science
1 Chapter 5 Flow Lines Types Issues in Design and Operation Models of Asynchronous Lines –Infinite or Finite Buffers Models of Synchronous (Indexing) Lines.
Management of Waiting Lines McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Queuing Models. © 2002 Prentice-Hall, IncCh 9-2 Stay in Queue: Short Video &feature=related
1 Queuing Analysis Overview What is queuing analysis? - to study how people behave in waiting in line so that we could provide a solution with minimizing.
18 Management of Waiting Lines.
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.
1 Queuing Models Dr. Mahmoud Alrefaei 2 Introduction Each one of us has spent a great deal of time waiting in lines. One example in the Cafeteria. Other.
1 Elements of Queuing Theory The queuing model –Core components; –Notation; –Parameters and performance measures –Characteristics; Markov Process –Discrete-time.
Queuing Theory. Introduction Queuing is the study of waiting lines, or queues. The objective of queuing analysis is to design systems that enable organizations.
1 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
Why Wait?!? Bryan Gorney Joe Walker Dave Mertz Josh Staidl Matt Boche.
Chapter 01 Probability and Stochastic Processes References: Wolff, Stochastic Modeling and the Theory of Queues, Chapter 1 Altiok, Performance Analysis.
Chapter 01 Probability and Stochastic Processes References: Wolff, Stochastic Modeling and the Theory of Queues, Chapter 1 Altiok, Performance Analysis.
Chapter 20 Queuing Theory to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole,
Copyright 2006 John Wiley & Sons, Inc. Beni Asllani University of Tennessee at Chattanooga Waiting Line Analysis for Service Improvement Operations Management.
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
QUEUING THEORY.
Maciej Stasiak, Mariusz Głąbowski Arkadiusz Wiśniewski, Piotr Zwierzykowski Model of the Nodes in the Packet Network Chapter 10.
Chapter 6 Queueing Models
1 1 Slide Chapter 12 Waiting Line Models n The Structure of a Waiting Line System n Queuing Systems n Queuing System Input Characteristics n Queuing System.
Introduction Definition M/M queues M/M/1 M/M/S M/M/infinity M/M/S/K.
Queuing Theory.  Queuing Theory deals with systems of the following type:  Typically we are interested in how much queuing occurs or in the delays at.
Chapter 5 Elementary Stochastic Analysis Prof. Ali Movaghar.
© 2015 McGraw-Hill Education. All rights reserved. Chapter 17 Queueing Theory.
Management of Waiting Lines Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent.
Queueing Theory/Waiting Line: Models and Analysis Navneet Vidyarthi
Abu Bashar Queuing Theory. What is queuing ?? Queues or waiting lines arise when the demand for a service facility exceeds the capacity of that facility,
Managerial Decision Making Chapter 13 Queuing Models.
Introduction to Queueing Theory
Module D Waiting Line Models.
Models of Traffic Flow 1.
Queueing Theory What is a queue? Examples of queues:
Solutions Queueing Theory 1
Lecture 13 – Queuing Systems
Waiting Line Models Waiting takes place in virtually every productive process or service. Since the time spent by people and things waiting in line is.
Presentation transcript:

EMGT 501 Fall 2005 Midterm Exam SOLUTIONS

M1 = units of component 1 manufactured 1. a M1 = units of component 1 manufactured M2 = units of component 2 manufactured M3 = units of component 3 manufactured P1 = units of component 1 purchased P2 = units of component 2 purchased P3 = units of component 3 purchased Min M1, M2, M3, P1, P2, P3 0

b Source Manufacture Purchase Component 1 2000 4000 Component 2 4000 Component 3 1400 2100 Total Cost: $73,550

c Max all

d. u1* = 0.9063, u2* = 0, u3* = 0.1250, u4* = 6.5 u5* = 7.9688 and u6* = 7.000 If a dual variable is positive on optimality, then its corresponding constraint in primal formulation becomes binding (=). Similarly, if a primal variable is positive on optimality, then its corresponding constraint in dual formulation becomes binding (=).

2. a b

c The objective is changed from 9 to 11 NOTE:

3. a Min

b. Optimal solution: u1 = 3/10, u2 = 0, u3 = 54/30 The (z-c)j values for the four surplus variables of the dual show x1 = 0, x2 = 25, x3 = 125, and x4 = 0. c. Since u1 = 3/10, u2 = 0, and u3 = 54/30, machines A and C (uj > 0) are operating at capacity. Machine C is the priority machine since each hour is worth 54/30.

4. a

b Activity Expected Time Variance A 4.83 0.25 B 4.00 0.44 C 6.00 0.11 D 8.83 E F 2.00 G 7.83 0.69 H 8.00 I

Activity Earliest Start Latest Finish Slack Critical A 0.00 4.83 Yes B 0.83 4.00 C 5.67 10.83 11.67 D 13.67 E 17.67 8.00 21.67 F 12.83 G 13.83 21.50 0.17 H I 25.67

c Critical Path: A-D-H-I d E(T)= tA + tD + tH + tI = 4.83 + 8.83 + 8 + 4 = 25.66 days e Using the normal distribution, From Appendix, area for z = -0.65 is 0.2422. Probability of 25 days or less = 0.5000 - 0.2422 = 0.2578

Number of production runs = D / Q* = 7200 / 1078.12 = 6.68 5. a b Number of production runs = D / Q* = 7200 / 1078.12 = 6.68 [days] C

d Production run length = days e Maximum Inventory

f Holding Cost Ordering cost Total Cost = $2,003.48 g

6. a C = current cost per unit C ' = 1.23 C new cost per unit Let Q' = new optimal production lot size

Q' = 0.9017(Q*) = 0.9017(5000) = 4509

Queueing Theory

The Basic Structure of Queueing Models The Basic Queueing Process: Customers are generated over time by an input source. The customers enter a queueing system. A required service is performed in the service mechanism.

Input source Queueing system Served customers Queue Service mechanism Customers

Input Source (Calling Population): The size of Input Source (Calling Population) is assumed infinite because the calculations are far easier. The pattern by which customers are generated is assumed to be a Poisson process.

The probability distribution of the time between consecutive arrivals is an exponential distribution. The time between consecutive arrivals is referred to as the interarrival time.

Queue: The queue is where customers wait before being served. A queue is characterized by the maximum permissible number of customers that it can contain. The assumption of an infinite queue is the standard one for most queueing models.

Queue Discipline: The queue discipline refers to the order in which members of the queue are selected for service. For example, (a) First-come-first-served (b) Random

Service Mechanism: The service mechanism consists of one or more service facilities, each of which contains one or more parallel service channels, called servers. The time at a service facility is referred to as the service time. The service-time is assumed to be the exponential distribution.

Elementary Queueing Process Served customers Queueing system Queue C S S Service S facility Customers C C C C C C C Served customers

Distribution of service times Number of servers Distribution of interarrival times Where M = exponential distribution (Markovian) D = degenerate distribution (constant times) = Erlang distribution (shape parameter = k) G = general distribution(any arbitrary distribution allowed)

Both interarrival and service times have an exponential distribution Both interarrival and service times have an exponential distribution. The number of servers is s . Interarrival time is an exponential distribution. No restriction on service time. The number of servers is exactly 1.

Terminology and Notation State of system = # of customers in queueing system. Queue length = # of customers waiting for service to begin. N(t) = # of customers in queueing system at time t (t 0) = probability of exactly n customers in queueing system at time t.

# of servers in queueing system. A mean arrival rate (the expected number of arrivals per unit time) of new customers when n customers are in system. A mean service rate for overall system (the expected number of customers completing service per unit time) when n customers are in system. Note: represents a combined rate at which all busy servers (those serving customers) achieve service completions.

When is a constant for all n, it is expressed by When the mean service rate per busy server is a constant for all n 1, this constant is denoted by . Under these circumstances, and are the expected interarrival time and the expected service time. is the utilization factor for the service facility.

The state of 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. After sufficient time has elapsed, the state of the system becomes essentially independent of the initial state and the elapsed time. The system has reached a steady-state condition, where the probability distribution of the state of the system remains the same over time.

The probability of exactly n customers in queueing system. The expected number of customers in queueing system The expected queue length (excludes customers being served)

A waiting time in system (includes service time) for each individual customer. A waiting time in queue (excludes service time) for each individual customer.

Relationships between and Assume that is a constant for all n. In a steady-state queueing process, Assume that the mean service time is a constant, for all It follows that,

The Role of the Exponential Distribution

An exponential distribution has the following probability density function:

Relationship to the Poisson distribution Suppose that the time between consecutive arrivals has an exponential distribution with parameter . Let X(t) be the number of occurrences by time t (t 0) The number of arrivals follows for n = 0, 1, 2, …;

The Birth-and-Death Process Most elementary queueing models assume that the inputs and outputs of the queueing system occur according to the birth-and-death process. In the context of queueing theory, the term birth refers to the arrival of a new customer into the queueing system, and death refers to the departure of a served customer.

The assumptions of the birth-and-death process are the following: Given N(t) = n, the current probability distribution of the remaining time until the next birth is exponential. Assumption 2. Given N(t) = n, the current probability distribution of the remaining time until the next death is exponential

Assumption 3. The random variable of assumption 1 (the remaining time until the next birth) and the random variable variable of assumption 2 (the remaining time until the next death) are mutually independent. The next transition in the state of the process is either (a single birth) (a single death), depending on whether the former or latter random variable is smaller.

The birth-and-death process is a special type of continuous time Markov chain. State: 0 1 2 3 n-2 n-1 n n+1 and are mean rates.

Starting at time 0, suppose that a count is made of the number of the times that the process enters this state and the number of times it leaves this state, as demoted below: the number of times that process enters state n by time t. process leaves state n by time t.

Rate In = Rate Out Principle. For any state of the system n (n = 0,1,2,…), average entering rate = average leaving rate. The equation expressing this principle is called the balance equation for state n.

Rate In = Rate Out State 1 2 n – 1 n

State: 0: 1: 2: To simplify notation, let for n = 1,2,…

and then define for n = 0. Thus, the steady-state probabilities are for n = 0,1,2,… The requirement that implies that so that

The definitions of L and specify that is the average arrival rate. is the mean arrival rate while the system is in state n. is the proportion of time for state n,

The M/M/s Model A M/M/s model assumes that all interarrival times are independently and identically distributed according to an exponential distribution, that all service times are independent and identically distributed according to another exponential distribution, and that the number of service is s (any positive integer).

In this model the queueing system’s mean arrival rate and mean service rate per busy server are constant ( and ) regardless of the state of the system. (a) Single-server case (s=1) State: 0 1 2 3 n-2 n-1 n n+1

(b) Multiple-server case (s > 1) for n = 0,1,2,… for n = 1,2,…s for n = s, s+1,... State: 0 1 2 3 s-2 s-1 s s+1

When the maximum mean service rate exceeds the mean arrival rate, that is, when a queueing system fitting this model will eventually reach a steady-state condition.

Results for the Single-Server Case (M/M/1). For s = 1, the factors for the birth-and-death process reduce to Therefor, Thus,

Similarly,

When , the mean arrival rate exceeds the mean service rate, the preceding solution “blows up” and grow without bound. Assuming , we can derive the probability distribution of the waiting time in the system (w) for a random arrival when the queue discipline is first-come-first-served. If this arrival finds n customers in the system, then the arrival will have to wait through n + 1 exponential service time, including his or her own.

Which reduces after considerable manipulation to The surprising conclusion is that w has an exponential distribution with parameter . Therefore, These results include service time in the waiting time.

Consider the waiting time in the queue (so excluding service time) for a random arrival when the queue discipline is first-come-first-served. If the arrival finds no customers already in the system, then the arrival is served immediately, so that

Results for the Multiple-Server Case (s > 1). When s > 1, the factors become for n = 0,1,2,…,s for n = s, s+1,…

Consequently, if [so that ], then

Where the n = 0 term in the last summation yields the correct value of 1 because of the convention that n! = 1 when n = 0. These factors also give if if

Furthermore,

Example A management engineer in the Country Hospital has made a proposal that a second doctor should be assigned to take care of increasing number of patients. She has concluded that the emergency cases arrive pretty much at random (a Poisson input process), so that interarrival times have an exponential distribution and the time spent by a doctor treating the cases approximately follows an exponential distribution. Therefore, she has chosen the M/M/s model.

By projecting the available data for the early evening shift into next year, she estimates that patients will arrive at an average rate of 1 every hour. A doctor requires an average of 20 minutes to treat each patient. Thus, with one hour as the unit of time, hour per customer hour per customer

so that customer per hour customer per hour The two alternatives being considered are to continue having just one doctor during this shift ( s = 1) or to add a second doctor ( s = 1). In both cases, so that the system should approach a steady-state condition.

s = 1 s = 2 for hour hour 1 hour hour

The Finite Queue Variation of the M/M/s Model] (Called the M/M/s/K Model) Queueing systems sometimes have a finite queue; i.e., the number of customers in the system is not permitted to exceed some specified number (denoted K) so the queue capacity is K - s. Any customer that arrives while the queue is “full” is refused entry into the system and so leaves forever.

From the viewpoint of the birth-and-death process, the mean input rate into the system becomes zero at these times. The one modification is needed for n = 0, 1, 2,…, K-1 for n K. Because for some values of n, a queueing system that fits this model always will eventually reach a steady-state condition, even when

The Finite Calling Population Variation of the M/M/s Model The only deviation from the M/M/s model is that the input source is limited; i.e., the size of the calling population is finite. For this case, let N denote the size of the calling population. When the number of customers in the queueing system is n (n = 0, 1, 2,…, N), there are only N - n potential customers remaining in the input source.

(a) Single-server case ( s = 1) for n = 0, 1, 2, …, N for n N for n = 1, 2, ... State: 0 1 2 n-2 n-1 n N-1 N

(a) Multiple-server case ( s > 1) for n = 0, 1, 2, …, N for n N for n = 1, 2, …, s for n = s, s + 1, ... State: 0 1 2 s-2 s-1 s N-1 N

[1] Single-Server case ( s = 1) Birth-Death Process 0 1 2 n-1 n n+1 Rate In = Rate Out State 1 2 n

Example

[2] Multiple-Server case ( s > 1) Birth-Death Process 0 1 2 3 s-2 s-1 s s+1

State 1 2 s - 1 s s + 1 Rate In = Rate Out

Question 1 Mom-and-Pop’s Grocery Store has a small adjacent parking lot with three parking spaces reserved for the store’s customers. During store hours, cars enter the lot and use one of the spaces at a mean rate of 2 per hour. For n = 0, 1, 2, 3, the probability Pn that exactly n spaces currently are being used is P0 = 0.2, P1 = 0.3, P2 = 0.3, P3 = 0.2. (a) Describe how this parking lot can be interpreted as being a queueing system. In particular, identify the customers and the servers. What is the service being provided? What constitutes a service time? What is the queue capacity? (b) Determine the basic measures of performance - L, Lq, W, and Wq - for this queueing system. (c) Use the results from part (b) to determine the average length of time that a car remains in a parking space.

Question 2 Consider the birth-and-death process with all and for n = 3, 4, … (a) Display the rate diagram. (b) Calculate P0, P1, P2, P3, and Pn for n = 4, 5, ... (c) Calculate L, Lq, W, and Wq.

Question 3 A certain small grocery store has a single checkout stand with a full-time cashier. Customers arrive at the stand “randomly” (i.e., a Poisson input process) at a mean rate of 30 per hour. When there is only one customer at the stand, she is processed by the cashier alone, with an expected service time of 1.5 minutes. However, the stock boy has been given standard instructions that whenever there is more than one customer at the stand, he is to help the cashier by bagging the groceries. This help reduces the expected time required to process a customer to 1 minute. In both cases, the service-time distribution is exponential. (a) Construct the rate diagram for this queueing system. (b) What is the steady-state probability distribution of the number of customers at the checkout stand? (c) Derive L for this system. (Hint: Refer to the derivation of L for the M/M/1 model at the beginning of Sec. 17.6.) Use this information to determine Lq, W, and Wq.