SlideShare une entreprise Scribd logo
1  sur  26
GENERAL PRINCIPLES,
SIMULATION SOFTWARE
Unit 5
CONTENTS
• Concepts in Discrete-Event Simulation
• The Event-Scheduling / Time-Advance Algorithm
• World Views
• Manual simulation Using Event Scheduling
• List processing
• Simulation in Java
2
CONCEPTS IN DISCRETE-EVENT
SIMULATION
• System: A collection of entities that interact together over time
• Model: A abstract representation of a system
• System State: A collection of variables that contain all the
information necessary to describe the system at any time
• Entity: Any object or component in the system that requires
explicit representation in the model
• Attributes: the properties of a given entity
3
• List: A collection of associated entities , ordered in some
logical fashion
• Event: An instantaneous occurrence that changes the state
of a system
• Event Notice: A record of an event to occur at the current
and some future time , along with any associated data
necessary to execute an event
4
• Event List: A list of event notices for future events ordered
by time of occurrence also known as FUTURE EVENT
LIST(FEL)
• Activity: A duration of time of specified length
• Delay: A duration of time of unspecified indefinite length
• Clock: A variable representing simulated time
5
THE EVENT-SCHEDULING / TIME-ADVANCE
ALGORITHM
• The mechanism for advancing simulation time and guaranteeing that
all events occur in correct chronological order is based on the FEL
• The FEL is ordered by event time, in chronological order ,
t < t1 ≤ t2 ≤ t3 ≤ ….. tn
where t is the value of CLOCK , the current value of simulated time.
t1 is called the imminent event , i.e., the next event will occur.
6
• After the system snapshot at simulation time,
CLOCK_t is updated , the CLOCK is advanced to simulation time
CLOCK t1 and the imminent event notice is removed from the FEL
and the event is executed.
• Sequence of actions which a simulator must perform to advance the
clock system snapshot is called the event scheduling/time advance
algorithm
7
8
ALGORITHM
1. Remove the event notice for the imminent event
2. Advance the CLOCK to imminent event time
3. Execute imminent event: update system state , change entity ,
attributes and set membership as needed.
4. Generate future events and place their event notices ranked
by event time
5. Update cumulative statistics and counters
9
10
11
WORLD VIEWS
• Orientation for developing a model.
the most prevalent world views are ,
• Event Scheduling world view
• Process interaction world view
• Activity scanning world view
12
ACTIVITY SCANNING WORLD VIEW
• 3 phase approach , where events are considered to be activity duration-zero time
units which are categorized into 2 type of activities namely activities of type B & C
• B activities – bound to occur: all primary
• C activities: conditional , upon certain conditions being true
• 3 phases are
• Phase A
• Phase B
• Phase C
13
MANUAL SIMULATION HANDLING USING
EVENT SCHEDULING
• Eg: single channel queue
• System state: LQ(t) , LS(t)
• Entities: server and the customers
• Events : Arrival (A) , Departure (D) , Stopping event(S)
• Event notices: (A,i) , (D,t) , (S , t)
• Activities: IAT , Service time
• Delay : customer spent in the waiting line
14
15
16
LIST PROCESSING
• Lists: Basic properties and operations
• Using Arrays for list processing
• Using dynamic Allocations and Linked Lists
17
SIMULATION IN JAVA
• A discrete event simulation model written in java contains
the components like System state, entities & attributes,
sets, events, activities, and delays.
• To facilitate the development and debugging , it is best to
organize the Java model in a modular fashion by using
methods
18
• CLOCK: A variable defining simulated time
• INITIALIZATION METHOD: A method to define the system
state at time 0.
• MIN-TIME EVENT METHOD: A method that identifies the
imminent event , i.e, the element of the future event list that has
smallest time stamp.
• EVENT METHODS: for each type, a method to update system
state when that event occurs
19
• RANDOM-VARIATE GENERATORS: Methods to generate samples from
desired probability distributions
• MAIN PROGRAM: to maintain overall control of the event-scheduling
algorithm.
• REPORT GENERATOR: A method that computes summary statistics from
cumulative statistics and prints a report at the end of the simulation.
• The overall structure of Java simulation program can be explained through
a flow chart which is an expansion of the Event scheduling algorithm
20
21
SINGLE- SERVER QUEUE SIMULATION IN JAVA
22
SIMULATION IN GPSS
• GPSS is a highly structured ,special purpose simulation
programming language based on the process interaction
approach and oriented towards queuing systems
• There are 40 standard blocks in GPSS.
• Blocks represents events, delays and other actions that
affect transaction flow
23
• First version by IBM in 1961.
• GPSS/H is the widely used version . Unlike the original
IBM implementation GPSS/H includes built-in files and
screen I/O , use of an arithmetic expression as a block of
operand , an interactive debugger, faster execution ,
expanded control statements , ordinary variables and
arrays.
• Single-server queue simulation in GPSS/H 24
25
END OF UNIT 5
Thank you
26

