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

Similar documents
λ λ λ In-class problems

Statistics 433 Practice Final Exam: Cover Sheet and Marking Sheet

Answers to selected exercises

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

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

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

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

Discrete Event Systems Exam

Operations Research II, IEOR161 University of California, Berkeley Spring 2007 Final Exam. Name: Student ID:

ISyE 2030 Practice Test 2

Review of Queuing Models

Introduction to queuing theory

ISM206 Lecture, May 12, 2005 Markov Chain

HW1 (due 10/6/05): (from textbook) 1.2.3, 1.2.9, , , (extra credit) A fashionable country club has 100 members, 30 of whom are

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

CS 798: Homework Assignment 3 (Queueing Theory)

Readings: Finish Section 5.2

Name of the Student:

Non Markovian Queues (contd.)

SOLUTIONS IEOR 3106: Second Midterm Exam, Chapters 5-6, November 8, 2012

Probability and Statistics Concepts

IE 5112 Final Exam 2010

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

Examination paper for TMA4265 Stochastic Processes

BIRTH DEATH PROCESSES AND QUEUEING SYSTEMS

. Find E(V ) and var(v ).

Classification of Queuing Models

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

Statistics 253/317 Introduction to Probability Models. Winter Midterm Exam Friday, Feb 8, 2013

56:171 Operations Research Final Exam December 12, 1994

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

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

Queuing Theory. Using the Math. Management Science

Basic Queueing Theory

Math 493 Final Exam December 01

The Transition Probability Function P ij (t)

Markov Chains. Chapter 16. Markov Chains - 1

Math 180B Problem Set 3

1.225J J (ESD 205) Transportation Flow Systems

Name of the Student: Problems on Discrete & Continuous R.Vs

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

Simultaneous Equations Solve for x and y (What are the values of x and y): Summation What is the value of the following given x = j + 1. x i.

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

Massachusetts Institute of Technology Department of Electrical Engineering & Computer Science 6.041/6.431: Probabilistic Systems Analysis

STAT 516 Midterm Exam 2 Friday, March 7, 2008

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

Math st Homework. First part of Chapter 2. Due Friday, September 17, 1999.

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

ECE 302, Final 3:20-5:20pm Mon. May 1, WTHR 160 or WTHR 172.

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 "

Slides 9: Queuing Models

Statistics 150: Spring 2007

CS 125 Section #12 (More) Probability and Randomized Algorithms 11/24/14. For random numbers X which only take on nonnegative integer values, E(X) =

PRACTICE PROBLEMS FOR EXAM 2

For a list of topics, look over the previous review sheets. Since the last quiz we have... Benford s Law. When does it appear? How do people use it?

Probability and Stochastic Processes Homework Chapter 12 Solutions

JRF (Quality, Reliability and Operations Research): 2013 INDIAN STATISTICAL INSTITUTE INSTRUCTIONS

Single-part-type, multiple stage systems

Name of the Student: Problems on Discrete & Continuous R.Vs

Solutions to COMP9334 Week 8 Sample Problems

1. If X has density. cx 3 e x ), 0 x < 0, otherwise. Find the value of c that makes f a probability density. f(x) =

The exam is closed book, closed calculator, and closed notes except your one-page crib sheet.

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

AP Statistics Semester I Examination Section I Questions 1-30 Spend approximately 60 minutes on this part of the exam.

CPSC 531 Systems Modeling and Simulation FINAL EXAM

MAS275 Probability Modelling Exercises

Exam 1 Solutions. Problem Points Score Total 145

56:171 Operations Research Final Examination December 15, 1998

L = λ W time average number in Line or system arrival rate W average Waiting time per customer

PBW 654 Applied Statistics - I Urban Operations Research

This exam contains 13 pages (including this cover page) and 10 questions. A Formulae sheet is provided with the exam.

1 Gambler s Ruin Problem

QUEUING MODELS AND MARKOV PROCESSES

Session-Based Queueing Systems

