Lecture 3 Concepts of Discrete-Event Simulation. 2 Discrete Event Model  In the discrete approach to system simulation, state changes in the physical.

Slides:



Advertisements
Similar presentations
Simulation - An Introduction Simulation:- The technique of imitating the behaviour of some situation or system (economic, military, mechanical, etc.) by.
Advertisements

Chapter 14 Simulation. 2 What Is Simulation?  Simulation: A model of a complex system and the experimental manipulation of the model to observe the results.
Introduction into Simulation Basic Simulation Modeling.
Chapter 3 General Principles
Modeling & Simulation. System Models and Simulation Framework for Modeling and Simulation The framework defines the entities and their Relationships that.
 1  Outline  performance measures for a single-server station  discrete-event simulation  hand simulation  process-oriented simulation approach.
Agenda Main concepts in discrete-event simulation
Classification of Simulation Models
DISCRETE-EVENT SIMULATION CONCEPTS and EVENT SCHEDULING ALGORITHM
Components and Organization of Discrete-event Simulation Model
Simulation.
Simscript II.5 Building simulation model with SIMSCRIPT II.5.
Simulation with ArenaChapter 2 – Fundamental Simulation Concepts Discrete Event “Hand” Simulation of a GI/GI/1 Queue.
Lecture 11 Queueing Models. 2 Queueing System  Queueing System:  A system in which items (or customers) arrive at a station, wait in a line (or queue),
Simulation Waiting Line. 2 Introduction Definition (informal) A model is a simplified description of an entity (an object, a system of objects) such that.
CPSC 531: DES Overview1 CPSC 531:Discrete-Event Simulation Instructor: Anirban Mahanti Office: ICT Class Location:
Lecture 4 Mathematical and Statistical Models in Simulation.
Lab 01 Fundamentals SE 405 Discrete Event Simulation
Basic Simulation Modeling II
Chapter 14 Simulation. 2 What Is Simulation?  Simulation: A model of a complex system and the experimental manipulation of the model to observe the results.
Slide - 1 Dr Terry Hinton 6/9/05UniS - Based on Slides by Micro Analysis & Design An example of a Simulation Simulation of a bank: Three tasks or processes:
Modeling and Simulation
Introduction to Discrete Event Simulation Customer population Service system Served customers Waiting line Priority rule Service facilities Figure C.1.
(C) 2009 J. M. Garrido1 Object Oriented Simulation with Java.
Chapter 1 Introduction to Simulation
1 Performance Evaluation of Computer Networks: Part II Objectives r Simulation Modeling r Classification of Simulation Modeling r Discrete-Event Simulation.
General Simulation Principles
1 Chapter 2 Fundamental Simulation Concepts. Simulation with Arena Fundamental Simulation Concepts C2/2 What We’ll Do... Underlying ideas, methods, and.
1 Chapter 2 Fundamental Simulation Concepts Dr. Jason Merrick.
ETM 607 – Discrete Event Simulation Fundamentals Define Discrete Event Simulation. Define concepts (entities, attributes, event list, etc…) Define “world-view”,
Chapter 3 System Performance and Models. 2 Systems and Models The concept of modeling in the study of the dynamic behavior of simple system is be able.
Chapter 3 General Principles Banks, Carson, Nelson & Nicol Discrete-Event System Simulation.
Entities and Objects The major components in a model are entities, entity types are implemented as Java classes The active entities have a life of their.
+ Simulation Design. + Types event-advance and unit-time advance. Both these designs are event-based but utilize different ways of advancing the time.
Chapter 2 – Fundamental Simulation ConceptsSlide 1 of 46 Chapter 2 Fundamental Simulation Concepts.
Discrete Event (time) Simulation. What is a simulation? “Simulation is the process of designing a model of a real system and conducting experiments with.
NETW 707 Modeling and Simulation Amr El Mougy Maggie Mashaly.
Chapter 2 Fundamental Simulation Concepts
Reid & Sanders, Operations Management © Wiley 2002 Simulation Analysis D SUPPLEMENT.
Chapter 3 System Performance and Models Introduction A system is the part of the real world under study. Composed of a set of entities interacting.
MODELING EXAMPLES Types of model Conceptual Containing components that have not been clearly Identified in terms of theoretic categories such as state,
Simulation of Operations The Discrete Event Approach to Computer Modelling.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
Network Protocol Simulation: A look at Discrete Event Simulation Grant D. Lanterman 5/21/2004.
Dr. Anis Koubâa CS433 Modeling and Simulation
Network Performance modelling and simulation
(C) J. M. Garrido1 Objects in a Simulation Model There are several objects in a simulation model The activate objects are instances of the classes that.
CDA6530: Performance Models of Computers and Networks Chapter 8: Statistical Simulation ---- Discrete Event Simulation (DES) TexPoint fonts used in EMF.
COMP155 Computer Simulation September 10, Discrete Event Simulation  discrete event simulation: state variable change only at a discrete set of.
Advantages of simulation 1. New policies, operating procedures, information flows and son on can be explored without disrupting ongoing operation of the.
Simulation Modeling and Analysis Ernesto Gutierrez-Miravete Rensselaer at Hartford October 14th, 2003.
 Simulation enables the study of complex system.  Simulation is a good approach when analytic study of a system is not possible or very complex.  Informational,