Contenu connexe

Tendances

Discrete And Continuous Simulation
Discrete And Continuous SimulationDiscrete And Continuous Simulation
Discrete And Continuous Simulation
Nguyen Chien
 
Modelling and Simulation - ICT
Modelling and Simulation - ICTModelling and Simulation - ICT
Modelling and Simulation - ICT
college
 
Introduction to Simulation
Introduction to SimulationIntroduction to Simulation
Introduction to Simulation
chimco.net
 
Desirable software features simulation & modeling
Desirable software features simulation & modelingDesirable software features simulation & modeling
Desirable software features simulation & modeling
Shashwat Shriparv
 

Tendances (20)

Introduction to System, Simulation and Model
Introduction to System, Simulation and ModelIntroduction to System, Simulation and Model
Introduction to System, Simulation and Model
 
continuous and discrets systems
continuous  and discrets systemscontinuous  and discrets systems
continuous and discrets systems
 
Discrete And Continuous Simulation
Discrete And Continuous SimulationDiscrete And Continuous Simulation
Discrete And Continuous Simulation
 
Modelling and Simulation - ICT
Modelling and Simulation - ICTModelling and Simulation - ICT
Modelling and Simulation - ICT
 
Introduction to Simulation
Introduction to SimulationIntroduction to Simulation
Introduction to Simulation
 
Modelling simulation (1)
Modelling simulation (1)Modelling simulation (1)
Modelling simulation (1)
 
simulation modeling in DSS
 simulation modeling in DSS simulation modeling in DSS
simulation modeling in DSS
 
Simulation of water reservoir
Simulation of water reservoirSimulation of water reservoir
Simulation of water reservoir
 
All types of model(Simulation & Modelling) #ShareThisIfYouLike
All types of model(Simulation & Modelling) #ShareThisIfYouLikeAll types of model(Simulation & Modelling) #ShareThisIfYouLike
All types of model(Simulation & Modelling) #ShareThisIfYouLike
 
UML daigrams for Bank ATM system
UML daigrams for Bank ATM systemUML daigrams for Bank ATM system
UML daigrams for Bank ATM system
 
Simulation, Modeling, it’s application, advantage & disadvantage
Simulation, Modeling, it’s application, advantage  &  disadvantageSimulation, Modeling, it’s application, advantage  &  disadvantage
Simulation, Modeling, it’s application, advantage & disadvantage
 
UML and Case study
UML and Case study UML and Case study
UML and Case study
 
Discreate Event Simulation_PPT1-R0.ppt
Discreate Event Simulation_PPT1-R0.pptDiscreate Event Simulation_PPT1-R0.ppt
Discreate Event Simulation_PPT1-R0.ppt
 
Simulation and its application
Simulation and its applicationSimulation and its application
Simulation and its application
 
Types of Mathematical Model.
Types of Mathematical Model.Types of Mathematical Model.
Types of Mathematical Model.
 
Desirable software features simulation & modeling
Desirable software features simulation & modelingDesirable software features simulation & modeling
Desirable software features simulation & modeling
 
Introduction to simulation
Introduction to simulationIntroduction to simulation
Introduction to simulation
 
General purpose simulation System (GPSS)
General purpose simulation System (GPSS)General purpose simulation System (GPSS)
General purpose simulation System (GPSS)
 
Simulation & Modelling
Simulation & ModellingSimulation & Modelling
Simulation & Modelling
 
Output analysis for simulation models / Elimination of initial Bias
Output analysis for simulation models / Elimination of initial BiasOutput analysis for simulation models / Elimination of initial Bias
Output analysis for simulation models / Elimination of initial Bias
 

En vedette

Chapter3 general principles of discrete event simulation
Chapter3   general principles of discrete event simulationChapter3   general principles of discrete event simulation
Chapter3 general principles of discrete event simulation
De La Salle University-Manila
 
