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:
In[53]:=
Click for copyable input
Out[53]=
Since the arrival rate is less than the service rate, the system reaches a steady state:
In[54]:=
Click for copyable input
Out[54]=
If the arrival rate is greater than the service rate, then the system does not reach a steady state:
In[55]:=
Click for copyable input
In[56]:=
Click for copyable input
Out[56]=
Simulate a queueing system that can hold only 12 customers:
In[59]:=
Click for copyable input
In[60]:=
Click for copyable input
Out[60]=
Simulate a queue with 20 customers in the initial state:
In[57]:=
Click for copyable input
In[58]:=
Click for copyable input
Out[58]=
New to Mathematica? Find your learning path »
Have a question? Ask support »