Lecture 3 - Single Channel Queue (Updated)
Lecture 3 - Single Channel Queue (Updated)
Chapter-02
Discrete-Event System Simulation
-Jerry Banks
1
Simulation Examples
Three steps of the simulations
Determine the characteristics of each of the inputs to the
2
Simulation Table
The simulation table provides a systematic method for
tracking system state over time.
Inputs Response
·
·
3
Simulation of Queuing Systems (1)
Server
Waiting Line
Calling population
4
Simulation of Queuing Systems (2)
5
Simulation of Queuing Systems (3)
System state : the number of units in the system and the status
of the server(busy or idle).
6
Simulation of Queuing Systems (4)
If a unit has just completed service, the simulation proceeds
in the manner shown in the flow diagram of Figure 2.2.
Note that the server has only two possible states : it is
7
Simulation of Queuing Systems (5)
The arrival event occurs when a unit enters the system.
The unit may find the server either idle or busy .
Arrival
Event
8
Simulation of Queuing Systems (6)
Simulations of queuing systems generally require the
maintenance of an event list for determining what happens
next.
Simulation clock times for arrivals and departures are
computed in a simulation table customized for each
problem.
In simulation, events usually occur at random times, the
randomness imitating uncertainty in real life.
Random numbers are distributed uniformly and
independently on the interval (0, 1).
Random digits are uniformly distributed on the set {0, 1, 2,
… , 9}.
9
Simulation of Queuing Systems (7)
Pseudo-random numbers : the numbers are generated using a
procedure.
Table 2.2. Interarrival and Clock Times
Assume that the times between arrivals were generated by
10
Simulation of Queuing Systems (8)
Table 2.3. Service Times
Assuming that all four values
11
Simulation of Queuing Systems (9)
The interarrival times and service times must be meshed to
simulate the single-channel queuing system.
Table 2.4 was designed specifically for a single-channel queue which
serves customers on a first-in, first-out (FIFO) basis.
12
Simulation of Queuing Systems (10)
13
Simulation of Queuing Systems (11)
Figure 2.6 depicts the number of customers in the system
at the various clock times.
14
Thank you
15