EECS 126 Probability and Random Processes University of California, Berkeley: Spring 2015 Abhay Parekh February 17, 2015.

Problem Points S C O R E Total: 120

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

Exercises Stochastic Performance Modelling. Hamilton Institute, Summer 2010

Page 0 of 5 Final Examination Name. Closed book. 120 minutes. Cover page plus five pages of exam.

The effect of probabilities of departure with time in a bank

Math , Fall 2012: HW 5 Solutions

Weather Overnight. Income (I) Running total

Markov Chains CK eqns Classes Hitting times Rec./trans. Strong Markov Stat. distr. Reversibility * Markov Chains

Chapter 16 focused on decision making in the face of uncertainty about one future

1 Basic continuous random variable problems

Systems Simulation Chapter 6: Queuing Models

n(1 p i ) n 1 p i = 1 3 i=1 E(X i p = p i )P(p = p i ) = 1 3 p i = n 3 (p 1 + p 2 + p 3 ). p i i=1 P(X i = 1 p = p i )P(p = p i ) = p1+p2+p3

S.R.S Varadhan by Professor Tom Louis Lindstrøm

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

CSE 312 Foundations, II Final Exam

1 Basic continuous random variable problems

IEOR 6711: Stochastic Models I, Fall 2003, Professor Whitt. Solutions to Final Exam: Thursday, December 18.

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

Lecture Notes 7 Random Processes. Markov Processes Markov Chains. Random Processes

Continuous-Time Markov Chain

Data analysis and stochastic modeling

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

Introduction to Queuing Networks Solutions to Problem Sheet 3

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science

EXAM IN COURSE TMA4265 STOCHASTIC PROCESSES Wednesday 7. August, 2013 Time: 9:00 13:00

Transcription:

NANYANG TECHNOLOGICAL UNIVERSITY SEMESTER I EXAMINATION 2013-201 MH702/MAS6/MTH37 Probabilistic Methods in OR December 2013 TIME ALLOWED: 2 HOURS INSTRUCTIONS TO CANDIDATES 1. This examination paper contains FOUR () questions comprises FIVE (5) printed pages. 2. Answer all questions. The marks for each question are indicated at the beginning of each question. 3. Answer each question beginning on a FRESH page of the answer book.. This IS NOT an OPEN BOOK exam. 5. Cidates may use calculators. However, they should write down systematically the steps in the workings.

MH702/MAS6/MTH37 Question 1. A casino offers a gambling game with the following rules. (20 marks) 1. Each play of the game involves repeatedly flipping an unbiased coin until the difference between the number of heads tossed the number of tails is 3. 2. If you decide to play the game, you are required to pay $1 for each flip of the coin. You are not allowed to quit during a play of the game. 3. You receive $8 at the end of each play of the game. Thus, you win money if the number of flips required for one play of this game is fewer than 8, but lose money if more than 8 flips are required. You now wish to find out the expected amount of money to win or lose for each play of the game. (i) Formulate the above gaming process as a Markov chain. Construct the (onestep) transition matrix for this Markov chain. (ii) Determine the amount of money one expects to win or lose for each play of the game. (i) Solution: We formulate the problem as a Markov chain of four states. State 0 difference is 0 State 1 difference is 1 State 2 difference is 2 State 3 difference is 3 The one-step transition matrix hence is 0 1 2 3 0 0 1 0 0 1 0.5 0 0.5 0 2 0 0.5 0 0.5 3 0 0 0 1 (ii) We are going to find the expected first passage time from state 0 to state 3, which is denoted by µ 03. It s done by solving the following linear equations, which come from µ ij = 1 + k j p ikµ kj. µ 03 = 1 + µ 13 2