Chapter 3 General Principles Banks, Carson, Nelson & Nicol Discrete-Event System Simulation.
Ch. 3 General Principles Discrete-event simulation The basic building blocks of all discrete-event simulation models : entities and attributes, activities.
Introduction The objective of simulation – Analysis the system (Model) Analytically the model – a description of some system intended to predict the behavior.
Waiting Line Theroy BY, PRAYASH NEUPANE, KARAN CHAND & SANTOSH SHERESTHA.
Unit 4 Simulation software. Introduction Software used to develop simulation models can be divided into 3 categories: – General-purpose programming languages:
MODELING AND SIMULATION CS 313 Simulation Examples 1.
Simulation Examples And General Principles Part 2
Discrete-Event System Simulation in Java. Discrete Event Systems New dynamic systems New dynamic systems Computer and communication networks Computer.
Modeling and Simulation
Introduction To Modeling and Simulation 1. A simulation: A simulation is the imitation of the operation of real-world process or system over time. A Representation.
OPERATING SYSTEMS CS 3502 Fall 2017
Modeling and Simulation (An Introduction)
Discrete Event Simulation
Modeling and Simulation CS 313
More Explanation of an example in chapter4
Concepts In Discrete-Event Simulation
Discrete Event “Hand” Simulation of a GI/GI/1 Queue
MECH 3550 : Simulation & Visualization
Presentation transcript:

Lecture 3 Concepts of Discrete-Event Simulation

2 Discrete Event Model  In the discrete approach to system simulation, state changes in the physical system are represented by a series of discrete changes or events at specific instants of time and such models are known as discrete event models.  The time and state are the two important coordinates used in describing simulation models.  Between events, the states of the entities remain constant.  The change in state is brought about by events which from the driving force behind every discrete event simulation model.  In the discrete approach to system simulation, state changes in the physical system are represented by a series of discrete changes or events at specific instants of time and such models are known as discrete event models.  The time and state are the two important coordinates used in describing simulation models.  Between events, the states of the entities remain constant.  The change in state is brought about by events which from the driving force behind every discrete event simulation model.

3 System Terminology  System:  A collection of entities (e.g., people and machines) that interact together over time to accomplish one or more goals.  Model:  An abstract representation of a system, usually containing structural logical, or mathematical relationships which describe a system in terms of state, entities and their attributes, sets, processes, events, activities, and delays.  System state:  A collection of variables that contain all the information necessary to describe the system at any time.  System:  A collection of entities (e.g., people and machines) that interact together over time to accomplish one or more goals.  Model:  An abstract representation of a system, usually containing structural logical, or mathematical relationships which describe a system in terms of state, entities and their attributes, sets, processes, events, activities, and delays.  System state:  A collection of variables that contain all the information necessary to describe the system at any time.

