BUDT758K Sim L24 OutputAnalysis (IV)
BUDT758K Sim L24 OutputAnalysis (IV)
BUDT758K Sim L24 OutputAnalysis (IV)
Spring 2018
Prof. Sujin Kim
Lecture 24
Announcements
OUTPUT ANALYSIS IV
3
Variance Reduction
4
Variance Reduction
5
Variance Reduction
6
Common Random Numbers (CRN)
8
“Natural” Comparison
▪ Run case A, make change to get to case B and run it, then Compare
Means via Output Analyzer:
10
Synchronization of Random Numbers in
CRN
▪ Generally, get CRN by using same RNG, seed, stream(s) for all
alternatives
• Already are using same stream, default = stream 10
• But its usage generally gets mixed up across alternatives
▪ Must use the same random numbers for the same purposes
across alternative scenarios — synchronization of random-
number use
• Usually requires some work, understanding of model
• Usually use different streams in RNG
• Usually different ways to do this in a given model
• Sometimes can’t synchronize completely for complex models —
settle for partial synchronization 11
Synchronization of Random Numbers in
CRN
▪ Synchronization by source of randomness
• Sources of randomness: interarrival time, processing times, …
• Assign stream to each point of variate generation
• Separate random-number “faucets”
▪ Synchronization by entity
• Whenever a new entity arrives assign all random attributes
12
Synchronization of Random Numbers in
CRN: Model 12-2
▪ Synchronize by source of randomness
− 15 sources of randomness, separate stream for each, modify into
Model 12-2
✓ Define a Variable for each stream number: ex) S P1C1
✓ Use the variable name in the variate-generation expression:
» Ex) TRIAL(6,8,10, S P1 C1)
✓ Skip over stream 10: Arena’s default stream, used for built-in
nonstationary-Poisson process generator and Chance-type
Decide module
− 10 replications to each alternative: Arena random number
generator will automatically advance to the next substream within
each stream for each replication
13
Synchronization of Random Numbers in
CRN : Model 12-2
Stream # Usage Variable Name Location of Change
1 Interarrival Times S Interarrivals Create Module
2 Part Indices S Part Index Assign Module
3 Part Type 1 at Cell 1 S P1 C1 Expression Module
4 Part Type 1 at Cell 2 S P1 C2 Sequence Module
⋮
15 Part Type 3 at Cell 3 S P3 C3 Sequence Module
“Natural”
Comparison
Synchronized
CRN
16
Paired-t vs. Two-sample-t
17
Synchronization of Random Numbers in
CRN: Model 12-2 Modified
▪ Synchronization by entity
• When a new part arrives, pre-generate every possible random
variate that an entity might need, assign to attributes, used
downstream
• Better synchronization insurance but uses more memory
18
Synchronization of Random Numbers in
CRN by Entity
19
Mathematical justification for CRN
21
Synchronization of Random Numbers in
CRN
▪ There is no additional computational overhead in implementing
CRN
▪ The efficiency improvement is guaranteed as long as positive
correlation is induced between the competing system designs.
▪ However, the random-number stream synchronization must be
carefully conducted with an understanding of how your model
works.
22
FINAL EXAM
23
Final Exam Info
24
L13-L15: Ch5
25
L13-L15: Ch5
26
Schedule Module for Arrival
27
L19-L24
28
Final Exam
▪ False Questions
▪ Multiple choice questions
▪ Conceptual problem
▪ Arena Model Question
29
Arena Model Example
Create Arrivals Hold for Signal Batch Entities Delay for Process
0
0
0 True
W ait Q ueue Less than
2
0 False
30
31
32