Chapter 2 Simulation Examples. Simulation steps using Simulation Table 1.Determine the characteristics of each of the inputs to the simulation (probability.

Slides:



Advertisements
Similar presentations
Waiting Line Management
Advertisements

Introduction into Simulation Basic Simulation Modeling.
LESSONs NINE and TEN QUEUING MODELS.
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 13 – Continuous-Time Markov Chains
Simulation of multiple server queuing systems
Queuing Systems Chapter 17.
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
Simulation with ArenaChapter 2 – Fundamental Simulation Concepts Discrete Event “Hand” Simulation of a GI/GI/1 Queue.
SIMULATION EXAMPLES. SELECTED SIMULATION EXAMPLES 4 Queuing systems (Dynamic System) 4 Inventory systems (Dynamic and Static) 4 Monte-Carlo simulation.
Management of Waiting Lines
Agenda General guideline of simulations Discrete event simulation
Simulating Single server queuing models. Consider the following sequence of activities that each customer undergoes: 1.Customer arrives 2.Customer waits.
Module C10 Simulation of Inventory/Queuing Models.
Queuing. Elements of Waiting Lines  Population –Source of customers Infinite or finite.
Simulation Examples Continued
HW # Due Day: Nov 23.
Lecture 4 Mathematical and Statistical Models in Simulation.
Lab 01 Fundamentals SE 405 Discrete Event Simulation

 1  Outline  simulating GI/G/1 queues  M/M/1 queues  theoretical results of queueing systems  an inventory system  simulation program with an event.
Graduate Program in Engineering and Technology Management
___________________________________________________________________________ Operations Research  Jan Fábry Waiting Line Models.
Spreadsheet Modeling & Decision Analysis
Introduction to Management Science
Simulation Examples ~ By Hand ~ Using Excel
Waiting Line Models ___________________________________________________________________________ Quantitative Methods of Management  Jan Fábry.
Queueing Theory [Bose] “The basic phenomenon of queueing arises whenever a shared facility needs to be accessed for service by a large number of jobs or.
Introduction to Queuing Theory
Management of Waiting Lines McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
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.
Waiting Lines and Queuing Models. Queuing Theory  The study of the behavior of waiting lines Importance to business There is a tradeoff between faster.
Example simulation execution The Able Bakers Carhops Problem There are situation where there are more than one service channel. Consider a drive-in restaurant.
CS433 Modeling and Simulation Lecture 12 Queueing Theory Dr. Anis Koubâa 03 May 2008 Al-Imam Mohammad Ibn Saud University.
شبیه سازی سیستمهای گسسته-پیشامد جری بنکس – جان کارسن ترجمه هاشم محلوجی.
SIMULATION OF A SINGLE-SERVER QUEUEING SYSTEM
Simulation Examples and General Principles
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.
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
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.
CS 450 – Modeling and Simulation Dr. X. Topics System Analysis Arrival process The Queue The Server The simulation.
SIMULATION EXAMPLES. Monte-Carlo (Static) Simulation Estimating profit on a sale promotion Estimating profit on a sale promotion Estimating profit on.
 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,
Management of Waiting Lines Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent.
MODELING AND SIMULATION CS 313 Simulation Examples 1.
Simulation Examples And General Principles Part 2
Simple Queueing Theory: Page 5.1 CPE Systems Modelling & Simulation Techniques Topic 5: Simple Queueing Theory  Queueing Models  Kendall notation.
Queuing Theory Simulation & Modeling.
Queueing Theory/Waiting Line: Models and Analysis Navneet Vidyarthi
Simulation of single server queuing systems
Modeling and Simulation
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 18 Management of Waiting Lines.
Simulation of Inventory Systems
ETM 607 – Spreadsheet Simulations
Discrete Event Simulation
Management of Waiting Lines
Modeling and Simulation CS 313
Queuing Systems Don Sutton.
More Explanation of an example in chapter4
Concepts In Discrete-Event Simulation
Discrete Event “Hand” Simulation of a GI/GI/1 Queue
Queueing Theory 2008.
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:

Chapter 2 Simulation Examples

Simulation steps using Simulation Table 1.Determine the characteristics of each of the inputs to the simulation (probability distributions). 2.Construct a simulation table (repetition 1). 3.For each repetition i, generate a value for the inputs, and evaluate function, calculating a value of response yi.

Simulation Table

Simulation of Queuing System (Details in chapter 6) Simple single server queuing system

Single server queue Calling population is infinite-Arrival rate does not change Units are served according FIFO Arrivals are defined by the distribution of the time between arrivals - inter-arrival time Service times are according to distribution Arrival rate must be less than service rate- stable system

Queueing system state –System Server Units (in queue or being served) Clock –State of the system Number of units in the system Status of server (idle, busy) –Events Arrival of a unit Departure of a unit

Arrival Event If server idle customer gets service, otherwise customer enters queue. Unit actions upon arrival

Departure Event If queue is not empty begin servicing next unit, otherwise server will be idle. Server Outcomes after departure

Grocery Store Example(Ex 2.1)

Producing Random Numbers from Random Digits Select randomly a number, e.g One digit: Two digits: Three digits: Proceed in a systematic direction, e.g. - first down then right - first up then left

Example1: A Grocery Store

Average waiting time Probability that a customer has to wait Proportion of server idle time Average service time

Average time between arrivals Average waiting time of those who wait Average time a customer spends in system

Example 2: Call Center Problem Consider a Call Center where technical personnel take calls and provide service Two technical support people (2 server) exists – Able – more experienced, provides service faster – Baker – newbie, provides service slower Rule – Able gets call if both people are idle Find out how well the current arrangement works

Simulation proceeds as follows Step 1: –For Caller k, generate an interarrival time Ak. Add it to the previous arrival time Tk-1 to get arrival time of Caller k as Tk = Tk-1 + Ak Step 2: – If Able is idle, Caller k begins service with Able at the current time Tnow – Able‘s service completion time Tfin,A is given by Tfin,A= Tnow+ Tsvc,A where Tsvc,A is the service time generated from Able‘s service time distribution. Caller k’s waiting time is Twait = 0. – Caller k‘s time in system, Tsys, is given by Tsys = Tfin,A – Tk – If Able is busy and Baker is idle, Caller begins with Baker. The remainder is in analogous. Step 3: – If Able and Baker are both busy, then calculate the time at which the first one becomes available, as follows: Tbeg = min(Tfin,A, Tfin,B) – Caller k begins service at Tbeg. When service for Caller k begins, set Tnow = Tbeg. – Compute Tfin,A or Tfin,B as in Step 2. – Caller k’s time in system is Tsys = Tfin,A – Tk or Tsys = Tfin,B - Tk

Example 3: Inventory System Important class of simulation problems: inventory systems A simple inventory system with  Lead time=0  order quantities are probabilistic  Demand is uniform over the time period Parameters – N Review period length – M Standard inventory level – Qi Quantity of order i

To avoid shortages, a buffer stock is needed Cost of stock  Interest on funds  Storage space  Guards Alternative: To make more frequent reviews  Ordering cost  Cost in being short Performance measure: Total cost (or total profit) Events in an (M, N) inventory system are – Demand for items – Review of the inventory position – Receipt of an order at the end of each review

Example 2.3 Newspaper sellers Problem