Simulation Examples And General Principles Part 2

Slides:



Advertisements
Similar presentations
Based on Law & Kelton, Simulation Modeling & Analysis, McGraw-Hill
Advertisements

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
Lecture 3 Concepts of Discrete-Event Simulation. 2 Discrete Event Model  In the discrete approach to system simulation, state changes in the physical.
1 6.3 Binary Heap - Other Heap Operations There is no way to find any particular key without a linear scan through the entire heap. However, if we know.
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.
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
Basic Simulation Modeling II
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:
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
Simulation Examples ~ By Hand ~ Using Excel
1 Performance Evaluation of Computer Networks: Part II Objectives r Simulation Modeling r Classification of Simulation Modeling r Discrete-Event Simulation.
General Simulation Principles
Modeling & Simulation: An Introduction Some slides in this presentation have been copyrighted to Dr. Amr Elmougy.
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.
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
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.
Data Structures Using C++ 2E Chapter 8 Queues. Data Structures Using C++ 2E2 Objectives Learn about queues Examine various queue operations Learn how.
+ 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.
SIMULATION OF A SINGLE-SERVER QUEUEING SYSTEM
NETW 707 Modeling and Simulation Amr El Mougy Maggie Mashaly.
1 Simulation Implementation Using high-level languages.
Chapter 2 Fundamental Simulation Concepts
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,
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
Basic Simulation Modeling Qianlan Dong Simulation Modeling and Analysis – Chapter 1 – Basic Simulation ModelingSlide 1 of 51.
Network Protocol Simulation: A look at Discrete Event Simulation Grant D. Lanterman 5/21/2004.
Discrete Event 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.
Advantages of simulation 1. New policies, operating procedures, information flows and son on can be explored without disrupting ongoing operation of the.
Chapter 2 Basic Simulation Modeling
 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.
Introduction The objective of simulation – Analysis the system (Model) Analytically the model – a description of some system intended to predict the behavior.
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.
Discrete-Event System Simulation in Java. Discrete Event Systems New dynamic systems New dynamic systems Computer and communication networks Computer.
Modeling and Simulation
Chapter 1 What is Simulation?. Fall 2001 IMSE643 Industrial Simulation What’s Simulation? Simulation – A broad collection of methods and applications.
Data Structures Using C++ 2E
Modeling and Simulation (An Introduction)
Discrete Event Simulation
Modeling and Simulation CS 313
Basic Simulation Modeling II
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
Chapter 4: Simulation Designs
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Presentation transcript:

Simulation Examples And General Principles Part 2 Chapter 2 & 3 Simulation Examples And General Principles Part 2

General Principles in Discrete-Event Simulation Goal: Dynamic & stochastic systems change in discrete manner. Definitions: System A collection of entities (people and machines..) that interact together over time for one or more goals Model An abstract representation of a system, usually containing structural, logical or mathematical relationship that describe a system in term of state, entities and their attributes , sets, processes,… System state A collection of variables in any time that describe the system

General Principles in Discrete-Event Simulation Entity Any object or component in system that require explicit representation (server, customer,...) Attributes The properties of a given customer List A collection of associated entities , ordered in some logical fashion (FIFO, priority,…) Event An instantaneous occurrence that changes the state of a system Event Notice A record of a event to occur at the current or future time (type and time)

General Principles in Discrete-Event Simulation Event List FEL (future event list) Activity (unconditional wait) A duration time of specified length (service time or interarrival time,… ) Deterministic, Statistical and functional Delay (conditional wait) A duration of time of unspecified indefinite length, which is not known until it ends (customer delay in waiting line) Clock A variable representing simulated time

Example (Able and Baker) What are the simulation components? System state Entities Events Activities Delay Components are static. Need also to model system dynamics – relationships & interactions between components. How does an event affect/trigger other system components? How are activities defined? What are the initial and termination system states?

Example (Able and Baker)

Simulation Process A sequence of system snapshots representing the evolution of the system through time. A snapshot at a given time includes: System state List of activities and status of components when each activity ends. Cumulative statistics.

Event Scheduling / Time Advance Algorithm The sequence of actions which a simulator must perform to advance the clock and build a new system snapshot. Future event list (FEL): a key element Contains all event notices for events that have been scheduled to occur at a future time. Advances simulation time and guarantees that all events occur in correct order. What does scheduling a future event mean?

Event Scheduling The essential idea: move along the time scale until an event occurs and then, depending on the event, modify the system state and possibly schedule new events. Based on this, it is a trivial exercise to run through a simulation of the system. The events are stored in an event queue, which lists all events in order. The first event in the queue is taken off, and other events may then be added (assuming that an event only triggers other events in the future).

Event Scheduling cont’d Arrival Event: 1. Check the status of the server(s) (idle or busy) If there is an idle server Update idle status; Start serving the customer. Generate a new departure event at t + s* for this customer. If all busy, place customer in queue & update LQ(t) 2. Generate new arrival event t + a* for next customer. 3. Collect stats; Return control to time-advance routine

Simple diagram

Detailed diagram

Event Scheduling cont’d Departure Event 1. Check queue (empty or not) If empty, set server to idle. If not empty then do Choose a waiting customer, start serving the customer Generate a new departure event at time t + s* for this customer 2. Collect stats; Return control to time-advance routine

Simple diagram

Detailed diagram

Single server example using event scheduling

Dump-Truck example using event scheduling

Components, assumptions ad objectives System contains Six trucks Two loaders One scale Assumptions FCFS waiting lines for loading and scaling Travel time from loading to scaling negligible After scaling, the truck start traveling time during which it will unload all its loads Purpose: estimate loaders and scale utilization

Simulation starts with one truck at the scale and the others loading (i.e. two loading and 3 waiting to load) Generated times for loading, weighting, and traveling are:

Simulation can be simplified by not considering the trucks in the event notices. i.e. (EL, t, DTi) can be simplified to (EL, t) However, for other objectives rather than computing the loaders and the scale utilization, like computing the system response time, this details is required. System response time: how long the truck spends from the time of arrival at loading until it leaves scaling.