Queueing Models: Data Collection and Hand Simulation from Prof. Goldsman’s lecture notes.

Slides:



Advertisements
Similar presentations
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. A PowerPoint Presentation Package to Accompany Applied Statistics.
Advertisements

Introduction into Simulation Basic Simulation Modeling.
Table of Contents Chapter 12 (Computer Simulation: Basic Concepts)
Chapter 3 General Principles
Modeling & Simulation. System Models and Simulation Framework for Modeling and Simulation The framework defines the entities and their Relationships that.
Chapter Queueing Notation
Lab Assignment 1 COP 4600: Operating Systems Principles Dr. Sumi Helal Professor Computer & Information Science & Engineering Department University of.
Lecture 3 Concepts of Discrete-Event Simulation. 2 Discrete Event Model  In the discrete approach to system simulation, state changes in the physical.
Event-drive SimulationCS-2303, C-Term Project #3 – Event-driven Simulation CS-2303 System Programming Concepts (Slides include materials from The.
Classification of Simulation Models
DISCRETE-EVENT SIMULATION CONCEPTS and EVENT SCHEDULING ALGORITHM
Probability Distributions Finite Random Variables.
Components and Organization of Discrete-event Simulation Model
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
Simulation.
Queuing and Transportation
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),
Data Communication and Networks Lecture 13 Performance December 9, 2004 Joseph Conron Computer Science Department New York University
Simulating Single server queuing models. Consider the following sequence of activities that each customer undergoes: 1.Customer arrives 2.Customer waits.
Queueing and Hand Simulation (Project 03). Queueing Models Probabilistic and stochastic models Important aspects: –Interarrival time –Service time –Waiting.
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
Model Calibration and Model Validation
 1  Outline  simulating GI/G/1 queues  M/M/1 queues  theoretical results of queueing systems  an inventory system  simulation program with an event.
Queuing Theory (Waiting Line Models)
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:
State Machine Diagram Chapter 10. State Machine Diagram Used to describe system behavior.
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.
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.
 1  Outline  stages and topics in simulation  generation of random variates.
