Professional Documents
Culture Documents
Through Arena
Chapter 3: Enhanced
analysis of the
simplest simulation
model using Arena
Kang
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena
Announcement
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena
Agenda
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 1
Comparison of the outputs from
queueing theory vs. simulation.
Slide 2
Comparison of the outputs from queueing theory
vs. simulation
• Does queueing theory really work?
Let’s find out!
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 3
Settings for interarrival times and service times
• In Ch 3-4, we assumed:
Interarrival times follow an exponential distribution:
– Interarrival times: Mean of 5 min.
– Same meanings:
Number of arrivals follow a Poisson distribution having a mean of 12 parts/hr.
Arrivals follow a Poisson distribution with arrival rate of 12 parts/hr.
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 4
System performance outputs using the queueing
theory (cont’d)
• In Ch 3-4, the results using the queueing theory were:
(Average) Utilization: 0.8
(Average) WIP: 4 parts
(Average) Number of parts in queue: 3.2 parts
(Average) Cycle time: 20 minutes (per part)
(Average) Wait time of a part in queue: 16 minutes (per part)
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 5
Settings for the simulation model
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 6
Demonstration
• Run setup:
[Option 1]
Set replication length* to 100 minutes.
[Option 2]
Set replication length to 1000 minutes.
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 7
Results
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 8
Discussion: What are the implications?
System performance
output (e.g. utilization) System performance
outputs will converge
to certain values:
Can be estimated using
queueing theory only
under limited conditions
(e.g. M/M/1: Expo dist.
and single server)
Time
Sufficient replication length
(= sufficient simulation run time)
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 9
Discussion: How should we determine the
replication length (i.e. simulation run time)?
• Dependent on system process and configuration.
• Accumulated experience.
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 10
Notes
• Steady-state simulation.
Setting a very long replication length (i.e. running the simulation for a
very long time) to obtain possibly converging system performance
outputs is called “steady-state simulation.” (more explained later)
Terminating simulation vs. steady-state simulation (more explained later)
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 11
Notes
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 12
Plotting system output measures:
1. Number of parts (or customers) in queue.
2. Utilization
3. Work in process (WIP)
Slide 13
Interarrival times and service times
Note: As we generate more values, the mean of those values will converge to 5 min.
Note: As we generate more values, the mean of those values will converge to 4 min.
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 14
Review of previous materials:
Transformation of relative time to absolute time
First part arrives at time 0.
Relative time:
Part Number Interarrival time of next part Service time
1 2 4
2 1 4
3 12 4
4 - 5
Simulation software transforms the data into
absolute times. Otherwise, we would need to
transform the data by hand, using Excel/
Database software, or through developing a
Absolute time: software program such as C, JAVA, R, or Matlab.
Part Number Time of arrival Time of service started Time of service ended
1 0 0 4
2 2 4 8
3 3 8 12
4 15 15 20
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 15
Review of previous materials:
Expression of absolute time
First part arrives at time 0 = First part arrives at time 00:00
Absolute time:
Part Number Time of arrival Time of service started Time of service ended
1 0 0 4
2 2 4 8
3 3 8 12
4 15 15 20
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 16
Review of previous materials:
Relative time vs. Absolute time
First part arrives at time 0.
Next part arrives at time 00:02 Service held from 00:00 to 00:04
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 17
Review of previous materials:
Interarrival time vs. Time of arrival
First part arrives at time 0.
Relative time:
Part Number Interarrival time of next part
1 2
2+1=3
2 1 2+1+12=15
3 12
4 -
Absolute time:
Part Number Time of arrival
1 0 :Part 1 arrived at 00:00
2 2 :Part 2 arrived at 00:02
3 3 :Part 3 arrived at 00:03
4 15 :Part 4 arrived at 00:15
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 18
Review of previous materials:
Service time vs. Time of service started and ended
First part arrives at time 0.
Relative time:
Part Number Interarrival time of next part Service time
1 2 4
2 1 4
3 12 4
4 - 5
Absolute time:
Part Number Time of arrival Time of service started Time of service ended
1 0 0 4
Service time of 4 minutes
Need to wait until
2 2 Part 1 is served
4 8
Service time of 4 minutes
Need to wait until
3 3 Part 2 is served 8 12
Service time of 4 minutes
4 15 15 20
Service time of 5 minutes
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 18
Review of previous materials: How do we plot the
status of the entities in the system at time t?
Part Number Time of arrival Time of service started Time of service ended
1 0 0 4
2 2 4 8
3 3 8 12
4 15 15 20
Part 2 (Blue) waits from 00:02 to 00:04, then
drops into the server to receive service.
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 19
1. Plotting the number of parts in queue at time t
Time (min.)
0 2 3 4 8 20
Number of parts
Same meanings
in queue
2
1
Time (min.)
0 2 3 4 8 20
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 20
2. Plotting the utilization at time t
Being served
0 4 8 12 15 20
Same meanings
Utilization
0 12 15 20
Time (min.)
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 21
3. Plotting the WIP at time t
WIP = number in queue + number being served
Utilization Number of parts
in queue
2
1
Time (min.)
0 2 3 4 8 20
+
1 Time (min.)
0
12 15 20
||
3
WIP
2 (Why?)
1
Time (min.)
0 2 3 4 8 12 15 20
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 23
3. Plotting the WIP at time t (cont’d)
For the simplest model, we only defined 1 resource (e.g. 1 Drill press).
If utilization is currently 1, then the current number of parts being served is 1.
If utilization is currently 0, then the current number of parts being served is 0.
Therefore, the utilization plot (i.e. utilization at time t)is the same as the plot
of number of parts being served (i.e. number being served at time t).
Therefore, the sum of the two plots (i.e. number in queue and utilization) will
be the WIP plot.
Note that the above logic should be modified if we have multiple resources
and/or multiple processes involved.
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 24
Summary
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 25
Review questions
Simulation with Arena, 6th ed. Chapter 3 – A Guided Tour Through Arena Slide 26
Details on creating the simplest model - Phase 2
Textbook (pp. 53-90; sixth edition)
Note: Refer to the below slides for Lab 3 and future Labs/Mini-projects.
Note: Technical details on creating the plots are not included in quizzes nor
exams.
Problem description (details)
• Run setup
Set run time to 100 minutes. (1 replication)
This is the
selection sequence.
(i.e. click on Add, then click
on Data Series, then find
Source Data, then click on
Expression).
Once we go through
the whole procedure, only
the selection sequence
information will be provided
for other plots.
Step 2. Plot: Number of parts in queue (cont’d)
Set DrawMode to
Stairs.
Step 2. Plot: Number of parts in queue (cont’d)
(Modify)
Maximum: 100
Major increment: 5
Scroll down
(Modify)
Title: Time in minutes
Visible: True
Step 2. Plot: Number of parts in queue (cont’d)
• Step 2-6. Select Axes tab, then Left Value (Y) Axis.
Axis tab: Left Value (Y) Axis
Scale: Maximum (100), Major increment (1)
Title: Text (Queue length), Visible (True)
(Modify)
Maximum: 100
Major increment: 1
(Modify)
Title: Queue length
Visible: True
Step 2. Plot: Number of parts in queue (cont’d)
Uncheck it.
Step 2. Plot: Number of parts in queue (cont’d)