0% found this document useful (0 votes)
74 views6 pages

Lecture-04 Modeling and Simulation of Discrete Event Systems

The document discusses the organization and logic of a simulation program and the steps involved in a simulation study. The simulation program begins by initializing the system state, statistical counters, and event list. It then determines the next event to occur by advancing the simulation clock. This triggers an event routine that updates the system state, counters, and generates future event times, which are added to the event list. This cycle repeats until the termination condition is met, at which point performance measures are estimated and a report is generated. The steps in a simulation study include problem formulation, data collection, model definition and validation, programming and verification, pilot runs, experiment design, production runs, output analysis, and documentation.

Uploaded by

sar1988
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views6 pages

Lecture-04 Modeling and Simulation of Discrete Event Systems

The document discusses the organization and logic of a simulation program and the steps involved in a simulation study. The simulation program begins by initializing the system state, statistical counters, and event list. It then determines the next event to occur by advancing the simulation clock. This triggers an event routine that updates the system state, counters, and generates future event times, which are added to the event list. This cycle repeats until the termination condition is met, at which point performance measures are estimated and a report is generated. The steps in a simulation study include problem formulation, data collection, model definition and validation, programming and verification, pilot runs, experiment design, production runs, output analysis, and documentation.

Uploaded by

sar1988
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Lecture-04

Modeling and Simulation of Discrete Event Systems


Program organization and logic, Steps in a simulation study

Dr Pradeep K. Jha
MIED, IIT Roorkee

1
Organization of program
• simulation begins at time 0 with the main program invoking
the initialization routine, where the simulation clock is set to zero,

• the system state and the statistical counters are initialized,


and the event list is initialized.

• After control has been returned to the main program, it


invokes the timing routine to determine which type of event is
most imminent.

2
• If an event is the next to occur, the simulation clock is
advanced to the time of occurrence of that event type and
control is returned to the main program.

• Then the main program invokes event routine, for ensuring


that (1) the system state is updated (2) statistical counters are
updated and (3) the times of occurrence of future events are
generated and added to the event list.

• Generation of random observations from probability


distributions is made to determine these future event times using
library routine.
3
• After all processing has been completed, a check is made to
determine if the simulation should now be terminated.

• If yes, the report generator is invoked from the main program


to compute estimates of the desired measures of performance
and to produce a report.

• If not, control is passed back to the main program and the


main program-timing routine-main program-event routine-
termination check cycle is repeated until the stopping condition
is eventually satisfied.

4
Steps in a sound simulation study
• Formulation of problem and planning of the study
• Collecting data and defining model
• To check the validity of the conceptual model
• Making construction and verifying it
• Making pilot runs
• Checking the validity of the programmed model
• Design of experiments
• Making production runs
• Analyzing output data
• Documentation, presentation and use of results

5
Thanks

You might also like