Simulation Examples and General Principles

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

Part 3 Probabilistic Decision Models
Introduction into Simulation Basic Simulation Modeling.
Review of Probability Distributions
Lec13, Ch.6, pp : Gap acceptance and Queuing Theory (Objectives)
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),
Introduction to Simulation. What is simulation? A simulation is the imitation of the operation of a real-world system over time. It involves the generation.
Management of Waiting Lines
Agenda General guideline of simulations Discrete event simulation
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
Lecture 4 Mathematical and Statistical Models in Simulation.
Lab 01 Fundamentals SE 405 Discrete Event Simulation
Chapter 9: Queuing Models

Graduate Program in Engineering and Technology Management
Queuing Models and Capacity Planning
Introduction to Management Science
(C) 2009 J. M. Garrido1 Object Oriented Simulation with Java.
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.
Management of Waiting Lines McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 Slide © 2001 South-Western College Publishing/Thomson Learning Anderson Sweeney Williams Anderson Sweeney Williams Slides Prepared by JOHN LOUCKS QUANTITATIVE.
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.
Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.
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.
Chapter 2 – Fundamental Simulation ConceptsSlide 1 of 46 Chapter 2 Fundamental Simulation Concepts.
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Outline of Chapter 9: Using Simulation to Solve Decision Problems Real world decisions are often too complex to be analyzed effectively using influence.
شبیه سازی سیستمهای گسسته-پیشامد جری بنکس – جان کارسن ترجمه هاشم محلوجی.
Discrete Event (time) Simulation. What is a simulation? “Simulation is the process of designing a model of a real system and conducting experiments with.
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 2 Simulation Examples
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
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.
Dr. Anis Koubâa CS433 Modeling 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.
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.
Management of Waiting Lines Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent.
Queuing Models.
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
Simple Queueing Theory: Page 5.1 CPE Systems Modelling & Simulation Techniques Topic 5: Simple Queueing Theory  Queueing Models  Kendall notation.
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
WAITING LINES AND SIMULATION
Prepared by Lloyd R. Jaisingh
ETM 607 – Spreadsheet Simulations
Discrete Event Simulation
Management of Waiting Lines
Chapter 9: Queuing Models
Modeling and Simulation CS 313
SIMULATION EXAMPLES QUEUEING SYSTEMS.
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
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Presentation transcript:

Simulation Examples and General Principles Chapter 2 & 3 Simulation Examples and General Principles

Basic Steps Determine the characteristics of the inputs. Usually modeled as probability distributions Construct a simulation table. Problem specific Often consists of a set of inputs and one of more responses Repetitions Repeatedly generate a value for each input and evaluate the function.

Simulation table Repetition xi1 xi2 … Xip Yi 1 2 N

Simulation Examples and General Principles Simulation examples (chap. 2) Concrete & specific cases in various areas Example: 1 + 2 + 3 + …. + 100 = ? General principles (chap. 3) Generalized representations and concepts i, n, S

Simulation of Queuing Systems A queuing system consists of: Calling population. Often infinite: a unit leaves, there is no change in the arrival rate. Arrivals. Random. Service mechanism. A unit will be served in random length based on a probability distribution. System capacity. No limit (waiting line length) Queuing discipline. Order of service, e.g., FIFO.

Simulation of Queuing Systems

Queuing Systems Arrivals and services are defined by the probability distribution of time between arrivals and the distribution of service times, respectively. Service rate vs. arrival rate Unstable or explosive State Number of units in a system and status of server Event Stimulus that causes system state to change. Simulation clock Trace of simulation time.

Single-Channeling Queuing System What are the entities? What are the states? What are the events? When do events occur or how to model events? How do the states change when the events occur?

Single-Channeling Queuing System Service-just-completed flow diagram

Single-Channeling Queuing System Unit-entering-system flow diagram

Single-Channeling Queuing System Potential unit actions upon arrival

Single-Channeling Queuing System Server outcomes after service completion

Single-Channeling Queuing System Simulation example: Consider the following two tables represents the arrivals (interarrival) and service times in a grocery store.

Single-Channeling Queuing System service times Interarrival and clock times

Single-Channeling Queuing System Service time of the first customer is 2 and it can start at 0, thus it will finish at 2 Simulation table

Single-Channeling Queuing System Service time of the second customer is 1 and it can start at 2, thus it will finish at 3 Simulation table

Single-Channeling Queuing System Simulation table

Single-Channeling Queuing System Simulation table

Single-Channeling Queuing System Simulation table

Single-Channeling Queuing System

Single-Channeling Queuing System

Another example (single server)

Another example (single server)

Another example (single server)

Another example (single server)

Another example (single server)

Another example (single server)

Summary of Simulation Table Based Approach Basic simulation concepts: Determine the characteristics of the input data. Construct a simulation table. Generate random variables from the input models & calculate values of the response. Analyze the results. Main problem with simulation table approach: Can’t deal with complex dependencies.

Other Examples The Able Baker Carhop Problem: Two channels. Inventory Systems Simulation of an (M, N) inventory system. Reliability Problem Evaluation of alternatives Military Problem Random Normal Numbers Lead-Time Demand Histogram

Able-Baker example (two servers) Two servers queuing example

Able-Baker example (two servers)

Able-Baker example (two servers) We will start using excel to construct the simulation table for this example. (see www.bcnn.com) Usually the row for first customer is filled manually. You need a random function to provide random digits (two digits in this case) Fill in the other values based on the provided tables and these random digits (manually) Write formulas to fill in the rows (usually) starting from row 2

Able-Baker example (two servers) Simple formulas: next arrival clock time = previous arrival clock time + interarrival time C2=C1+B2 B2 value is based on the interarrival table and random digits generated A B C D E F G H I J k L

Able-Baker example (two servers) Simple formulas: When able available = max number currently in column I D2=max(I$1:I1) … D10=max(I$1:I9) A B C D E F G H I J k L

Able-Baker example (two servers) More complex formulas: Next person will be served (directly or after a wait) by Able if he arrive and finds able free or able becomes free before Baker F2=IF(OR(D2<=C2,D2<=E2),"Able","Baker") A B C D E F G H I J k L

Able-Baker example (two servers) Time service begin: to fill it for Able if he is the intended person If the server person is Able, then the service will begin at the max of either the arrival or when Able is available. Else, the service will begin by Baker at the max of the customer arrival time and Baker being available H2=IF(F2="Able",MAX(D2,C2),MAX(E2,C2)) A B C D E F G H I J k L

Able-Baker example (two servers) The time service is completed by Able If Able is the person serving, then it will be after service time begin plus service time. Else, it will be Blank I2=IF($F2="Able",$H2+$G2,"") A B C D E F G H I J k L

Able-Baker example (two servers)

Able-Baker example (two servers) In addition to the performance measures we usually compute, the a frequency diagram like the following is an important measure.