MH702/MAS6/MTH37 µ 13 = 1 + 0.5µ 03 + 0.5µ 23, µ 23 = 1 + 0.5µ 13 Therefore, µ 03 = 9. It says that one expects to lose one dollar for each play of the game. Question 2. (25 marks) An automatic car wash facility operates with only one bay. Cars arrive according to a Poisson distribution with a mean of cars per hour may wait in the facility s parking lot if the bay is busy. Cars are first-come-first-served. (i) Assume that the service time is constant equal to 10 minutes. Find the average time of a car waiting in the parking lot. (ii) Assume instead that there are three types of service configurations available: fast, normal slow, taking, 8 15 minutes, respectively. Each car will choose one type of service configuration (fast, normal or slow) with probabilities 0.2, 0.6 0.2, respectively. Find the average time of a car waiting in the parking lot. Solution: (i) We apply the M/G/1 queueing model, where λ =, µ = 6, ρ = 2, σ = 0. 3 Hence, L q = λ2 σ 2 + ρ 2 2(1 ρ) = (2/3)2 2(1 2/3) = 2 3 W q = L q λ = 2/3 = 1 6, which means that the average time of a car waiting in the parking lot is 10 minutes. 60 (ii) We apply the M/G/1 queueing model, where λ =, µ = = 0.2 +0.6 8+0.2 15 60 8.6 = 6.9767, ρ = = 0.5733, 8.6 15 σ2 = 0.2 ( 8.6 60 60 )2 + 0.6 ( 8 8.6 60 60 )2 + 0.2 ( 15 8.6 60 60 )2 = 0.0035. Hence, L q = λ2 σ 2 + ρ 2 2(1 ρ) = 2 0.0035 + 0.5733 2 2(1 0.5733) = 0.508 W q = L q λ = 0.508 = 0.1127, which means that the average time of a car waiting in the parking lot is 0.1127 60 = 6.7613 minutes. 3

MH702/MAS6/MTH37 Question 3. (25 marks) Consider the following blood inventory problem facing a hospital. There is need for a rare blood type, namely, type AB, Rh negative blood. The dem D (in pints) over any 3-day period is given by P {D = 0} = 0., P {D = 1} = 0.3, P {D = 2} = 0.2, P {D = 3} = 0.1. At the beginning of each 3-day period, a decision must be made about how many pints of blood to order for a regular delivery. A regular delivery takes 3 days (i.e., the blood ordered at the beginning of this 3-day period will arrive only at the beginning of the next 3-day period). If more blood is demed than is on h at any time, an expensive emergency delivery is made, in which case the ordered blood will arrive immediately. As a special equipment is required to hold the blood, the hospital has only a maximum capacity of holding 3 pints of blood so that excessive blood will be discarded immediately. The cost of regular delivery is $50 per pint, while the cost of an emergency delivery is $100 per pint. Denote the state of the system as the number of pints on h at the beginning of each 3-day period. The hospital wishes to determine how many pints of blood to order for a regular delivery in order to minimize the (long-run) expected average delivery cost (from both regular emergency deliveries) per 3-day period. (i) Formulate this problem as a Markov decision process by identifying the states decisions then finding the value for each p ij (k) C ik. (ii) Formulate a linear programming model for finding an optimal ordering policy (Don t need to solve this model for solution). Solution: Here we choose to formulate a Markov decision process of four states four decisions. State 0 State 1 State 2 State 3 Decision 1 Decision 2 Decision 3 Decision 0 pint on h 1 pint on h 2 pints on h 3 pints on h Order 0 pint Order 1 pint Order 2 pints Order 3 pints Let y ik be the probability that the system is in state i decision k is made. We present in the following table all the values of p ij (k) C ik.

