- Consider a service facility with a single server, e.g., a one-operator barbershop, one teller at...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
- Consider a service facility with a single server, e.g., a one-operator barbershop, one teller at a bank, or an information desk at an airport, for which you are asked to estimate the (expected) average delay in queue (line) of arriving customers, where the delay in queue of a customer is the length of the time interval from the instant of his arrival at the facility to the instant he begins being served. - The state variables for a discrete-event simulation model of the facility would be the status of the server, i.e., either idle or busy, the number of customers waiting in queue to be served (if any), and the time of arrival of each person waiting in queue. - The status of the server is needed to determine, upon a customer's arrival, whether the customer can be served immediately or must join the end of the queue. - When the server completes serving a customer, the number of customers in the queue is used to determine whether the server will become idle or begin serving the first customer in the queue. - The time of arrival of a customer is needed to compute his delay in queue, which is the time he begins being served (which will be known) minus his time of arrival. - There are two types of events for this system: the arrival of a customer and the completion of service for a customer, which results in the customer's departure. -An arrival is an event since it causes the (state variable) server status to change from idle to busy or the (state variable) number of customers in the queue to increase by 1. - Correspondingly, a departure is an event because it causes the server status to change from busy to idle or the number of customers in the queue to decrease by 1. Assume that the interarrival and service times are modeled as independent random variables from exponential distributions with mean 1/4 minute for the interarrival times and mean 1/5 minute for the service times. Complete the code below for the single-server queue described above to compute and draw the following measures of performance versus time history (draw each measure on one chart and then draw all measures on one chart). - Number in the system. - Number of arrivals. - Number of departures. - Number of blocked customers (assume that the queue has a limited size). - Average delay in queue of arriving customers. - Average delay in the server. - Average delay in the system. Run the experiment for different values of the arrival rate (1, 2, 3, 4, 5, 6, 7, 8, 9, 10). Compute and draw the following: - The average delay in queue of arriving customers versus the arrival rate. - The number of blocked customers versus the arrival rate. # Write the simulation code in this cell. Make sure to test each function before you run the simulation. class Queue_Simulation: # Use this function to define the class variables and initialize them. def_init_(self): pass # This function is used to advance simulation time. Don't use computer time. def advance_time(self): pass # Handle arrivals in this function. handle_arrival_event(self): def pass # Handle departure in this function. def handle_depart_event(self): pass # Use this function to generate arrivals to the system. Use Exponential distribution to generate inter-arrival time. # or Poisson distribution to generate arrival rate. def generate_interarrival(self): pass # Use this function to generate service time. Use Exponential distribution to generate inter-arrival time. def generate_service(self): pass # Define history lists to collect statistics about the performance parameters and use them to draw the charts. # Setup and run the simulation # Run your simulation 1000,000 simulation time for 10 runs. Use different seeds (0 to 9) for each run. # Draw your output. - Consider a service facility with a single server, e.g., a one-operator barbershop, one teller at a bank, or an information desk at an airport, for which you are asked to estimate the (expected) average delay in queue (line) of arriving customers, where the delay in queue of a customer is the length of the time interval from the instant of his arrival at the facility to the instant he begins being served. - The state variables for a discrete-event simulation model of the facility would be the status of the server, i.e., either idle or busy, the number of customers waiting in queue to be served (if any), and the time of arrival of each person waiting in queue. - The status of the server is needed to determine, upon a customer's arrival, whether the customer can be served immediately or must join the end of the queue. - When the server completes serving a customer, the number of customers in the queue is used to determine whether the server will become idle or begin serving the first customer in the queue. - The time of arrival of a customer is needed to compute his delay in queue, which is the time he begins being served (which will be known) minus his time of arrival. - There are two types of events for this system: the arrival of a customer and the completion of service for a customer, which results in the customer's departure. -An arrival is an event since it causes the (state variable) server status to change from idle to busy or the (state variable) number of customers in the queue to increase by 1. - Correspondingly, a departure is an event because it causes the server status to change from busy to idle or the number of customers in the queue to decrease by 1. Assume that the interarrival and service times are modeled as independent random variables from exponential distributions with mean 1/4 minute for the interarrival times and mean 1/5 minute for the service times. Complete the code below for the single-server queue described above to compute and draw the following measures of performance versus time history (draw each measure on one chart and then draw all measures on one chart). - Number in the system. - Number of arrivals. - Number of departures. - Number of blocked customers (assume that the queue has a limited size). - Average delay in queue of arriving customers. - Average delay in the server. - Average delay in the system. Run the experiment for different values of the arrival rate (1, 2, 3, 4, 5, 6, 7, 8, 9, 10). Compute and draw the following: - The average delay in queue of arriving customers versus the arrival rate. - The number of blocked customers versus the arrival rate. # Write the simulation code in this cell. Make sure to test each function before you run the simulation. class Queue_Simulation: # Use this function to define the class variables and initialize them. def_init_(self): pass # This function is used to advance simulation time. Don't use computer time. def advance_time(self): pass # Handle arrivals in this function. handle_arrival_event(self): def pass # Handle departure in this function. def handle_depart_event(self): pass # Use this function to generate arrivals to the system. Use Exponential distribution to generate inter-arrival time. # or Poisson distribution to generate arrival rate. def generate_interarrival(self): pass # Use this function to generate service time. Use Exponential distribution to generate inter-arrival time. def generate_service(self): pass # Define history lists to collect statistics about the performance parameters and use them to draw the charts. # Setup and run the simulation # Run your simulation 1000,000 simulation time for 10 runs. Use different seeds (0 to 9) for each run. # Draw your output.
Expert Answer:
Answer rating: 100% (QA)
It looks like you want to simulate a singleserver queue system and analyze its performance metrics such as average delay in queue number in the system number of arrivals number of departures and more ... View the full answer
Related Book For
Smith and Roberson Business Law
ISBN: 978-0538473637
15th Edition
Authors: Richard A. Mann, Barry S. Roberts
Posted Date:
Students also viewed these programming questions
-
1. a) How is multi-tenancy configured in Infrastructure as a Service (IaaS) cloud environments, and why is isolation important for security? [5 marks] b) What is a hyperjacking attack, and how does...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
You accepted a new job with starting salary of $52,000 per year. The salary is expected to increase 4% each year. Now it is time to make a retirement plan for the next 39 years you expect to work....
-
Show that in the case of an unbalanced disk, the equation derived in Prob. 16.87 is valid only when the mass center G, the geometric center O, and the instantaneous center C happen to lie in a...
-
How is the unidirectional motion of a lamellipodium maintained?
-
Describe the various legal risks for nurses.
-
A heat pump with refrigerant-134a as the working fluid is used to keep a space at 25°C by absorbing heat from geothermal water that enters the evaporator at 50°C at a rate of 0.065 kg/s and...
-
3.On January 1, a company retired $800,000 face value bonds at a call price of 103. The bonds were originally issued for $848,000. On the retirement date the bonds had an unamortized premium of...
-
The file P17_19.xlsx contains various data on 325 metropolitan cities in the United States. Cell comments in row 1 explain some of the variables. A Microsoft Data Mining add-in (not discussed here)...
-
The recent trend best described by the fundamental values articulated by Reagan is the globalization of trade and information as catalysts to democratic movements the outsourcing of manufacturing and...
-
Paraphrase Cost-based methods are useful in evaluating a potential information systems project in several ways such as determining the financial feasibility of a project. By estimating the costs...
-
What are key mistakes that are often made in the use of graphics and photos in a presentation?
-
As a project manager, you have the singular gift of being able to handle a hundred responsibilities at once, including delegating tasks, removing any blockers from a project, and making sure everyone...
-
Calculate the end customer price per (11.5-inch) pad based on cost-based pricing i.e., $289.38. To calculate the price per pad, use the Unit Cost data (assuming that the $150K permanent tooling has...
-
What would you do differently if you were a manager?
-
Which of the following is an advantage of a general partnershipwhen compared to a corporation? a.The partnership usually hires professional managers. b.The partnership is relatively inexpensive to...
-
1) The government decided to reduce taxes on fast-food to increase revenue. The government assumes that fast-food products have a) An inelastic demand b) An elastic demand c) A demand curve that is...
-
Paula instructed Alvin, her agent, to purchase a quantity of hides. Alvin ordered the hides from Ted in his own (Alvins) name and delivered the hides to Paula. Ted, learning later that Paula was the...
-
Discuss the requirements for becoming a holder in due course.
-
Catania wished to paint the exterior of his house. He went to Brown, a local paint store owner, and asked him to recommend a paint for the job. Catania told Brown that the exterior walls were stucco...
-
Suppose a job enrichment effort in one plant of a manufacturing firm is judged to be very successful. You are the corporate change agent responsible for the project, and you wish to diffuse it to...
-
Describe an example of resistance to change that you have observed. Why did it occur?
-
What qualities would the ideal gatekeeper possess to facilitate the communication of technical information in the firm?
Study smarter with the SolutionInn App