Introduction to Discrete-Event Simulation Using SimPy
Introduction to Discrete-Event Simulation Using SimPyIntroduction to Discrete-Event Simulation Using SimPy
Introduction to Discrete-Event Simulation Using SimPy
pycontw
 
83690136 sess-3-modelling-and-simulation
83690136 sess-3-modelling-and-simulation83690136 sess-3-modelling-and-simulation
83690136 sess-3-modelling-and-simulation
noogle1996
 
Communication skills in english
Communication skills in englishCommunication skills in english
Communication skills in english
Aqib Memon
 
Access lesson 06 Integrating Access
Access lesson 06  Integrating AccessAccess lesson 06  Integrating Access
Access lesson 06 Integrating Access
Aram SE
 
Access lesson 02 Creating a Database
Access lesson 02 Creating a DatabaseAccess lesson 02 Creating a Database
Access lesson 02 Creating a Database
Aram SE
 
Lecture1
Lecture1Lecture1
Lecture1
rjaeh
 
Database and Access Power Point
Database and Access Power PointDatabase and Access Power Point
Database and Access Power Point
Ayee_Its_Bailey
 
01 computer%20 forensics%20in%20todays%20world
01 computer%20 forensics%20in%20todays%20world01 computer%20 forensics%20in%20todays%20world
01 computer%20 forensics%20in%20todays%20world
Aqib Memon
 
Computer Forensics &amp; Windows Registry
Computer Forensics &amp; Windows RegistryComputer Forensics &amp; Windows Registry
Computer Forensics &amp; Windows Registry
aradhanalaw
 

En vedette (20)

Chapter3 general principles of discrete event simulation
Chapter3   general principles of discrete event simulationChapter3   general principles of discrete event simulation
Chapter3 general principles of discrete event simulation
 
Introduction to Discrete-Event Simulation Using SimPy
Introduction to Discrete-Event Simulation Using SimPyIntroduction to Discrete-Event Simulation Using SimPy
Introduction to Discrete-Event Simulation Using SimPy
 
Simulation
SimulationSimulation
Simulation
 
Simulation Powerpoint- Lecture Notes
Simulation Powerpoint- Lecture NotesSimulation Powerpoint- Lecture Notes
Simulation Powerpoint- Lecture Notes
 
A discrete Event Simulation Model of Asphalt Paving Operations, Ramzi Labban ...
A discrete Event Simulation Model of Asphalt Paving Operations, Ramzi Labban ...A discrete Event Simulation Model of Asphalt Paving Operations, Ramzi Labban ...
A discrete Event Simulation Model of Asphalt Paving Operations, Ramzi Labban ...
 
83690136 sess-3-modelling-and-simulation
83690136 sess-3-modelling-and-simulation83690136 sess-3-modelling-and-simulation
83690136 sess-3-modelling-and-simulation
 
Simulation Software Performances And Examples
Simulation Software Performances And ExamplesSimulation Software Performances And Examples
Simulation Software Performances And Examples
 
Communication skills in english
Communication skills in englishCommunication skills in english
Communication skills in english
 
Access lesson 06 Integrating Access
Access lesson 06  Integrating AccessAccess lesson 06  Integrating Access
Access lesson 06 Integrating Access
 
OWASP Khartoum Cyber Security Session
OWASP Khartoum Cyber Security SessionOWASP Khartoum Cyber Security Session
OWASP Khartoum Cyber Security Session
 
Access lesson 02 Creating a Database
Access lesson 02 Creating a DatabaseAccess lesson 02 Creating a Database
Access lesson 02 Creating a Database
 
Lecture1
Lecture1Lecture1
Lecture1
 
Monte Carlo Simulation
Monte Carlo SimulationMonte Carlo Simulation
Monte Carlo Simulation
 
Monte Carlo Statistical Methods
Monte Carlo Statistical MethodsMonte Carlo Statistical Methods
Monte Carlo Statistical Methods
 
Monte Carlo G P U Jan2010
Monte  Carlo  G P U  Jan2010Monte  Carlo  G P U  Jan2010
Monte Carlo G P U Jan2010
 
Database and Access Power Point
Database and Access Power PointDatabase and Access Power Point
Database and Access Power Point
 
01 computer%20 forensics%20in%20todays%20world
01 computer%20 forensics%20in%20todays%20world01 computer%20 forensics%20in%20todays%20world
01 computer%20 forensics%20in%20todays%20world
 
Model inquiri
Model inquiriModel inquiri
Model inquiri
 