4 System Terminology (cont’)  Entities:  Any object or component in the system which requires explicit representation in the model (e.g., a server, a customer, a machine).  Attributes:  The properties of a given entity (e.g., the priority of a waiting customer, the routing of a job through a job shop).  List (Set, Queue):  A collection of (permanently or temporarily) associated entities, ordered in some logical fashion (such as all customers currently in a waiting line, ordered by first come, first served, or by priority).  Entities:  Any object or component in the system which requires explicit representation in the model (e.g., a server, a customer, a machine).  Attributes:  The properties of a given entity (e.g., the priority of a waiting customer, the routing of a job through a job shop).  List (Set, Queue):  A collection of (permanently or temporarily) associated entities, ordered in some logical fashion (such as all customers currently in a waiting line, ordered by first come, first served, or by priority).

5 System Terminology (cont’)  Event:  An instantaneous occurrence that changes the state of a system (such as an arrival of a new customer).  Event notice:  A record of an event to occur at the current or some future time, along with any associated data necessary to execute the event; at a minimum, the record includes the event type and the event time.  Event list:  A list of event notices for future events, ordered by time of occurrence; also known as the future event list (FEL).  Event:  An instantaneous occurrence that changes the state of a system (such as an arrival of a new customer).  Event notice:  A record of an event to occur at the current or some future time, along with any associated data necessary to execute the event; at a minimum, the record includes the event type and the event time.  Event list:  A list of event notices for future events, ordered by time of occurrence; also known as the future event list (FEL).

6 System Terminology (cont’)  Activity:  A duration of time of specified length (e.g., a service time or inter- arrival time), which is known when it begins (although it may be defined in terms of a statistical distribution).  Delay:  A duration of time of unspecified indefinite length, which is not known until it ends (e.g., a customer’s delay in a last-in, first-out waiting line which, when it begins, depends on future arrivals).  Clock:  A variable representing simulated time.  Activity:  A duration of time of specified length (e.g., a service time or inter- arrival time), which is known when it begins (although it may be defined in terms of a statistical distribution).  Delay:  A duration of time of unspecified indefinite length, which is not known until it ends (e.g., a customer’s delay in a last-in, first-out waiting line which, when it begins, depends on future arrivals).  Clock:  A variable representing simulated time.

7 System Terminology (Example 2.1)  System state:  LQ(t), the number of customer waiting to be served at time t  LC(t), 0 or 1 indicate counter being idle or busy at time t  Entities  Neither the customers nor the servers need to be explicitly represented, unless certain customer averages are desired  Events:  Arrival event  Service completion  System state:  LQ(t), the number of customer waiting to be served at time t  LC(t), 0 or 1 indicate counter being idle or busy at time t  Entities  Neither the customers nor the servers need to be explicitly represented, unless certain customer averages are desired  Events:  Arrival event  Service completion

8 System Terminology (Example 2.1)  Activities:  Interarrival time  Service time  Unconditional wait  Delay:  A customer’s wait in queue until counter becomes free  Conditional wait  Activities:  Interarrival time  Service time  Unconditional wait  Delay:  A customer’s wait in queue until counter becomes free  Conditional wait

9 Main Approaches  Event-scheduling approach  concentrate on the events and how they affect the system state. The simulation evolves over time by executing events in increasing order of their times of occurrence.  Examples: FORTRAN, GASP IV, C++  Process-interaction approach  concentrate on a single entity (e.g. a customer) and the sequence of events and activities it undergoes as it PASSES THROUGH THE SYSTEM. At any given time, the system may contain many processes (e.g. customers) interacting with each other while competing for a set of resources.  Example: GPSS  Event-scheduling approach  concentrate on the events and how they affect the system state. The simulation evolves over time by executing events in increasing order of their times of occurrence.  Examples: FORTRAN, GASP IV, C++  Process-interaction approach  concentrate on a single entity (e.g. a customer) and the sequence of events and activities it undergoes as it PASSES THROUGH THE SYSTEM. At any given time, the system may contain many processes (e.g. customers) interacting with each other while competing for a set of resources.  Example: GPSS

