Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

A facility produces items according to a Poisson process with rate \(\lambda\). However, it has shelf space for only \(k\) items and so it shuts down production whenever \(k\) items are present. Customers arrive at the facility according to a Poisson process with rate \(\mu\). Each customer wants one item and will immediately depart either with the item or empty handed if there is no item available. (a) Find the proportion of customers that go away empty handed. (b) Find the ayerage time that an item is on the shelf. (c) Find the average number of items on the shelf. Suppose now that when a customer does not find any available items it joins the "customers' queue" as long as there are no more than \(n-1\) other customers waiting at that time. If there are \(n\) waiting customers then the new arrival departs without an item. (d) Set up the balance equations. (c) In terms of the solution of the balance equations, what is the average number of customers in the system.

Short Answer

Expert verified
(a) The proportion of customers that go away empty handed is: \[P_{empty-handed} = p_0 = \frac{1 - (\frac{\lambda}{\mu})^{k+1}}{1 - \frac{\lambda}{\mu}}\] (b) The average time that an item is on the shelf is: \[E[T] = \frac{1/\mu}{\sum_{i=1}^{k} i \frac{\lambda^i}{\mu^i} p_0}\] (c) The average number of items on the shelf is: \[\text{Avg. items on shelf} = \sum_{i=1}^{k} i \frac{\lambda^i}{\mu^i} p_0\] (d) The balance equations when there is a queue can be expressed as: \[\lambda p_i = \mu p_{i+1}\] (e) The average number of customers in the system is: \[\text{Avg. customers in system} = \sum_{i=1}^{k+n} i \frac{\lambda^i}{\mu^i} p_0\]

Step by step solution

01

Determine the equilibrium probabilities

To find the proportion of customers that go away empty handed, we first find the equilibrium probabilities of the number of items on the shelf. Denote these probabilities as \(p_0\) (no items), \(p_1\) (one item), ..., \(p_k\) (\(k\) items): \[p_i = \frac{\lambda^i}{\mu^i} p_0, \quad i=1,\ldots,k\]
02

Normalize probabilities

Now, normalize probabilities so that the sum of all probabilities is equal to 1: \[p_0 + p_1 + \ldots + p_k = 1 \quad \Rightarrow \quad p_0 \left(1 + \frac{\lambda}{\mu} + \left(\frac{\lambda}{\mu}\right)^2 + \ldots + \left(\frac{\lambda}{\mu}\right)^k\right) = 1\]
03

Calculate \(p_0\)

Notice that this is a geometric series. Evaluate \(p_0\) by using the formula for the geometric series sum: \[p_0 = \frac{1}{1 + \frac{\lambda}{\mu} + \left(\frac{\lambda}{\mu}\right)^2 + \ldots + \left(\frac{\lambda}{\mu}\right)^k} = \frac{1 - (\frac{\lambda}{\mu})^{k+1}}{1 - \frac{\lambda}{\mu}}\]
04

Calculate proportion of empty-handed customers

Now that we know \(p_0\), the proportion of customers that go away empty handed is the probability of the system being empty when a customer arrives, which is equal to \(p_0\): \[P_{empty-handed} = p_0 = \frac{1 - (\frac{\lambda}{\mu})^{k+1}}{1 - \frac{\lambda}{\mu}}\] (b) Average time that an item is on the shelf
05

Calculate time between customer arrivals

Since customers arrive at the facility according to a Poisson process with rate \(\mu\), the expected time between customer arrivals is \(1/\mu\).
06

Compute average item shelf time

The average time an item is on the shelf is the time between customer arrivals divided by the average number of items on the shelf. To find the average number of items on the shelf, compute the weighted sum of \(p_i\): \[\text{Avg. items on shelf} = \sum_{i=0}^{k} i p_i = \sum_{i=1}^{k} i \frac{\lambda^i}{\mu^i} p_0\] The average time an item is on the shelf is \(E[T] = \frac{1/\mu}{\sum_{i=1}^{k} i \frac{\lambda^i}{\mu^i} p_0}\). (c) Average number of items on the shelf The result has already been computed in part (b): \[\text{Avg. items on shelf} = \sum_{i=1}^{k} i \frac{\lambda^i}{\mu^i} p_0\] (d) Set up the balance equations when there is a queue
07