Computer Forensics
Computer ForensicsComputer Forensics
Computer Forensics
 
Computer Forensics &amp; Windows Registry
Computer Forensics &amp; Windows RegistryComputer Forensics &amp; Windows Registry
Computer Forensics &amp; Windows Registry
 

Similaire à Unit 5 general principles, simulation software

Module 2 - PPT.pdfModule 2 - PPT.pdfModule 2 - PPT.pdfModule 2 - PPT.pdfModul...
Module 2 - PPT.pdfModule 2 - PPT.pdfModule 2 - PPT.pdfModule 2 - PPT.pdfModul...Module 2 - PPT.pdfModule 2 - PPT.pdfModule 2 - PPT.pdfModule 2 - PPT.pdfModul...
Module 2 - PPT.pdfModule 2 - PPT.pdfModule 2 - PPT.pdfModule 2 - PPT.pdfModul...
morganjohn3
 
Inside Kafka Streams—Monitoring Comcast’s Outside Plant
Inside Kafka Streams—Monitoring Comcast’s Outside Plant Inside Kafka Streams—Monitoring Comcast’s Outside Plant
Inside Kafka Streams—Monitoring Comcast’s Outside Plant
confluent
 
Runtime performance evaluation of embedded software
Runtime performance evaluation of embedded softwareRuntime performance evaluation of embedded software
Runtime performance evaluation of embedded software
Mr. Chanuwan
 
Runtimeperformanceevaluationofembeddedsoftware 100825224539-phpapp02
Runtimeperformanceevaluationofembeddedsoftware 100825224539-phpapp02Runtimeperformanceevaluationofembeddedsoftware 100825224539-phpapp02
Runtimeperformanceevaluationofembeddedsoftware 100825224539-phpapp02
NNfamily
 
DRCC Application Overview
DRCC Application OverviewDRCC Application Overview
DRCC Application Overview
Greg Selvin
 

Similaire à Unit 5 general principles, simulation software (20)

Time advance mehcanism
Time advance mehcanismTime advance mehcanism
Time advance mehcanism
 
Unit i
Unit iUnit i
Unit i
 
VTU 8th Sem Notes Simulation
VTU 8th Sem Notes SimulationVTU 8th Sem Notes Simulation
VTU 8th Sem Notes Simulation
 
Unit 2_OS process management
Unit 2_OS process management Unit 2_OS process management
Unit 2_OS process management
 
Globus Automation
Globus AutomationGlobus Automation
Globus Automation
 
Module 2 - PPT.pdfModule 2 - PPT.pdfModule 2 - PPT.pdfModule 2 - PPT.pdfModul...
Module 2 - PPT.pdfModule 2 - PPT.pdfModule 2 - PPT.pdfModule 2 - PPT.pdfModul...Module 2 - PPT.pdfModule 2 - PPT.pdfModule 2 - PPT.pdfModule 2 - PPT.pdfModul...
Module 2 - PPT.pdfModule 2 - PPT.pdfModule 2 - PPT.pdfModule 2 - PPT.pdfModul...
 
3 interaction and_state_modeling
3 interaction and_state_modeling3 interaction and_state_modeling
3 interaction and_state_modeling
 
UNIT I-Processes.pptx
UNIT I-Processes.pptxUNIT I-Processes.pptx
UNIT I-Processes.pptx
 
Inside Kafka Streams—Monitoring Comcast’s Outside Plant
Inside Kafka Streams—Monitoring Comcast’s Outside Plant Inside Kafka Streams—Monitoring Comcast’s Outside Plant
Inside Kafka Streams—Monitoring Comcast’s Outside Plant
 
RuSIEM overview (english version)
RuSIEM overview (english version)RuSIEM overview (english version)
RuSIEM overview (english version)
 
Doyle h 0945-high-availablity-cep-with-red_hat-j_boss_brms-3
Doyle h 0945-high-availablity-cep-with-red_hat-j_boss_brms-3Doyle h 0945-high-availablity-cep-with-red_hat-j_boss_brms-3
Doyle h 0945-high-availablity-cep-with-red_hat-j_boss_brms-3
 
Hdl based simulators
Hdl based simulatorsHdl based simulators
Hdl based simulators
 
Runtime performance evaluation of embedded software
Runtime performance evaluation of embedded softwareRuntime performance evaluation of embedded software
Runtime performance evaluation of embedded software
 
