程序代写代做代考 chain clock IE 413 Midterm 2 Example Problems

IE 413 Midterm 2 Example Problems
1. The interarrival time for entities entering a system follows an exponential distribution where the mean time between arrivals equals 15 minutes. A server with a capacity of 2 will take 10 minutes with probability 0.7 and 30 minutes with probability 0.3. The entity exits the system after being processed by the server.
Let Tn be the simulation time of the nth state transition. The system state X(Tn) is the number of entities at the server. The state includes entities who are being processed by the server.
The following uniform random numbers are generated for the interarrival times: 0.99, 0.25, 0.32, 0.55, 0.40
The following uniform random numbers are generated for the processing times: 0.95, 0.52, 0.29, 0.01
Assume the simulation starts at clock time = 0 with no entities in the system. What is the value of Tn, the time when the third entity to enter leaves the system? What is the value of n for when the third entity to enter leaves the system?
2. Consider the following pdf and the corresponding cdf
𝑓(𝑥) = 3𝑥! 125
𝐹(𝑥) = +𝑥,” 5
for 0 ≤ 𝑥 ≤ 5.
Assume you can generate a uniform random number 𝑈 between 0 and 1. Write down
the equation that enables you to generate 𝑥 based on 𝑈.
3. What distributions would you choose to simulate the time it will take you to complete this exam if the maximum amount of time is 2 hours? Write down the names of two (2) distributions?

4. After a ship arrives in a simulation model, you want to determine the type of ship based on a discrete probability distribution. The probability mass function is given in the table below.
To generate a random deviate from this distribution to determine which ship type arrived, you generate a random uniform number 0.191 from U(0,1). Which type of ship has arrived?
5. Two types of entities can arrive into a system. The arrival time in minutes of the first type of entity follows a triangular distribution with minimum 𝑎 = 2, most likely 𝑚 = 10, and maximum 𝑏 = 15. The arrival time in minutes of the second type of entity follows a Weibull distribution with shape 𝑘 = 2 and scale 𝛽 = 4. Two uniform random numbers are generated to simulate the arrival times of each type: 𝑈 = 0.3 for the first type and 𝑈 = 0.4 for the second type. Which entity will arrive first, and what is the time that the entity arrives?
Recall the pdf of the triangular distribution is:
⎧ 2(𝑥 − 𝑎)
𝑓(𝑥) = ⎪(𝑏 − 𝑎)(𝑚 − 𝑎) ⎨ 2(𝑏 − 𝑥)
⎪(𝑏 − 𝑎)(𝑏 − 𝑚) ⎩
and the cdf of a triangular distribution is:
⎧ (𝑥 − 𝑎)!
𝐹(𝑥)=⎪ (𝑏−𝑎)(𝑚−𝑎) 𝑎≤𝑥≤𝑚
x
p(x)
Panamax Max
0.180
PostPanamax I
0.247
Post Panamax II
0.573
⎨ (𝑏 − 𝑥)!
⎪1−(𝑏−𝑎)(𝑏−𝑚) 𝑚<𝑥≤𝑏 ⎩ 𝑎≤𝑥≤𝑚 𝑚<𝑥≤𝑏 Recall the pdf of the Weibull distribution is: 𝑥 $ 𝑓(𝑥) = 𝛼𝛽#$𝑥$#% exp A− B𝛽C D and the cdf of the Weibull distribution is: 𝑥 $ 𝐹(𝑥)=1−expA−B𝛽C D Expect two problem where you have to model a scenario as a Markov chain and to the relevant calculation in R. In addition to answering the questions, make sure that you can characterize each Markov chain E.g., is it ergodic, absorbing, irreducible, periodic? 1. You work for a sports drink company that currently has 70% market-share versus 30% share for your only competitor in the market. Customers of both companies sometime switch their preferred brand, and your marketing department believes that on a quarterly (three-month) basis, about 90% of your customers stay with your product whereas 10% switch their preferred brand. On the other hand, only about 5% of your competitor’s customers switch their preferred brand to yours every quarter (three months). Given the competitor’s better customer loyalty, the company is concerned about declining market share. a) Model this system as a discrete time Markov chain. b) What will be your market share be in one year? If your company improves customer loyalty so that only 5% of customers switch to the competitor each quarter, what will your market share be in 12 months? 2. On a highway three out of every four trucks are followed by a car, while only one out of every five cars is followed by a truck. a. Model the type of vehicle on the road as a Markov chain. b. Using your Markov chain model, determine what fraction of vehicles on the road are trucks. 3. Consider a system with two identical machines. Each machine has an identical probability 𝑝 = 0.1 of failing in a particular day. There is no repair and the machines are independent of each other. a. Model the number of failures as a Markov chain b. Assume that both machines are working. Using your Markov chain model, determine the probability that one of the machines has failed and the other is operational on after two days. 4. An automated guided vehicle (AGV) transports parts between four locations: a release station A, a machining station B, a machining station C, and an output buffer D. The movement of the AGV can be described as making trips from location to location on requests to move parts. More specifically, o If the AGV is at the output buffer, it is equally likely to move next to any of the other locations: A,B or C. o If the AGV is at the release station, it is equally likely to move next to machining station B or C. o If the AGV is waiting at either of the machining stations, it is equally likely to move to any of the other three stations. Model this system as a discrete time Markov chain to answer the following: a. If the AGV is currently at machining station B, what is the probability that it will be at the output buffer after five trips? b. What is the long-run fraction of time the AGV spends traveling to the output buffer?