10 Main Approaches (cont’)  Interactive, menu-driven, animated approach  Recently available on PCs.  Examples: PROMODEL, SIGMA  Interactive, menu-driven, animated approach  Recently available on PCs.  Examples: PROMODEL, SIGMA

11 Future Event List (FEL)  Both the event-scheduling and the process- interaction approaches use a variable time advance;  that is, when all events and system state changes have occurred at one instant of simulated time, the simulation clock is advanced to the time of the next imminent event on the FEL.  Both the event-scheduling and the process- interaction approaches use a variable time advance;  that is, when all events and system state changes have occurred at one instant of simulated time, the simulation clock is advanced to the time of the next imminent event on the FEL.

12 Event-Scheduling Approach  This list contains all event notices for events that have been scheduled to occur at a future time.  Scheduling a future event means that at the instant an activity begins, its duration is computed or drawn as a sample from a statistical distribution and the end-activity event, together with its event time, is placed on the future event list.  In the real world, most future events are not scheduled but merely happen – such as random breakdowns or random arrivals.  This list contains all event notices for events that have been scheduled to occur at a future time.  Scheduling a future event means that at the instant an activity begins, its duration is computed or drawn as a sample from a statistical distribution and the end-activity event, together with its event time, is placed on the future event list.  In the real world, most future events are not scheduled but merely happen – such as random breakdowns or random arrivals.

13 Event-Scheduling Approach (Example)  List of all activities’ SCHEDULED TIME OF COMPLETION (EVENTS)  The FEL is a SET ordered in completion times  t 1 < t 2 < … < t n  Example Consider a single server queue with the following arrival times for the first 10 customers: and service times for these customers Assume that completions are given priority over arrivals  List of all activities’ SCHEDULED TIME OF COMPLETION (EVENTS)  The FEL is a SET ordered in completion times  t 1 < t 2 < … < t n  Example Consider a single server queue with the following arrival times for the first 10 customers: and service times for these customers Assume that completions are given priority over arrivals

14 Event-Scheduling Approach (Example) Time = 0 FEL 4ARRIVAL 5COMPLETION.... QUEUE 0 

15 Event-Scheduling Approach (Example) Time = 4 FEL 5COMPLETION 8ARRIVAL 10COMPLETION 13ARRIVAL 14ARRIVAL 17ARRIVAL 20ARRIVAL 27ARRIVAL 29ARRIVAL QUEUE 4#1 arrival timecustomer

16 Process-Interaction Approach  A process is the life cycle of one entity.  This life cycle consists of various events and activities.  Some activities may require the use of one or more resources whose capacities are limited.  These and other constraints cause processes to interact, the simplest example being an entity forced to wait in a queue (on a list) because the resource it needs is busy with another entity.  A process is the life cycle of one entity.  This life cycle consists of various events and activities.  Some activities may require the use of one or more resources whose capacities are limited.  These and other constraints cause processes to interact, the simplest example being an entity forced to wait in a queue (on a list) because the resource it needs is busy with another entity.

17 Process-Interaction Approach (cont’)  In more precise terms, a process is a time- sequenced list of events, activities, and delays, including demands for resources, that define the life cycle of one entity as it moves through a system.  We see the interaction between two customer processes as customer n + 1 is delayed until the previous customer’s “end-service event” occurs.  In more precise terms, a process is a time- sequenced list of events, activities, and delays, including demands for resources, that define the life cycle of one entity as it moves through a system.  We see the interaction between two customer processes as customer n + 1 is delayed until the previous customer’s “end-service event” occurs.

18 Process-Interaction Approach (Example) Time Arrival event Arrival event Begin service Begin service End- service- event End- service- event Interaction Activity Delay Customer n Customer n + 1