Runtimeperformanceevaluationofembeddedsoftware 100825224539-phpapp02
Runtimeperformanceevaluationofembeddedsoftware 100825224539-phpapp02Runtimeperformanceevaluationofembeddedsoftware 100825224539-phpapp02
Runtimeperformanceevaluationofembeddedsoftware 100825224539-phpapp02
 
Zentral london mac_ad_uk_2017
Zentral london mac_ad_uk_2017Zentral london mac_ad_uk_2017
Zentral london mac_ad_uk_2017
 
Ekon21 Microservices - Event Driven Design
Ekon21 Microservices - Event Driven DesignEkon21 Microservices - Event Driven Design
Ekon21 Microservices - Event Driven Design
 
MOD_Design_Implementation_Ch7_summary.pdf
MOD_Design_Implementation_Ch7_summary.pdfMOD_Design_Implementation_Ch7_summary.pdf
MOD_Design_Implementation_Ch7_summary.pdf
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event Scheduling
 
DRCC Application Overview
DRCC Application OverviewDRCC Application Overview
DRCC Application Overview
 
Mastering the Lightning Framework - Part 2
Mastering the Lightning Framework - Part 2Mastering the Lightning Framework - Part 2
Mastering the Lightning Framework - Part 2
 

Plus de raksharao

Plus de raksharao (20)

Unit 1-logic
Unit 1-logicUnit 1-logic
Unit 1-logic
 
Unit 1 rules of inference
Unit 1  rules of inferenceUnit 1  rules of inference
Unit 1 rules of inference
 
Unit 1 quantifiers
Unit 1  quantifiersUnit 1  quantifiers
Unit 1 quantifiers
 
Unit 1 introduction to proofs
Unit 1  introduction to proofsUnit 1  introduction to proofs
Unit 1 introduction to proofs
 
Unit 7 verification &amp; validation
Unit 7 verification &amp; validationUnit 7 verification &amp; validation
Unit 7 verification &amp; validation
 
Unit 6 input modeling problems
Unit 6 input modeling problemsUnit 6 input modeling problems
Unit 6 input modeling problems
 
Unit 5 general principles, simulation software problems
Unit 5  general principles, simulation software problemsUnit 5  general principles, simulation software problems
Unit 5 general principles, simulation software problems
 
Unit 4 queuing models
Unit 4 queuing modelsUnit 4 queuing models
Unit 4 queuing models
 
Unit 4 queuing models problems
Unit 4 queuing models problemsUnit 4 queuing models problems
Unit 4 queuing models problems
 
Unit 3 random number generation, random-variate generation
Unit 3 random number generation, random-variate generationUnit 3 random number generation, random-variate generation
Unit 3 random number generation, random-variate generation
 
Unit 1 introduction contd
Unit 1 introduction contdUnit 1 introduction contd
Unit 1 introduction contd
 
Unit 1 introduction
Unit 1 introductionUnit 1 introduction
Unit 1 introduction
 
Module1 part2
Module1 part2Module1 part2
Module1 part2
 
Module1 Mobile Computing Architecture
Module1 Mobile Computing ArchitectureModule1 Mobile Computing Architecture
Module1 Mobile Computing Architecture
 
java-Unit4 chap2- awt controls and layout managers of applet
java-Unit4 chap2- awt controls and layout managers of appletjava-Unit4 chap2- awt controls and layout managers of applet
java-Unit4 chap2- awt controls and layout managers of applet
 
java Unit4 chapter1 applets
java Unit4 chapter1 appletsjava Unit4 chapter1 applets
java Unit4 chapter1 applets
 
Chap3 multi threaded programming
Chap3 multi threaded programmingChap3 multi threaded programming
Chap3 multi threaded programming
 
Java-Unit 3- Chap2 exception handling
Java-Unit 3- Chap2 exception handlingJava-Unit 3- Chap2 exception handling
Java-Unit 3- Chap2 exception handling
 
FIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer LanguagesFIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer Languages
 
FIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer programFIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer program
 

Dernier

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Dernier (20)

psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 