Determine state probabilities using balance equation

The balance equation for the system can be written as follows for \(i = 0, 1, \ldots\): \[\lambda p_i = \mu p_{i+1}\] Solving this equation recursively, we can express all probabilities \(p_i\) in terms of \(p_0\): \[p_i = \left(\frac{\lambda}{\mu}\right)^i p_0, \quad i = 0, 1, \ldots\] (e) Average number of customers in the system
08

Calculate average number of items on shelf and customers in queue

Determine how long the queue is allowed to be (\(n\)). Then calculate the weighted sum of \(p_i\), considering both the items on the shelf and the customers in the queue: \[\text{Avg. items on shelf + customers in queue} = \sum_{i=1}^{k+n} i \frac{\lambda^i}{\mu^i} p_0\]
09

Compute average number of customers in system

Since we count both items on the shelf and customers in the queue, the average number of customers in the system is simply the average number of items on the shelf plus the average number of customers in the queue: \[\text{Avg. customers in system} = \text{Avg. items on shelf + customers in queue} = \sum_{i=1}^{k+n} i \frac{\lambda^i}{\mu^i} p_0\]

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Consider a sequential-service system consisting of two servers, \(A\) and \(B\). Arriving customers will enter this system only if server \(A\) is free. If a customer does enter, then he is immediately served by server \(A\). When his service by \(A\) is completed, he then goes to \(B\) if \(B\) is free, or if \(B\) is busy, he leaves the system. Upon completion of service at server \(B\), the customer departs. Assume that the (Poisson) arrival rate is two customers an hour, and that \(A\) and \(B\) serve at respective (exponential) rates of four and two customers an hour. (a) What proportion of customers enter the system? (b) What proportion of entering customers receive service from B? (c) What is the average number of customers in the system? (d) What is the average amount of time that an entering customer spends in the system?

A group of \(n\) customers moves around among two servers. Upon completion of service, the served customer then joins the queue (or enters service if the server is free) at the other server. All service times are exponential with rate \(\mu .\) Find the proportion of time that there are \(j\) customers at server \(1, j=0, \ldots, n\).

A supermarket has two exponential checkout counters, each operating at rate \(\mu .\) Arrivals are Poisson at rate \(\lambda\). The counters operate in the following way: (i) One queue feeds both counters. (ii) One counter is operated by a permanent checker and the other by a stock clerk who instantaneously begins checking whenever there are two or more customers in the system. The clerk returns to stocking whenever he completes a service, and there are fewer than two customers in the system. (a) Find \(P_{n}\), proportion of time there are \(n\) in the system. (b) At what rate does the number in the system go from 0 to \(1 ?\) From 2 to \(1 ?\) (c) What proportion of time is the stock clerk checking? Hint: Be a little careful when there is one in the system.

Consider an \(M / G / 1\) system in which the first customer in a busy period has the service distribution \(G_{1}\) and all others have distribution \(G_{2}\). Let \(C\) denote the number of customers in a busy period, and let \(S\) denote the service time of a customer chosen at random. Argue that (a) \(a_{0}=P_{0}=1-\lambda E[S]\) (b) \(E[S]=a_{0} E\left[S_{1}\right]+\left(1-a_{0}\right) E\left[S_{2}\right]\) where \(S_{i}\) has distribution \(G_{i}\). (c) Use (a) and (b) to show that \(E[B]\), the expected length of a busy period, is given by $$ E[B]=\frac{E\left[S_{1}\right]}{1-\lambda E\left[S_{2}\right]} $$ (d) Find \(E[C]\).

Carloads of customers arrive at a single-server station in accordance with a Poisson process with rate 4 per hour. The service times are exponentially distributed with rate 20 per hour. If each carload contains either 1,2, or 3 customers with respective probabilities \(\frac{1}{4}, \frac{1}{2}\), and \(\frac{1}{4}\), compute the average customer delay in queue.

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free