Spring Semester, 2022 M. Carchidi
———————————————————————————————————————
Problem #1 (20 points) - Single-Channel Series Queue
Consider a small-town Pep Boys store which consist of a single server at the counter to get
car parts for customers and another single server at the checkout counter for the customers
to pay for their merchandise. Customers arrive so that interarrival times are distributed as
shown in the following table. Also shown in this table are the distributions of service times
for the server at the counter and the server at the checkout.
Interarrival Times P Counter Times P Checkout Times P
(Minutes) (Minutes) (Minutes)
1 0. 05 1 0. 10 1 0. 2
2 0. 10 2 0. 15 2 0. 4
3 0. 15 3 0. 20 3 0. 3
4 0. 20 4 0. 30 4 0. 1
5 0. 20 5 0. 20 − −
6 0. 15 6 0. 05 − −
7 0. 10 − − − −
8 0. 05 − − − −
Simulate the arrival of 500 customers assuming a FIFO discipline for both lines, and use
your simulation to answer the following.
a.) (5 points) Determine the probability that a customer waits in the line for service at the
counter and determine the average waiting time for this service per customer.
b.) (5 points) Determine the probability that a customer waits in the line for checkout and
determine the average waiting time for checkout per customer.
c.) (5 points) Determine the probability that a customer waits at all.
d.) (5 points) Determine the fraction of the time each server is idle.
———————————————————————————————————————
, ———————————————————————————————————————
Problem #2 (20 points) - A Reliability Problem
A certain component of a machine has a lifetime that is exponentially distributed with a
mean of 10 hours. When this component fails, the machine is stopped and the component
must be replaced. Suppose that the replacement time is uniformly distributed between 25
and 35 minutes. In addition, company policy is to replace the component after 15 hours of
operation even if it has not failed. Run 10 simulations to mimic the replacement of 100
such components. Use your simulations to determine:
a.) (5 points) the average total time of the simulation,
b.) (5 points) the average number of components that must be replaced during the first five
days of operation,
c.) (5 points) the average time (in hours) that a component is used, and
d.) (5 points) the average percent of the time the machine is idle.
Hint: You may use the fact that a sample X from an exponential distribution with mean
can be computed from a random number R U0, 1 using X − lnR.
———————————————————————————————————————
Problem #3 (15 points) - Another Reliability Problem
Whenever an electric heater turns on, the heating coil has a probability 0. 4 of failing.
When this coil fails, the heater does not run until the coil is replaced and the time to
replace the coil can be either: 1 minute, 2 minutes or 3 minutes, with probabilities 0. 2, 0. 5
and 0. 3, respectively, and right after the coil is replaced, the heater is set to run. Whenever
the heater is running (either because the above coil did not fail, or it was just replaced), the
heater will run (for a time before automatically turning off) in accordance to the run-time
distribution given in the following table.
Run Time (minutes) 1 2 3 4 5 6 7 8
Probability 0.05 0.10 0.15 0.20 0.20 0.15 0.10 0.05
Whenever the heater is turned off and operational, it will be called upon to turn on in a
time governed by a between call-time distribution given in the following table.
Between Call Time (minutes) 1 2 3 4 5 6
Probability 0.10 0.15 0.25 0.25 0.15 0.10
Run a 50-hour simulation to estimate: (a) the number of times the heater was called upon
to turn on, and (b) the number of times the coil on this heater had to be replaced.
———————————————————————————————————————
2