Introduction To Computer Simulation: Dr. Jeff Hong Ielm Dept, Hkust Fall 2010
Introduction To Computer Simulation: Dr. Jeff Hong Ielm Dept, Hkust Fall 2010
Simulation
Current situation
Queue
Proposed option I:
Two full-service copiers
Customers can use either copier
Queue
Self-service queue
Full-service queue
customer # 1* 2 3 4 5* 6 7 8 9* 10*
service time 7 2 1 3 16 3 1 7 3 11
Interarrival time 12 2 3 21 1 4 2 7 6 15
customer # 11 12 13 14 15* 16 17 18* 19* 20*
service time 2 10 2 1 3 2 2 8 6 2
Interarrival time 1 2 3 9 8 9 3 5 5 2
CURRENT TIME: 46
CURRENT TIME: 86
Discussions
Which system is better?
0 0
0 Fa ls e Assign Full Full Service
Service Time Copying
Proposal One 0
Assign Self
Service Time
0 T ru e
Arrival Self Service? Copy Machine Departure
0 0
0 0
Fa ls e Assign Full
Service Time
Proposal Two
0 T ru e
Arrival Self Service? Copy Machine Departure
0 0
0 0
Fa ls e Assign Full
Service Time
In Arena…
An entity tries to Seize a Resource.
The time the entity uses the resource is the Delay.
If the resource is not available, the entity waits in a Queue.
The entity Releases the resource when processing is
complete.
Models Queue-Seize-Delay-Release of
Proc ess 1 Resource, or any part of this (like pure
Delay).
0
Make decisions about where to go next
D ecide 1
0 True
based on conditions or chance.
0 False
0 Duplicate
0 T ru e
Assign service
times to self Customers
Animation
clock