Verification & Validation
General Simulation Principles
WOOD 492 MODELLING FOR DECISION SUPPORT Lecture 27 Simulation.
0 K. Salah 2. Review of Probability and Statistics Refs: Law & Kelton, Chapter 4.
Structure of a Waiting Line System Queuing theory is the study of waiting lines Four characteristics of a queuing system: –The manner in which customers.
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.
IE 429, Parisay, January 2010 What you need to know from Probability and Statistics: Experiment outcome: constant, random variable Random variable: discrete,
Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.
Chapter 2 – Fundamental Simulation ConceptsSlide 1 of 46 Chapter 2 Fundamental Simulation Concepts.
CSC 205 Programming II Lecture 22 Carwash Simulation.
NETW 707 Modeling and Simulation Amr El Mougy Maggie Mashaly.
WOOD 492 MODELLING FOR DECISION SUPPORT Lecture 25 Simulation.
1 Simulation Implementation Using high-level languages.
Chapter 2 Fundamental Simulation Concepts
Reid & Sanders, Operations Management © Wiley 2002 Simulation Analysis D SUPPLEMENT.
MODELING EXAMPLES Types of model Conceptual Containing components that have not been clearly Identified in terms of theoretic categories such as state,
Network Protocol Simulation: A look at Discrete Event Simulation Grant D. Lanterman 5/21/2004.
Simulation Chapter 16 of Quantitative Methods for Business, by Anderson, Sweeney and Williams Read sections 16.1, 16.2, 16.3, 16.4, and Appendix 16.1.
(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.
Simulation in Healthcare Ozcan: Chapter 15 ISE 491 Fall 2009 Dr. Burtner.
Chapter 10 Understanding Randomness. Why Be Random? What is it about chance outcomes being random that makes random selection seem fair? Two things: –
Advantages of simulation 1. New policies, operating procedures, information flows and son on can be explored without disrupting ongoing operation of the.
EVOLUTION OF INDUSTRIAL ENGINEERING Prof. Dr. Orhan TORKUL Res. Asst. M. Raşit CESUR Res. Asst. Furkan YENER.
 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,
Unit 4 Simulation software. Introduction Software used to develop simulation models can be divided into 3 categories: – General-purpose programming languages:
Simulation Examples And General Principles Part 2
Simulation. Types of simulation Discrete-event simulation – Used for modeling of a system as it evolves over time by a representation in which the state.
Building Valid, Credible & Appropriately Detailed Simulation Models
Modeling and Simulation
Prepared by Lloyd R. Jaisingh
Modeling and Simulation (An Introduction)
Discrete Event Simulation
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:

Queueing Models: Data Collection and Hand Simulation from Prof. Goldsman’s lecture notes

Outline Queueing Models Data Collection Hand Simulation

Queueing Models Probabilistic and stochastic models Important aspects: Interarrival time Service time Waiting time Mathematics not reality! Several assumptions: Arrival process, service process Queue size and discipline Time horizon Calling population

Queueing Models (Cont ’ d) M/M/1, M/M/n, M/G/1, etc Use theoretical model to estimate the behavior of a real system (this is only an approximation!) Queues are a model archetype Queue system entities: Flow unit QueueServer Where each entity has its own state space and transitions

Hand Simulation

Time-Flow Mechanism Time-step incrementation Stepping through time in equal (e.g. 1 hour) increment Event-step incrementation Calls for a simulation to proceed from one event to the next Incremental time steps are uneven Simulation begins at time zero Occurrence times of the events resulting from the simulated performance of all system components are determined Master clock is updated to the time of the earliest event occurrence Commonly used

Concepts (Pseudo-) Random number generator Most generator uses U[0, 1] Steady state Variability of runs

How to simulate? State variables: describe state of system, give a “ system snapshot ” Event: anything that can change the state of the system FEL (Future Event List) Clock Keep all these and any desired cumulative statistics in a simulation table

Clock and Socks Example I have n pairs of socks in my dryer. I remove socks one at a time and place them on top of the dryer. When I get a matching pair, I fold them and place them in my laundry basket How much room do I need on top of my dryer?

Example (Cont ’ d) Assume n pairs distinct socks Notation: L i, R i, i = 1, …, n: the two socks Assume: Move a sock from dryer: 1 sec Check for match and fold: 2 sec

Example (Cont ’ d) State variables: For each i = 1, …, n, L i and R i D: if in dryer T: if on top of the dryer DT: if being moved to dryer top B: if in basket The values of the variables L i and R i (together with the clock time t) provide a complete system snapshot

Example (Cont ’ d) Initial Snapshot L i = R i = D for all i = 1, …, n t = 0 Extra state variable: #D = #socks in dryer #D = 2n initially #T = # socks on dryer top #T = 0 initially

Example (Cont ’ d) Event types Grab: A sock leaves the dryer State changes from D to DT #D decreases Arrive top: A sock arrives at the dryer top State changes from DT to T Fold: A pair of socks is matched, folded, and put in basket Both socks: state changes from T to B

Example (Cont ’ d) Activities A time interval which triggers an eventA time interval which triggers an event Moving sock from dryer to topMoving sock from dryer to top Checking for a matchChecking for a match

Simulation Assume we have 2 pairs t = 0- (start up) State: L1 = D R1 = D L2 = D R2 = D #D = 4 #T = 0 t = 0, grab a sock from dryer Random integer for socks

Verification and Validation Verify: Building the model right Valid: Building the right model

Game Time! Hand Simulation: NISP ATM Simulation Assumption: 1 ATM Machine Flip two coins (Arrival and Service Times): 1 st Coin: Head  0 customer enters the NISP ATM Tail  1 customer enters the NISP ATM 2 nd Coin: Head  service time 10 minutes Tail  service time 5 minutes