Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

University of Pennsylvania - ESE503 - Simulation Modeling & Analysis (Homework #2) Spring Semester, 2022 - ALL ANSWERS ARE CORRECT

Rating
-
Sold
-
Pages
10
Grade
A+
Uploaded on
29-01-2023
Written in
2022/2023

——————————————————————————————————————— 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  U0, 1 using X  −lnR. ——————————————————————————————————————— 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 ——————————————————————————————————————— Problem #4 (15 points) - Another Queueing Problem Consider a single-channel queue with two customer interarrival-time distributions (morning and afternoon) as presented in the table below. The system contains a single sever and the service-time distribution is also presented in the table below. Morning Afternoon Service Interarrival Times Interarrival Times Times (Minutes) P (Minutes) P (Minutes) P 1 0. 05 1 0. 250 1 0. 10 2 0. 10 2 0. 200 2 0. 20 3 0. 15 3 0. 175 3 0. 30 4 0. 20 4 0. 125 4 0. 25 5 0. 20 5 0. 100 5 0. 10 6 0. 15 6 0. 075 6 0. 05 7 0. 10 7 0. 050 − − 8 0. 05 8 0. 025 − − Simulate the arrival of customers for 1 day from 8:00 AM to 5:00 PM assuming a FIFO discipline for both the morning and afternoon lines and the simulation stops once service ends past 5:00 PM. Use your simulation to answer the following: a.) (3 points) Estimate the probability that a customer waits in the line for service and determine the average waiting time per customer. b.) (3 points) Estimate the average waiting time per customer who has to wait. c.) (3 points) Estimate the average time a customer spends in the system. d.) (3 points) Estimate the fraction of the time the server is idle. e.) (3 points) Estimate the average number of customers that enter the system in 1 day. ——————————————————————————————————————— 3 ——————————————————————————————————————— Problem #5 (15 points) - A Problem in Optimization Use 5000 Monte-Carlo Simulations to solve the following optimization problem which seeks to maximize the expression z  x2  y − 13, subject to the constraint that 0 ≤ y ≤ max1 − 2x − x2, 1  x − x2 which is the region within the bold lines shown below. -2 -1 0 1 1 2 x y Plot of the feasible region 0 ≤ y ≤ max1 − 2x − x2, 1  x − x2 ——————————————————————————————————————— Problem #6 (15 points) - A Problem in Integration Use 5000 Monte-Carlo Simulations to estimate the value of

Show more Read less
Institution
Course

Content preview

ESE503 - Simulation Modeling & Analysis (Homework #2)
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  U0, 1 using X  − lnR.
———————————————————————————————————————
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

Written for

Course

Document information

Uploaded on
January 29, 2023
Number of pages
10
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$9.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
ExamsConnoisseur Self
Follow You need to be logged in order to follow users or courses
Sold
587
Member since
3 year
Number of followers
344
Documents
1492
Last sold
3 weeks ago

4.2

68 reviews

5
40
4
11
3
13
2
1
1
3

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions