




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





2
Point of most simulation projects: running the model and trying to understand the results
Need to plan ahead how this will be done, to avoid time-consuming inefficiencies
A simulation study is an experiment that needs to be designed
Identify purpose of the project Just one system configuration? Still have issues like run length, number of runs, how to assign random numbers driving the simulation, interpretation of results Several “given” system configurations? Have same questions, as well as how to compare, select, or rank the alternatives How do changes in inputs affect outputs? Search for an optimal system configuration?
Identify relevant output performance measures Time frame of model Terminating (or short-run or finite horizon or transient) Steady-state (or long-run or infinite horizon) Types of output performance measures (can affect model structure) Means Variances, standard deviations Probabilities Quantiles
Use and allocation of underlying random numbers (for stochastic simulations) Random-number generators are controllable (fixed sequence, streams, seeds) Completely independent (separate random numbers) vs. re-use for variance reduction
3
Broader goal of simulation projects: To learn how the inputs affect the outputs
Analogy to traditional physical experiments (laboratory, industrial, agricultural):
Example Inputs ( factors ) Outputs ( responses ) Chemical reaction Pressure Temperature Catalyst concentration
Yield
Growing tomatoes Fertilizer Soil pH Seed hybrid Water
Yield Hardiness
Simulation of a manufacturing system
Job dispatch rule Number of machines Machines’ reliability Mean downtimes
Throughput Time in system Utilizations Queue sizes
Kinds of factors (inputs): Quantitative vs. Qualitative Controllable vs. Uncontrollable (in modeling, everything is controllable)
Simulation output performance measures are the responses
Goals: Design simulation studies to learn about the model efficiently—don’t squander runs Find out quickly which factors are unimportant and forget about them Build simple proxy models of complicated, expensive simulation models Use simulation to optimize system performance Use simulation to measure the effect of changes in factor levels
5
Large literature on experimental design, most applicable to simulation
Example of a design that is feasible in many simulations: 2 k^ factorial
Have k factors (inputs), each at just two levels
Number of possible combinations of factors is thus 2 k
Case of single factor ( k = 1): Vary the factor (maybe at more than two levels), make plots, etc.
In general, assume k ≥ 2 factors—want to know about: Effect on response(s) of each factor Possible interactions between factors—effect of one factor depends on the level of some of the other factors
One-at-a-time strategy:
for each factor j = 1, 2, ..., k { for all 2 k –1^ combinations of the other (≠ j ) factors { simulate for a low and high value of factor j (2 runs) compute difference in the 2 responses } /* 2 × 2 k –1^ = 2 k^ runs / average the 2 k –1^ differences to get the average effect of factor j } / k times through this loop */
Total number of runs = k 2 k Using 2 k^ factorial design, can get by with 2 k^ runs, and get more information (interactions)
6
Code each factor to a “+” and a “–” level Design matrix : All possible combinations of factor levels Example for k = 3 factors: Factor combination (Design point)
Factor 1
Factor 2
Factor 3 Response 1 – – – R 1 2 + – – R 2 3 – + – R 3 4 + + – R 4 5 – – + R 5 6 + – + R 6 7 – + + R 7 8 + + + R 8 Make the 8 simulation runs, measure effects of the factors Main effect of a factor is the average difference in the response when this factor is at its “+” level as opposed to its “–” level:
1 e = R − R + R − R + R − R + R −^ R
Can rewrite as “Factor 1” column • “Response” column / 2 k – Interaction effects: Does effect of a factor depend on level of others? 1 × 3 interaction effect: “Factor 1” • “Factor 3” • “Response” / 2 k – Sign of factor indicates direction of effect on response of moving that factor from its “–” to its “+” level Statistical significance of effects estimates? (i.e., are they real?) Luxury in simulation-based experiments: Replicate the whole design n times Get n observations on each effect Sample mean, sample variance, confidence interval, etc., on expected effects Effect is “real” if confidence interval misses 0 Limitations: Based on linear regression model (2-factor case)
E ( R ) = β 0 + β (^) 1 x 1 + β (^) 2 x 2 + β (^) 12 x 1 x 2 Interpreting main effects ( β 1 and β 2 ) as the “change” in the response owing to a move of the corresponding factor from the “–” to the “+” level is valid only if there is no interaction ( β 12 = 0)
8
Example of 2^6 Factorial Design
Machine Inspect
Pass
Fail
Also: Machine suffers breakdowns, must undergo repair
Response: Average time in system of a part ( makespan )
Factors and coding:
Factor number
Factor description – (current) + (improved) 1 Machining times U(0.5, 0.6) U(0.45, 0.54) 2 Inspection times U(0.65, 0.70) U(0.585, 0.630) 3 Machine uptimes expo(360) expo(396) 4 Machine repair times U(8, 12) U(7.2, 10.8) 5 Probability bad part 0.10 0. 6 Queue disciplines (both) FIFO Shortest job first
Full 2^6 factorial design involved 64 factor combinations
Replicated entire design n = 5 times (several hours in SIMAN on a PC)
9
Results (individual runs, averages over runs):
Can see several trends: “Two-up, two-down” pattern suggests that factor 2 (inspection times, which alternate in sign on every second run in design matrix) is important Right half is almost a copy of left half, suggesting that factor 6 (queue discipline, which are “+” for the left half and “–” for the right half) doesn’t matter