Beruflich Dokumente
Kultur Dokumente
3 Simulation Software
Programming of discrete-event
simulation models
• Generating random numbers, that is, observations
from a U(0,1) probability distribution
• Generating random variates from a specified
probability distribution (e.g., exponential)
• Advancing simulated time
• Determining the next event from the event list and
passing control to the appropriate block of code
• Adding records to, or deleting records from, a list
• Collecting output statistics and reporting the results
• Detecting error conditions
Advantages of Using a Simulation Package
• Historically,
– simulation languages
– application-oriented simulators.
• Advances:
– simulation languages: employing graphical model-building approach
such as icons, dialog boxes
– Simulators: allowing programming in certain model locations using an
internal pseudo-language.
• Modify existing modeling constructs
• Create new constructs
• Recently,
– general-purpose simulation packages: Arena, Extend
– application-oriented simulation packages: Manufacturing,
Communications Networks, Process Reengineering and Services,
Health Care, Call Centers, Animation (standalone)
3.3.2 Modeling Approaches
• Event-scheduling approach
1. Identify characteristic events
2. Write a set of event routines
3. Execute events (no simulated time passes during
its execution)
• Process approach
– A process is a time-ordered sequence of
interrelated events separated by intervals of time,
which describes the entire experience of an
“entity” as it flows through a “system”.
Process Approach
x x x Time
FIGURE 3.1
Process describing the flow of an entity through a system
Process Approach
Routine
customer
Arrival event
1
Schedule an arrival
event for the next
customer entity
3 4
Is 2 No Place this
Wait until selected
the server customer entity
for service
idle ? in the queue
Passage of
Yes simulation time 5
Remove this
customer entity
6 from the queue
Make the server busy