Chapter 4 Simulation World Views
Chapter 4 Simulation World Views
• Events
– New Customer arrival and customer departure
• States
– Number of busy servers and number of customers
waiting service
• State transitions
– Arrive event – schedules another new event
• Sometimes events may also cancel another event
– Depart event
• Time advances from event to event
• Events are associated with procedures in
programming languages
• End of simulation is based on simulation time
or number of customers served
– Special event – end simulation
• Priority of events
– Can be implemented by using a modified event list
– Events
• E(type, time_of_occurence)
The activity interaction approach
• Activities and their preconditions(triggers) are the focus
• It is a state based approach to modeling and events can
be based on conditions
• Also known as activity scanning approach and two phase
approach
• In the modeling
– Types of events that occur
– Their causal relationship has to be defined
– Use modeling formalisms to describe the model
• Activity cycle diagram
Activity scanning cont…
• Has two phases
– Time flow phase
• advance time
– Activity scanning phase
• check activities whose condition is fulfilled
• Process it
• End of simulation can be activated like event
based approach
The process approach
• Started in the 80’s
• Movement of entities through a system is modeled
• The process flow is described by a series of process
steps that model the state changes that take place in
the system
• A process executes as a sequence of events
• To model a system
– What are the entities that move through the system?
– What processes are executed as the entity moves through
the system?
Example: Process model of simple client-server
system
• Process models are defined in the form of
flowchart
• Entities enter the process at the first step and exit
the process at the last step
• In our example
– Customer enter the process
– Wait to seize the resource or server
– Delay by the processing time
– Release the server
– Tally their time in system
Service operation is modeled by a resource that can be seized and released by
entities as they flow through the process
Seize step simulates the time delay until server becomes available – this is a
conditional delay
j1
j
Server
HR Database
Client
• Schematic representation
HR system modeling cont…
• Client request types and message size
queue
Get
transmitted
to server
Reply
queue transmitted
queue
Reply
transmitted
queue
Get service
Activity cycle diagram for transmission network/ TP monitor
Request
arrival
queue
queue
Transmit
activity
Activity cycle diagram for server
1/2
Request
arrival
queue
queue
Transmit
activity
Process based approach
• 4 processes
– Add process
Begin-----seize-----delay-----tally-----end
– Delete process
Begin-----seize-----delay-----tally-----end
– Find process
Begin-----seize-----delay-----tally-----end
– Search process
– Begin-----seize-----delay-----tally-----end
Reading Assignment
• Modeling of e-commerce and supply chain
• Modeling of E- banking system
• Modeling of Wireless web in a class room for
performance analysis
• Modeling telecommunication system