



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An outline for a lecture on simulation and modeling, focusing on event-oriented discrete event systems. Topics include simulation modeling characteristics, concepts of time, des computation, data structures, and program code. Dynamic and static models, deterministic and stochastic systems, discrete and continuous models, and aggregates or individuals are discussed.
Typology: Study notes
1 / 7
This page cannot be seen from the preview
Don't miss anything!




Maria Hybinette, UGA
Maria Hybinette, UGA 2
Maria Hybinette, UGA 3
C formapcuttaelr wAirtth: a Bdreonwdnriiatni (^) cT rseter (^) u-cture. Generated stochastically Maria Hybinette, UGA 4 Static Dynamic Discrete Time Continuous Time Deterministic Stochastic Mo nte Ca rlo sim ula tio ns
yi Response Xi,2 X 3 i, ⦠Xi,j ⦠Xi,p n . . . 3 2 1 Repetitions^ X 1 i, Inputs
Ā» Predictive behavior. The system is perfectly understood, then it is possible to predict precisely what will happen. Ā» Repeatable
Ā» behavior cannot be entirely predicted.
Ā» deterministic model with a behavior that cannot be entirely predicted. Depends so sensitively on the systemās initial conditions so that in effect it cannot be predicted.
Maria Hybinette, UGA 7
Maria Hybinette, UGA 8 State variables Time Continuous: State variables change continuously as a function of time State variables = f( t ) State variables Time Discrete: State variables change at discrete times Maria Hybinette, UGA 9 Static Dynamic Discrete Time Continuous Time Deterministic Stochastic One or more random parameters Fixed inputs yield fixed outputs Fixed inputs yield different outputs System description at one point in time System state changes at distinct times System description as it changes in time Model allows system state to change at any time Mo nte Ca rlo sim ula tio ns Maria Hybinette, UGA 10
Actual System Simulated System
! Simulated system imitates operations of actual system over time ! Artificial history of system can be generated and observed ! Internal (perhaps unobservable) behavior of system can be studied ! Time scale can be altered as needed ! Conclusion about actual system characteristics can be inferred inputs (t) Parameters outputs (t) outputs (t)
Actual System Parameters (^) EnvirSoynsmteemnt inputs (t) outputs (t) Model (simplified) Parameters (^) EnviroMnmodeenlt inputs (t) outputs (t)
Placing the system boundary is the first difficult task in modeling
Maria Hybinette, UGA 19
Maria Hybinette, UGA 20
Maria Hybinette, UGA 21
Queue Length Time Maria Hybinette, UGA 22 Moving Image
System Simulation
Moving Image System Simulation
Maria Hybinette, UGA 25
main() { ... double clock; ... } ! physical time: time in the physical system Ā» Noon, December 31 , 1999 to noon January 1 , 2000 ! simulation time: representation of physical time within the simulation Ā» floating point values in interval [ 0. 0 , 24. 0 ] ! wallclock time: time during the execution of the simulation, usually output from a hardware clock Ā» 9 : 00 to 9 : 15 AM on September 10 , 1999 Maria Hybinette, UGA 26
Ā» If T 1 < T 2 , then P 1 occurs before P 2 Ā» 9.0 represents 9 PM, 10.5 represents 10:30 PM
Ā» T 2 - T 1 = k (P 2 - P 1 ) for some constant k Ā» 1.0 in simulation time represents 1 hour of physical time Maria Hybinette, UGA 27
Simulation Time = W2S(W) = T 0 + S * (W - W 0 ) W = wallclock time; S = scale factor W 0 (T 0 ) = wallclock (simulation) time at start of simulation (assume simulation and wallclock time use same time units) Maria Hybinette, UGA 28
arrival 8: departure 9: landed 8: schedules^ arrival 9:30^ processed event^ current event unprocessed event schedules
Maria Hybinette, UGA 37
! Simulation modeling characteristics ! Time Ā» Important to distinguish among simulation time, wallclock time, and time in the physical system Ā» Paced execution (e.g., immersive virtual environments) vs. unpaced execution (e.g., simulations to analyze systems) ! DES computation: sequence of event computations Ā» Modify state variables Ā» Schedule new events ! DES System = model + simulation executive ! Data structures Ā» Pending event list to hold unprocessed events Ā» State variables Ā» Simulation time clock variable ! Program (Code) Ā» Main event processing loop Ā» Event procedures Ā» Events processed in time stamp order