Lecture 4 Mathematical and Statistical Models in Simulation.

Slides:



Advertisements
Similar presentations
Introduction into Simulation Basic Simulation Modeling.
Advertisements

Exponential and Poisson Chapter 5 Material. 2 Poisson Distribution [Discrete] Poisson distribution describes many random processes quite well and is mathematically.
Many useful applications, especially in queueing systems, inventory management, and reliability analysis. A connection between discrete time Markov chains.
IE 429, Parisay, January 2003 Review of Probability and Statistics: Experiment outcome: constant, random variable Random variable: discrete, continuous.
Modeling & Simulation. System Models and Simulation Framework for Modeling and Simulation The framework defines the entities and their Relationships that.
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.
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.
Simulation of multiple server queuing systems
Computer Systems Modelling Sam Haines Clare College, University of Cambridge 1 st March 2015.
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/10/20151.
#11 QUEUEING THEORY Systems Fall 2000 Instructor: Peter M. Hahn
Simulation with ArenaChapter 2 – Fundamental Simulation Concepts Discrete Event “Hand” Simulation of a GI/GI/1 Queue.
1 Queuing Theory 2 Queuing theory is the study of waiting in lines or queues. Server Pool of potential customers Rear of queue Front of queue Line (or.
Queueing Theory: Part I
To accompany Quantitative Analysis for Management, 8e by Render/Stair/Hanna 14-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 14.
SIMULATION EXAMPLES. SELECTED SIMULATION EXAMPLES 4 Queuing systems (Dynamic System) 4 Inventory systems (Dynamic and Static) 4 Monte-Carlo simulation.
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),
Simulating Single server queuing models. Consider the following sequence of activities that each customer undergoes: 1.Customer arrives 2.Customer waits.
Probability theory 2011 Outline of lecture 7 The Poisson process  Definitions  Restarted Poisson processes  Conditioning in Poisson processes  Thinning.
Queuing. Elements of Waiting Lines  Population –Source of customers Infinite or finite.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
Queuing Theory. Queuing theory is the study of waiting in lines or queues. Server Pool of potential customers Rear of queue Front of queue Line (or queue)
Internet Queuing Delay Introduction How many packets in the queue? How long a packet takes to go through?

