Discrete Event Simulation

Slides:



Advertisements
Similar presentations
Chapter 3 General Principles
Advertisements

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
Lecture 3 Concepts of Discrete-Event Simulation. 2 Discrete Event Model  In the discrete approach to system simulation, state changes in the physical.
Simulation. Example: A Bank Simulator We are given: –The number of tellers –The arrival time of each customer –The amount of time each customer requires.
Classification of Simulation Models
DISCRETE-EVENT SIMULATION CONCEPTS and EVENT SCHEDULING ALGORITHM
Components and Organization of Discrete-event Simulation Model
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.
Simulating Single server queuing models. Consider the following sequence of activities that each customer undergoes: 1.Customer arrives 2.Customer waits.
Simulation Waiting Line. 2 Introduction Definition (informal) A model is a simplified description of an entity (an object, a system of objects) such that.
Queueing Models: Data Collection and Hand Simulation from Prof. Goldsman’s lecture notes.
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
Graduate Program in Engineering and Technology Management
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:
Simulation II IE 2030 Lecture 18. Outline: Simulation II Advanced simulation demo Review of concepts from Simulation I How to perform a simulation –concepts:
Introduction to Discrete Event Simulation Customer population Service system Served customers Waiting line Priority rule Service facilities Figure C.1.
General Simulation Principles
ETM 607 – Discrete Event Simulation Fundamentals Define Discrete Event Simulation. Define concepts (entities, attributes, event list, etc…) Define “world-view”,
Chapter 3 General Principles Banks, Carson, Nelson & Nicol Discrete-Event System Simulation.
1 QUEUES. 2 Definition A queue is a linear list in which data can only be inserted at one end, called the rear, and deleted from the other end, called.
Example simulation execution The Able Bakers Carhops Problem There are situation where there are more than one service channel. Consider a drive-in restaurant.
Chapter 2 – Fundamental Simulation ConceptsSlide 1 of 46 Chapter 2 Fundamental Simulation Concepts.
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Simulation Examples and General Principles
NETW 707 Modeling and Simulation Amr El Mougy Maggie Mashaly.
1 Simulation Implementation Using high-level languages.
Chapter 2 Fundamental Simulation Concepts
MODELING EXAMPLES Types of model Conceptual Containing components that have not been clearly Identified in terms of theoretic categories such as state,
Chapter 2 Simulation Examples
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.
Discrete Event 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.
SIMULATION EXAMPLES. Monte-Carlo (Static) Simulation Estimating profit on a sale promotion Estimating profit on a sale promotion Estimating profit on.
Advantages of simulation 1. New policies, operating procedures, information flows and son on can be explored without disrupting ongoing operation of the.
 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.
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
Simulation modelling real processes to make predictions.
CDA6530: Performance Models of Computers and Networks Chapter 8: Statistical Simulation ---- Discrete Event Simulation (DES) TexPoint fonts used in EMF.
Discrete-Event System Simulation in Java. Discrete Event Systems New dynamic systems New dynamic systems Computer and communication networks Computer.
Introduction to Modeling & Simulation Dr. A. K. Dey Third Lecture
Simulation of single server queuing systems
Chapter 2 Simulation Examples. Simulation steps using Simulation Table 1.Determine the characteristics of each of the inputs to the simulation (probability.
Modeling and Simulation
Chapter 1 What is Simulation?. Fall 2001 IMSE643 Industrial Simulation What’s Simulation? Simulation – A broad collection of methods and applications.
Introduction to Simulation What is a simulation? A system that represents or emulates the behavior of another system over time; a computer simulation is.
OPERATING SYSTEMS CS 3502 Fall 2017
Models of Traffic Flow 1.
Modeling and Simulation (An Introduction)
Modeling and Simulation CS 313
TexPoint fonts used in EMF.
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Parallel and Distributed Simulation
More Explanation of an example in chapter4
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Concepts In Discrete-Event Simulation
Discrete Event “Hand” Simulation of a GI/GI/1 Queue
Fundamental Simulation Concepts
MECH 3550 : Simulation & Visualization
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Presentation transcript:

Discrete Event Simulation

Building blocks Entities Activities Events

Discrete Event Model Changes of system state only occur at discrete points in time

Concepts in DES (1) System Model A collection of entities that interact together over time to accomplish one or more goals Model An abstract representation of a system

Concepts in DES (2) System state Entity A collection of variables that contain all information necessary to describe the system at any time Entity Any object or component in the system which requires representation in the model

Concepts in DES (3) Attribute List Event The properties of a given entity List A collection of associated entities Event An instantaneous occurrence that changes the state of a system

Concepts in DES (4) Event notice Event list A record of an event: event time stamp, event type, associated data, … Event list A list of event notices for future events. Also known as future event list (FEL)

Concepts in DES (5) Activity Delay Clock A duration of time of specified length, which is known when it begins (e.g. service time,inter-arrival time) Delay A duration of time of unspecified length, which is unknown until it ends (delay in last-in, first-out system) Clock A variable representing simulated time

Activities Represents time whose duration is defined by the modeler Deterministic Statistical A function depending on system variables or entity attributes Loading time of cargo depends on the number of items

Example:The Able Baker Carhop Problem One Queue with Two Servers Two Carhops: Able and Baker Able is faster Able gets the customer if both carhops are idle

Example Interval distribution of cars 1 min 25% 2 min 40% 3 min 20%

Example Service Distribution for Able 2 min 30% 3 min 28% 4 min 25%

Example Service Distribution for Baker 3 min 35% 4 min 25% 5 min 20%

System state Q(t): The number of cars waiting to be served at time t A(t): 0 or 1 indicate Able being idle or busy at time t B(t): 0 or 1 indicate Baker being idle or busy at time t

Entities and Attributes Server Total service time Total idle time Customers Waiting In service

Events Arrival Event Service completion by Able Service completion by Baker

Activities Inter-arrival time Service time by Able Service time by Baker

Event-scheduling/time-advance algorithm Put all the events into future event list (FEL) by time order Pick the smallest time stamped event and execute, put new event into FEL Executing the events changes the system state, attribute of entities Simulation ends when No more events

Example: Manual Simulation of Single-channel Queue A small grocery store has only one checkout counter Customers arrive randomly from 1 to 8 minutes Service time varies randomly from 1 to 6 minutes

System state Q(t) S(t) Number of customers in line Status of server: 0 1 (idle busy)

Events Arrival (A) Departure (D) Stopping event (E), scheduled to occur at time 60

Event Notices (A,t), representing an arrival event to occur at future time t (D,t), representing an departure event to occur at future time t (E,60), representing a simulation stop event to occur at future time 60

Activities and Delays Activities: Delay Inter arrival time 1 to 8 min Service time 1 to 6 min Delay Customer time spent in waiting line

Simulation Table Clock System State Entities and attributes FEL Statistics