Simulate Different Types of Queues
Simulate Different Types of Queues
Simulate an M/M/1 queue in which customers arrive at the rate of three per hour and are served at the rate of five per hour:
data = RandomFunction[QueueingProcess[3, 5], {0, 20}]ListLinePlot[data, InterpolationOrder -> 0, Filling -> Axis]If the arrival rate is greater than the service rate, then the system does not reach a steady state:
data = RandomFunction[QueueingProcess[5, 3], {0, 150}];ListLinePlot[data, Filling -> Axis]data = RandomFunction[QueueingProcess[6, 6.1, 1, 12], {0, 150}];ListLinePlot[data, Filling -> Axis]data = RandomFunction[QueueingProcess[2, 3, 1, ∞, 20], {0, 80}];ListLinePlot[data, InterpolationOrder -> 0, Filling -> Axis, PlotRange -> All]