Modeling and Simulation
The Event Scheduling
Time Advance Algorithm-
IV
1
Service Completion
• Beginning service is a
conditional event
because its
occurrence is
triggered only on the
condition that a
customer is present
and a server is free
• Service completion is
an example of a
primary event
2
Generation Of An External Arrival
3
Runtimes And Downtimes
• A third important
example is the alternate
generation of runtimes
and downtimes for a
machine subject to
breakdowns.
• At time 0 , the first
runtime will be
generated, and an end-
of-runtime event will be
scheduled.
4
Stopping Event, E
• Every Simulation must
have a stopping event,
here called E, which
defines how long the
simulation will run.
• There are generally two
ways to stop a
simulation
5
Stopping Event, E
1. At time 0, schedule a
stop simulation event
at a specified future
time TE’.
– Thus, before
simulating, it is
known that
simulation will run
over the time
interval[0, TE ].
Example: Simulate a
job shop for TE -40
hours.
6
Stopping Event, E
• Run length TE is
determined by the
simulation itself.
• Generally, TE is the time
of occurrence of some
• specified event E.
Examples: T E is the time
of the l00th service
completion at a certain
service center
7
Stopping Event, E
• TE is the time of break
down of a complex
system. TE is the time of
disengagement or total
kill (whichever _ occurs
first) in a combat
simulation. TE is the
time at which a
distribution center ships
the last carton in a day's
orders.
8
Summary
• To summarize the
discussion, when using
the Event-scheduling
Approach, a simulation
analyst concentrates on
events and their effect
on system state