MH702/MAS6/MTH37 p ij (k) State Decision 0 1 2 3 C ik 0 1 1 0 0 0 50 0 + 100 (0. 0 + 0.3 1 + 0.2 2 + 0.1 3) = 100 2 0 1 0 0 50 1 + 100 (0. 0 + 0.3 1 + 0.2 2 + 0.1 3) = 150 3 0 0 1 0 50 2 + 100 (0. 0 + 0.3 1 + 0.2 2 + 0.1 3) = 200 0 0 0 1 50 3 + 100 (0. 0 + 0.3 1 + 0.2 2 + 0.1 3) = 250 1 1 0.6 0. 0 0 50 0 + 100 (0. 0 + 0.3 0 + 0.2 1 + 0.1 2) = 0 2 0 0.6 0. 0 50 1 + 100 (0. 0 + 0.3 0 + 0.2 1 + 0.1 2) = 90 3 0 0 0.6 0. 50 2 + 100 (0. 0 + 0.3 0 + 0.2 1 + 0.1 2) = 10 0 0 0 1 50 3 + 100 (0. 0 + 0.3 0 + 0.2 1 + 0.1 2) = 190 2 1 0.3 0.3 0. 0 50 0 + 100 (0. 0 + 0.3 0 + 0.2 0 + 0.1 1) = 10 2 0 0.3 0.3 0. 50 1 + 100 (0. 0 + 0.3 0 + 0.2 0 + 0.1 1) = 60 3 0 0 0.3 0.7 50 2 + 100 (0. 0 + 0.3 0 + 0.2 0 + 0.1 1) = 110 0 0 0 1 50 3 + 100 (0. 0 + 0.3 0 + 0.2 0 + 0.1 1) = 160 3 1 0.1 0.2 0.3 0. 50 0 + 100 (0. 0 + 0.3 0 + 0.2 0 + 0.1 0) = 0 2 0 0.1 0.2 0.7 50 1 + 100 (0. 0 + 0.3 0 + 0.2 0 + 0.1 0) = 50 3 0 0 0.1 0.9 50 2 + 100 (0. 0 + 0.3 0 + 0.2 0 + 0.1 0) = 100 0 0 0 1 50 3 + 100 (0. 0 + 0.3 0 + 0.2 0 + 0.1 0) = 150 Question. (30 marks) The local one-person barber shop can accommodate a maximum of 5 people at a time ( waiting 1 getting hair-cut). Customers arrive according to a Poisson distribution with a mean rate of 5 per hour. However, customers will leave without entering the barber shop if they find upon arrival that the barber shop is already full. The time spent by the barber to cut hair for each customer has an exponential distribution with a mean of 15 minutes. (i) What is the probability that a customer can get directly a hair cut upon arrival? (ii) What is the expected number of customers waiting for a hair cut? (iii) How much time can a customer expect to spend in the barber shop? (iv) What fraction of potential customers are turned away? Hint: For the M/M/1/K queueing model we have the following results when ρ 1: P 0 = L = 1 ρ 1 ρ, P K+1 n = 1 ρ 1 ρ K+1 ρn, 0 n K ρ (K + 1)ρK+1, L 1 ρ 1 ρ K+1 q = L (1 P 0 ) 5

MH702/MAS6/MTH37 Solution: We apply the M/M/1/K queueing model, where λ = 5, µ =, ρ = 5, K = 5. Hence, P 0 = 1 ρ 1 5/ = 1 ρk+1 1 (5/) = 0.0888 6 L = P 1 = P 0 ρ = 0.0888 5 = 0.1110 ( ) 2 5 P 2 = P 0 ρ = 0.0888 = 0.1110 ( ) 3 5 P 3 = P 0 ρ = 0.0888 = 0.1388 ( ) 5 P = P 0 ρ = 0.0888 = 0.2168 ( ) 5 5 P 5 = P 0 ρ = 0.0888 = 0.2711 ρ (K + 1)ρK+1 = 1.25 1 ρ 1 ρ K+1 1 1.25 6 1.256 1 1.25 = 3.1317 6 L q = L (1 P 0 ) = 3.1317 (1 0.0888) = 2.2205 λ = λ(1 P K ) = 5 (1 0.2711) = 3.65 W = L λ = 3.1317 3.65 = 0.8593 W q = L q λ = 2.2205 3.65 = 0.6093 Therefore, the solutions are (i) 0.0888 (=P 0 ), (ii) 2.2205 (=L q ), (iii) 0.8596 60 = 51.5577 minutes (=W ), (iv) 0.2711 (=P 5 ). END OF PAPER 6