To save the current settings (or send them to someone else), bookmark or copy THIS LINK (all settings) or THIS LINK (current view).
|
|
This page allows you to do Monte Carlo simulations of a queueing process, by specifying:
*Note that if an exponential distribution is chosen, the rate can be given as a function of n, the current length of the queue. For example, the entry λn = 1/(n+1) would mean that arrivals slow down as the line gets longer. An entry of the form [1,0.6,0.4,0.2] would result in λ0 = 1, λ1 = 0.6, λ2 = 0.4, and λn = 0.2 for n≥3.
Given this information, we simulate 10000 iterations of this queue (out until the specified maximum time), and keep track of the queue length at various points over that interval.
The results of the simulation are displayed graphically in two ways:
In some cases, the queue length distribution approaches a stable distribution as t→∞. Specifically, this can happen:
Note: The first link for each of these examples opens in a separate tab. The second link will overwrite the current model in this tab—so don't use it if you have created a model that you want to save!
This page was created for demonstration and exploration purposes when I first taught Bluffton's Operations Research course (MAT360) in the fall semester of 2018. A few minor updates were made in Fall 2024 (as I am teaching that class again).
October 2, 2024: Corrected a flaw in the algorithm for generating gamma random variables. Added buttons to copy the plots to the clipboard.
I'll add more technical details here—once I've refreshed my memory as to how I wrote this code 6 years ago!