Unit 5 general principles, simulation software

  • 2. CONTENTS • Concepts in Discrete-Event Simulation • The Event-Scheduling / Time-Advance Algorithm • World Views • Manual simulation Using Event Scheduling • List processing • Simulation in Java 2
  • 3. CONCEPTS IN DISCRETE-EVENT SIMULATION • System: A collection of entities that interact together over time • Model: A abstract representation of a system • System State: A collection of variables that contain all the information necessary to describe the system at any time • Entity: Any object or component in the system that requires explicit representation in the model • Attributes: the properties of a given entity 3
  • 4. • List: A collection of associated entities , ordered in some logical fashion • Event: An instantaneous occurrence that changes the state of a system • Event Notice: A record of an event to occur at the current and some future time , along with any associated data necessary to execute an event 4
  • 5. • Event List: A list of event notices for future events ordered by time of occurrence also known as FUTURE EVENT LIST(FEL) • Activity: A duration of time of specified length • Delay: A duration of time of unspecified indefinite length • Clock: A variable representing simulated time 5
  • 6. THE EVENT-SCHEDULING / TIME-ADVANCE ALGORITHM • The mechanism for advancing simulation time and guaranteeing that all events occur in correct chronological order is based on the FEL • The FEL is ordered by event time, in chronological order , t < t1 ≤ t2 ≤ t3 ≤ ….. tn where t is the value of CLOCK , the current value of simulated time. t1 is called the imminent event , i.e., the next event will occur. 6
  • 7. • After the system snapshot at simulation time, CLOCK_t is updated , the CLOCK is advanced to simulation time CLOCK t1 and the imminent event notice is removed from the FEL and the event is executed. • Sequence of actions which a simulator must perform to advance the clock system snapshot is called the event scheduling/time advance algorithm 7
  • 8. 8
  • 9. ALGORITHM 1. Remove the event notice for the imminent event 2. Advance the CLOCK to imminent event time 3. Execute imminent event: update system state , change entity , attributes and set membership as needed. 4. Generate future events and place their event notices ranked by event time 5. Update cumulative statistics and counters 9
  • 10. 10
  • 11. 11
  • 12. WORLD VIEWS • Orientation for developing a model. the most prevalent world views are , • Event Scheduling world view • Process interaction world view • Activity scanning world view 12
  • 13. ACTIVITY SCANNING WORLD VIEW • 3 phase approach , where events are considered to be activity duration-zero time units which are categorized into 2 type of activities namely activities of type B & C • B activities – bound to occur: all primary • C activities: conditional , upon certain conditions being true • 3 phases are • Phase A • Phase B • Phase C 13
  • 14. MANUAL SIMULATION HANDLING USING EVENT SCHEDULING • Eg: single channel queue • System state: LQ(t) , LS(t) • Entities: server and the customers • Events : Arrival (A) , Departure (D) , Stopping event(S) • Event notices: (A,i) , (D,t) , (S , t) • Activities: IAT , Service time • Delay : customer spent in the waiting line 14
  • 15. 15
  • 16. 16
  • 17. LIST PROCESSING • Lists: Basic properties and operations • Using Arrays for list processing • Using dynamic Allocations and Linked Lists 17
  • 18. SIMULATION IN JAVA • A discrete event simulation model written in java contains the components like System state, entities & attributes, sets, events, activities, and delays. • To facilitate the development and debugging , it is best to organize the Java model in a modular fashion by using methods 18
  • 19. • CLOCK: A variable defining simulated time • INITIALIZATION METHOD: A method to define the system state at time 0. • MIN-TIME EVENT METHOD: A method that identifies the imminent event , i.e, the element of the future event list that has smallest time stamp. • EVENT METHODS: for each type, a method to update system state when that event occurs 19
  • 20. • RANDOM-VARIATE GENERATORS: Methods to generate samples from desired probability distributions • MAIN PROGRAM: to maintain overall control of the event-scheduling algorithm. • REPORT GENERATOR: A method that computes summary statistics from cumulative statistics and prints a report at the end of the simulation. • The overall structure of Java simulation program can be explained through a flow chart which is an expansion of the Event scheduling algorithm 20
  • 21. 21
  • 22. SINGLE- SERVER QUEUE SIMULATION IN JAVA 22
  • 23. SIMULATION IN GPSS • GPSS is a highly structured ,special purpose simulation programming language based on the process interaction approach and oriented towards queuing systems • There are 40 standard blocks in GPSS. • Blocks represents events, delays and other actions that affect transaction flow 23
  • 24. • First version by IBM in 1961. • GPSS/H is the widely used version . Unlike the original IBM implementation GPSS/H includes built-in files and screen I/O , use of an arithmetic expression as a block of operand , an interactive debugger, faster execution , expanded control statements , ordinary variables and arrays. • Single-server queue simulation in GPSS/H 24
  • 25. 25
  • 26. END OF UNIT 5 Thank you 26