Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Definition
Simulation is the process of designing a model
of a real system and conducting experiments with this model for the purpose of either understanding the behavior of the system and/or evaluating various strategies for the operation of the system.
Simulation allows to
Model complex systems in a detailed way Describe the behavior of systems Construct theories or hypotheses that account for the observed behavior Use the model to predict future behavior, that is, the effects that will be produced by changes in the system Analyze proposed systems
4. Data Collection
1. Time consuming, begin early 2. Determine what is to be collected
6. Verification
1. Does the program represent model and run properly?
7. Validated?
1. Compare model to actual system 2. Does model replicate system?
Advantages
Can be used to study existing systems without disrupting the ongoing operations. Proposed systems can be tested before committing resources. Allows us to control time. Allows us to identify bottlenecks. Allows us to gain insight into which variables are most important to system performance.
Disadvantage
Model building is an art as well as a science. The quality of the analysis depends on the quality of the model and the skill of the modeler Simulation results are sometimes hard to interpret. Simulation analysis can be time consuming and expensive. Should not be used when an analytical method would provide for quicker results.
Types of Simulations
Variety of types, but main: emulation, Monte Carlo, trace driven, and discrete-event
Used to model physical phenomena, evaluate probabilistic system, numerically estimate complex mathematical expression Driven with random number generator
So Monte Carlo simulation
Example, consider numerically determining the value of Area of circle = 2 for radius 1
Count if inside
sqrt(x2+y2) < 1
Compute ratio R
in / (in + out)
DISCRETE-EVENT SIMULATION
Why?
We need to conduct experiments "on some reality" and the reality - although pre-existing - is not available for our experiments.
What?
Discrete event model is way of representing continuous-time models to repeatedly consider every transition that may happen next, determine the time at which each will happen, and pick the one with minimum time.
Example
Three ions, A, B, and C, and counts of each, nA, nB, and nC Assume three channel types moving ions into the cell, with rates A+, B+, and C+, and three channel types moving the ions out of the cell, with rates nA A-, nB B-, and nCC-.
Pseudo-code