Patients arrive to a 24-hour, 7-days-a-week outpatient clinic with interarrival times being distributed as exponential with mean 5.95 (all times are in minutes); the first patient arrives at time 0. The clinic has five different stations (like nodes in a network), where patients might be directed for service before leaving. All patients first sign in with a single receptionist; sign-in times have a triangular distribution with parameters 1, 4, and 8. From there, they might go to the nurses’ station (probability 0.9888) or to one of three exam rooms (probability 0.0112). The table below gives the five stations, service times at those stations, and transition probabilities out of each station into the next station for a patient (including out of the sign-in station, just described as an example):

All patients eventually go through the checkout station and go home. Note that it is possible that, after a visit to an exam room, a patient is directed to an exam room again (but may have to queue for it). After a patient checks in but is queueing for either the nurses’ station or an exam room, regard that patient as being in the waiting room (and those patients leaving an exam room but again directed to an exam room are also regarded as being in the waiting room). There are three identical exam rooms, but only one resource unit at each of the other four stations. Queues for each station are first-in, first-out, and we assume that movement time between stations is negligible.
Run a simulation of 30 round-the-clock 24-hour days and observe the average total time in system of patients, the average number of patients present in the clinic, as well as the throughput of the clinic (number of patients who leave the clinic and go home over the 30 days); also make a plot of the number of patients present in the clinic, and display a throughput counter. If you could afford to add resources, where is the need most pressing?
This is a modification of a model developed by Bretthauer and Côté (1998) and Bretthauer (2000). The latter does an analytical evaluation and optimization under the assumption that this is a Jackson network of queues, where service times also have exponential distributions (not triangular or other kinds of distributions). The advantage of simulating instead is that the model can be more general and thus possibly more valid; for instance, we do not have to assume exponential service times if the data suggest otherwise. The disadvantage of simulation is that we do not get exact answers, so we must do proper statistical analysis of the output. (Thanks to Professor Jim Morris of the University of Wisconsin-Madison for suggesting these papers and this exercise.)

All patients eventually go through the checkout station and go home. Note that it is possible that, after a visit to an exam room, a patient is directed to an exam room again (but may have to queue for it). After a patient checks in but is queueing for either the nurses’ station or an exam room, regard that patient as being in the waiting room (and those patients leaving an exam room but again directed to an exam room are also regarded as being in the waiting room). There are three identical exam rooms, but only one resource unit at each of the other four stations. Queues for each station are first-in, first-out, and we assume that movement time between stations is negligible.
Run a simulation of 30 round-the-clock 24-hour days and observe the average total time in system of patients, the average number of patients present in the clinic, as well as the throughput of the clinic (number of patients who leave the clinic and go home over the 30 days); also make a plot of the number of patients present in the clinic, and display a throughput counter. If you could afford to add resources, where is the need most pressing?
This is a modification of a model developed by Bretthauer and Côté (1998) and Bretthauer (2000). The latter does an analytical evaluation and optimization under the assumption that this is a Jackson network of queues, where service times also have exponential distributions (not triangular or other kinds of distributions). The advantage of simulating instead is that the model can be more general and thus possibly more valid; for instance, we do not have to assume exponential service times if the data suggest otherwise. The disadvantage of simulation is that we do not get exact answers, so we must do proper statistical analysis of the output. (Thanks to Professor Jim Morris of the University of Wisconsin-Madison for suggesting these papers and this exercise.)