Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program to simulate a single-server queue using Lindley's equation. As- sume that the interarrival times have cumulative distribution function F and the
Write a program to simulate a single-server queue using Lindley's equation. As- sume that the interarrival times have cumulative distribution function F and the service times have cumulative distribution function G. Suppose that at time 0 there are no jobs, and we are interested in the first time that a job encounters a waiting time (before service starts) of more than T. Using independent replications, derive a point estimator and confidence interval for E(T). Your confidence interval width should be no more than about 15% of the estimated value. Do the simulation for each of the following choices of F, G and T. (1) (2) 0 T= 3, F(x)= x T=2, F(x)= -{- = x 0, 0x 2, x > 2. x 0, - exp(-x) 0x. G(x) = G(x) = 0 x 0, x 1 0x 1, x > 1. x x 0, 0x 1, x > 1.
Step by Step Solution
★★★★★
3.41 Rating (160 Votes )
There are 3 Steps involved in it
Step: 1
import numpy as np import random def simulatesingleserverqueuef g t Simulates a singleserver queue u...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started