Graduate Program in Engineering and Technology Management
Queuing Theory (Waiting Line Models)
Exponential Distribution & Poisson Process
1 Exponential Distribution & Poisson Process Memorylessness & other exponential distribution properties; Poisson process and compound P.P.’s.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Discrete Random Variables Chapter 4.
The Poisson Process. A stochastic process { N ( t ), t ≥ 0} is said to be a counting process if N ( t ) represents the total number of “events” that occur.
Exponential and Chi-Square Random Variables
General Simulation Principles
Waiting Line and Queuing Theory Kusdhianto Setiawan Gadjah Mada University.
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.
1 Queuing Models Dr. Mahmoud Alrefaei 2 Introduction Each one of us has spent a great deal of time waiting in lines. One example in the Cafeteria. Other.
TexPoint fonts used in EMF.
Waiting Lines and Queuing Models. Queuing Theory  The study of the behavior of waiting lines Importance to business There is a tradeoff between faster.
Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 5 Discrete Random Variables.
NETW 707 Modeling and Simulation Amr El Mougy Maggie Mashaly.
WOOD 492 MODELLING FOR DECISION SUPPORT Lecture 25 Simulation.
MODELING EXAMPLES Types of model Conceptual Containing components that have not been clearly Identified in terms of theoretic categories such as state,
Chapter 20 Queuing Theory to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole,
Winter 2004EE384x1 Poisson Process Review Session 2 EE384X.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
4.3 More Discrete Probability Distributions NOTES Coach Bridges.
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.
(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.
1 1 Slide Chapter 12 Waiting Line Models n The Structure of a Waiting Line System n Queuing Systems n Queuing System Input Characteristics n Queuing System.
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.
 Recall your experience when you take an elevator.  Think about usually how long it takes for the elevator to arrive.  Most likely, the experience.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 5 Discrete Random Variables.
Random Variables r Random variables define a real valued function over a sample space. r The value of a random variable is determined by the outcome of.
Mohammad Khalily Islamic Azad University.  Usually buffer size is finite  Interarrival time and service times are independent  State of the system.
MODELING AND SIMULATION CS 313 Simulation Examples 1.
Simulation of single server queuing systems
1 Ardavan Asef-Vaziri Jan.-2016Basics Probability Distributions- Uniform.
Modeling and Simulation
Module D Waiting Line Models.
Exponential Distribution & Poisson Process
Models of Traffic Flow 1.
Pertemuan ke-7 s/d ke-10 (minggu ke-4 dan ke-5)
Modeling and Simulation CS 313
Internet Queuing Delay Introduction
Internet Queuing Delay Introduction
Discrete Event “Hand” Simulation of a GI/GI/1 Queue
Waiting Line Models Waiting takes place in virtually every productive process or service. Since the time spent by people and things waiting in line is.
Presentation transcript:

Lecture 4 Mathematical and Statistical Models in Simulation

2 Queueing Models  Simulation is often used in the analysis of queueing models.  Typical measures of system performance include server utilization (percentage of time server is busy), length of waiting lines, and delays of customers.  Decision maker is involved in trade-offs between server utilization and customer satisfaction in terms of line lengths and delays.  Simulation is often used in the analysis of queueing models.  Typical measures of system performance include server utilization (percentage of time server is busy), length of waiting lines, and delays of customers.  Decision maker is involved in trade-offs between server utilization and customer satisfaction in terms of line lengths and delays. Calling populationWaiting lineServer

3  In a single-channel queueing system there are only two possible events that can affect the state of the system.  The entry of a unit into the system or the completion of service on a unit  The server has only two possible states:  it is either busy or idle  In a single-channel queueing system there are only two possible events that can affect the state of the system.  The entry of a unit into the system or the completion of service on a unit  The server has only two possible states:  it is either busy or idle Flow Diagram Departure event Being server idle time Remove the waiting unit from the queue Being servicing the unit Another unit waiting ? NO YES

4 Example 2.1  Single-channel queue serves customers on a first-in, first-out (FIFO) basis Customer Number Arrival Time (Clock) Time Service Begins (Clock) Service Time (Duration) Time Service Ends (Clock) Table 2.4. Simulation Table Emphasizing Clock Times

5 Chronological Order  The occurrence of the two types of events Event TypeCustomer NumberClock Time Arrival10 Departure12 Arrival22 Departure23 Arrival36 47 Departure39 Arrival59 Departure411 Departure512 Arrival615 Departure619 Table 2.5. Chronological Ordering of Events

6 Chronological Ordering (cont’)  Number in system at time t Number of customers in the system

7Terminology  mean arrival rate (number of calling units per unit of time)   mean service rate of one server (number of calling units served per unit of time)  1/  mean service time for a calling unit  snumber of parallel service facilities in the system  L q mean length of the queue  Lmean number in the system (those in queue + being served)  W q mean time spent waiting in the queue  Wmean time spent in the system (W q + 1/  )   server utilization factor  mean arrival rate (number of calling units per unit of time)   mean service rate of one server (number of calling units served per unit of time)  1/  mean service time for a calling unit  snumber of parallel service facilities in the system  L q mean length of the queue  Lmean number in the system (those in queue + being served)  W q mean time spent waiting in the queue  Wmean time spent in the system (W q + 1/  )   server utilization factor

8 Statistical Models in Simulation  Discrete Distribution – Poisson ( ) estimate “number of arrivals per unit time” where P(x) = the probability of X successes given a knowledge of = expected number of successes e = mathematical constant approximated by x = number of successes per unit  Discrete Distribution – Poisson ( ) estimate “number of arrivals per unit time” where P(x) = the probability of X successes given a knowledge of = expected number of successes e = mathematical constant approximated by x = number of successes per unit

9 Poisson Distribution  Def: N(t) is a Possion process if  Arrivals occurs individually (at rate )  N(t) has stationary increments: The distribution of the numbers of arrivals between t and t+s depends on the length of the interval s and not on the starting point t.  N(t) has independent increments: The numbers of arrivals during nonoverlapping time intervals (t, t+s) and (t’, t’+s’) are independent random variables.  Def: N(t) is a Possion process if  Arrivals occurs individually (at rate )  N(t) has stationary increments: The distribution of the numbers of arrivals between t and t+s depends on the length of the interval s and not on the starting point t.  N(t) has independent increments: The numbers of arrivals during nonoverlapping time intervals (t, t+s) and (t’, t’+s’) are independent random variables.

10 Uniform Distribution  Continuous Distribution – Uniform distribution A random variable x is uniformly distributed on the interval (a, b):  Continuous Distribution – Uniform distribution A random variable x is uniformly distributed on the interval (a, b):

11 Uniform Distribution (cont’)  The uniform distribution plays a vital role in simulation. Random numbers, uniformly distribution between zero to 1, provide the means to generate random events.

12 Exponential Distribution  Continuous Distribution – Exponential distribution has been used to model interarrival times when arrivals are completely random and to model service times which are highly variable. A random variable x is exponentially distributed with parameter >0:  Continuous Distribution – Exponential distribution has been used to model interarrival times when arrivals are completely random and to model service times which are highly variable. A random variable x is exponentially distributed with parameter >0:

13Memoryless  Memoryless

14 Example of Memoryless  Suppose that the life of an industrial lamp, in thousands of hours, is exponentially distributed with failure rate =1/3 (one failure every 3000 hours, on the average). Find the probability that the industrial lamp will last for another 1000 hours, given that it is operating after 2500 hours.