Chapter 2. Simulation Examples 2.1. Prof. Dr. Mesut Güneş Ch. 2 Simulation Examples



Similar documents
2 Simulation Examples

Chapter 3 General Principles in Simulation

1: B asic S imu lati on Modeling

Waiting Times Chapter 7

Discrete-Event Simulation

Performance Analysis of a Telephone System with both Patient and Impatient Customers

Computer Science, Informatik 4 Communication and Distributed Systems. Simulation. Discrete-Event System Simulation. Dr.

Basic Queuing Relationships

Queuing Theory. Long Term Averages. Assumptions. Interesting Values. Queuing Model

Simple Queuing Theory Tools You Can Use in Healthcare

Modeling Stochastic Inventory Policy with Simulation

TEACHING SIMULATION WITH SPREADSHEETS

IST 301. Class Exercise: Simulating Business Processes

Arena Tutorial 1. Installation STUDENT 2. Overall Features of Arena

Arena 9.0 Basic Modules based on Arena Online Help

Chapter 5. Process design

Process simulation. Enn Õunapuu

Simulation Software 1

ANALYSIS OF THE QUALITY OF SERVICES FOR CHECKOUT OPERATION IN ICA SUPERMARKET USING QUEUING THEORY. Azmat Nafees Liwen Liang. M. Sc.

Deployment of express checkout lines at supermarkets

CALL CENTER PERFORMANCE EVALUATION USING QUEUEING NETWORK AND SIMULATION

Veri cation and Validation of Simulation Models

INTEGRATED OPTIMIZATION OF SAFETY STOCK

Pull versus Push Mechanism in Large Distributed Networks: Closed Form Results

How To Model A System

Manufacturing Systems Modeling and Analysis

NEW MODELS FOR PRODUCTION SIMULATION AND VALIDATION USING ARENA SOFTWARE

System Simulation - Modeling and Analysis

Web Server Software Architectures

Jump-Start Tutorial For ProcessModel

Simulation of DNS(Domain Name System) Using SimLib

Incorporating Peak Spreading into a WebTAG Based Demand Model

QNAT. A Graphical Queuing Network Analysis Tool for General Open and Closed Queuing Networks. Sanjay K. Bose

UNIT 2 QUEUING THEORY

COMPARATIVE ANALYSIS OF DIFFERENT QUEUING MECHANISMS IN HETROGENEOUS NETWORKS

Load Balancing and Switch Scheduling

Minimize Wait Time and Improve the Waiting Experience

Factors to Describe Job Shop Scheduling Problem

Discrete-Event Simulation

LCMON Network Traffic Analysis

1. Repetition probability theory and transforms

4 The M/M/1 queue. 4.1 Time-dependent behaviour

Real-Time Component Software. slide credits: H. Kopetz, P. Puschner

Systems Modelling and Simulation (Lab session 3)

Queuing Theory II 2006 Samuel L. Baker

Chapter 8 Detailed Modeling

Modeling Detailed Operations

-SQA- SCOTTISH QUALIFICATIONS AUTHORITY HIGHER NATIONAL UNIT SPECIFICATION GENERAL INFORMATION

Simulation - A powerful technique to improve Quality and Productivity

Inventory Management

Quality of Service versus Fairness. Inelastic Applications. QoS Analogy: Surface Mail. How to Provide QoS?

SCM. Logistics, Service, and Operations Management

A Comparative Performance Analysis of Load Balancing Algorithms in Distributed System using Qualitative Parameters

D Lab: Supply Chains

Basic Multiplexing models. Computer Networks - Vassilis Tsaoussidis

Smart Queue Scheduling for QoS Spring 2001 Final Report

Wildix W04FXO Whitepaper

Simulation of Call Center With.

PFS scheme for forcing better service in best effort IP network

I/O Management. General Computer Architecture. Goals for I/O. Levels of I/O. Naming. I/O Management. COMP755 Advanced Operating Systems 1

Scheduling Allowance Adaptability in Load Balancing technique for Distributed Systems

Chapter 13 Waiting Lines and Queuing Theory Models - Dr. Samir Safi

6.6 Scheduling and Policing Mechanisms

UNIT 6 WAITING LINES/ QUEUING THEORY. Characteristics of waiting line systems Measuring the Queue s performance Suggestions for Managing Queues

Research Article Average Bandwidth Allocation Model of WFQ

Quantitative Analysis of Cloud-based Streaming Services

Scheduling Aperiodic and Sporadic Jobs in Priority- Driven Systems

APOTEk. Pharmacy Management System (PMS) Introduction. APOTEk Modules

Chapter 9 Monté Carlo Simulation

Scheduling Policies, Batch Sizes, and Manufacturing Lead Times

MEASURING WORKLOAD PERFORMANCE IS THE INFRASTRUCTURE A PROBLEM?

Performance Modeling and Analysis of a Database Server with Write-Heavy Workload

RASHED ET AL: A COMPARATIVE STUDY OF DIFFERENT QUEUING TECHNIQUES IN VOIP, VIDEO CONFERENCING AND. Fig. 1 Network Architecture for FIFO, PQ and WFQ

Network Protocol Design and Evaluation

Modeling and Simulation of Queuing Scheduling Disciplines on Packet Delivery for Next Generation Internet Streaming Applications

TEST 2 STUDY GUIDE. 1. Consider the data shown below.

Accounting 1. Lesson Plan. Topic: Accounting for Inventory Unit: 4 Chapter 23

MTAT Business Process Management (BPM) Lecture 6 Quantitative Process Analysis (Queuing & Simulation)

Operations and Supply Chain Simulation with AnyLogic 7.2

VegaStream Information Note QOS Statistics

Capacity Allocation and Contention Resolution in a Photonic Slot Routing All-Optical WDM Mesh Network

LECTURE - 1 INTRODUCTION TO QUEUING SYSTEM

Justifying Simulation. Why use simulation? Accurate Depiction of Reality. Insightful system evaluations

Universidad del Turabo MANA 705 DL Workshop Eight W8_8_3 Aggregate Planning, Material Requirement Planning, and Capacity Planning

1. The subnet must prevent additional packets from entering the congested region until those already present can be processed.

Predictable response times in event-driven real-time systems

Cloud Management: Knowing is Half The Battle

Determining Inventory Levels in a CONWIP Controlled Job Shop

Reduce Costs and Improve Materials Management with Mobile Technology

Warehouse R x Inventory Management Software. Technical Overview

Introduction. Continue to Step 1: Creating a Process Simulator Model. Goal: 40 units/week of new component. Process Simulator Tutorial

Fluid Approximation of a Priority Call Center With Time-Varying Arrivals

Operating System Tutorial

Real Time Scheduling Basic Concepts. Radek Pelánek

How To Manage A Call Center

Customer Success Stories

WA Manager Alarming System Management Software Windows 98, NT, XP, 2000 User Guide

Transcription:

Chapter 2 Simulation Examples 2.1

Contents Simulation using Tables Simulation of Queueing Systems Examples A Grocery Call Center Inventory System Appendix: Random Digits 1.2

Simulation using Tables 1.3

Simulation using a Table Introducing simulation by manually simulating on a table Can be done via pen-and-paper or by using a spreadsheet Repetition i Inputs x i1 x i2 x ij x ip Response y i Static meta data 1 2... Dynamic data during simulation run n 1.4

Simulation using a Table Three steps 1. Determine the characteristics of each input to the simulation. 2. Construct a simulation table consisting of p inputs x ij, j=1,2,,p one response y i, i=1,2,,n 3. For each repetition i, generate a value for each of the p inputs x ij and calculate the response y i. Repetition i 1 2... n Inputs x i1 x i2 x ij x ip Response y i 1.5

Simulation of Queueing Systems 1.6

Simulation of Queueing Systems: Why? 1.7

Simulation of Queueing Systems: Why? 1.8

Simulation of Queueing Systems A queueing system is described by Calling population Arrival rate Service mechanism System capacity Queueing discipline Calling population Waiting line Server 1.9

Simulation of Queueing Systems 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 a distribution Arrival rate must be less than service rate Æ stable system Otherwise waiting line will grow unbounded Æ unstable 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 Calling population t i+1 t i Arrivals Waiting line Server 1.10

Simulation of Queueing Systems Arrival Event If server idle unit gets service, otherwise unit enters queue. Departure Event If queue is not empty begin servicing next unit, otherwise server will be idle. How do events occur? Events occur randomly Interarrival times {1,...,6} Service times {1,...,4} 1.11

Simulation of Queueing Systems Customer Interarrival Time Arrival Time on Clock Service Time 1-0 2 2 2 2 1 3 4 6 3 4 1 7 2 5 2 9 1 6 6 15 4 The interarrival and service times are taken from distributions! The simulation run is build by meshing clock, arrival, and service times! Customer Number Arrival Time [Clock] Time Service Begins [Clock] Service Time [Duration] Time Service Ends [Clock] 1 0 0 2 2 2 2 2 1 3 3 6 6 3 9 4 7 9 2 11 5 9 11 1 12 6 15 15 4 19 1.12

Simulation of Queueing Systems Clock Time Chronological ordering of events Customer Number Event Type Number of customers 0 1 Arrival 1 2 1 Departure 0 2 2 Arrival 1 3 2 Departure 0 6 3 Arrival 1 Interesting observations Customer 1 is in the system at time 0 Sometimes, there are no customers Sometimes, there are two customers Several events may occur at the same time Number of customers in the system 7 4 Arrival 2 9 3 Departure 1 9 5 Arrival 2 11 4 Departure 1 4 5 12 5 Departure 0 15 6 Arrival 1 19 6 Departure 0 1 2 3 4 5 6 1.13

Examples Example 1: A Grocery 1.14

Example 1: A Grocery Analysis of a small grocery store One checkout counter Customers arrive at random times from {1,2,,8} minutes Service times vary from {1,2,,6} minutes Consider the system for 100 customers Problems/Simplifications Sample size is too small to be able to draw reliable conclusions Initial condition is not considered Interarrival Time [minute] Service Time [minute] Probability Cumulative Probability 1 0.125 0.125 2 0.125 0.250 3 0.125 0.375 4 0.125 0.500 5 0.125 0.625 6 0.125 0.750 7 0.125 0.875 8 0.125 1.000 Probability Cumulative Probability 1 0.10 0.10 2 0.20 0.30 3 0.30 0.60 4 0.25 0.85 5 0.10 0.95 6 0.05 1.00 1.15

Example 1: A Grocery Simulation run for 100 customers Simulation System Performance Measure Customer Interarrival Time [Minutes] Arrival Time [Clock] Service Time [Minutes] Time Service Begins [Clock] Time Service Ends [Clock] Waiting Time in Queue [Minutes] Time Customer in System [Minutes] Idle Time of Server [Minutes] 1-0 4 0 4 0 4 0 2 1 1 2 4 6 3 5 0 3 1 2 5 6 11 4 9 0 4 6 8 4 11 15 3 7 0 5 3 11 1 15 16 4 5 0 6 7 18 5 18 23 0 5 2... 100 5 415 2 416 418 1 3 0 Total 415 317 174 491 101 1.16

Example 1: A Grocery, Some statistics 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 Waiting time in queue 174 w = = = 1.74 min Number of customers 100 Number of customer who wait 46 p( wait) = = = 0.46 Number of customers 100 Idletime of server 101 p( idleserver) = = = 0.24 Simulation run time 418 Service time 317 s = = = 3.17 min Number of customers 100 ( ) = E s s p( s) = 0.1 10 + 0.2 20 + + 0.05 6 = 3.2 min s= 0 Times between arrivals 415 λ = = = 4.19 min Number of arrivals -1 99 a + b 1+ 8 E( λ) = = = 4.5min 2 2 w waited Waiting time in queue 174 = = = 3.22 min Number of customers that wait 54 Average time a customer spends in system t Time customers spend in system 491 = = = 4.91min Number of customers 100 t = w + s = 1.74 + 3.17 = 4.91min 1.17

Example 1: A Grocery, Some statistics Interesting results for a manager, but longer simulation run would increase the accuracy Occurrences [No. of Trials] 18 16 14 12 10 8 6 4 2 0 Histogram for the Average Customer Waiting Time Average of 50 Trials 17 15 7 5 2 2 1 1 0 0 0 0 0,5 1 1,5 2 2,5 3 3,5 4 4,5 >4,5 Average customer waiting time [min] Some interpretations Average waiting time is not high Server has not undue amount of idle time, it is well loaded ;-) Nearly half of the customers have to wait (46%) 1.18

Examples Example 2: Call center 1.19

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 Try other rules Baker gets call if both are idle Call is assigned randomly to Able and Baker Goal of study: Find out how well the current rule works 1.20

Example 2: Call Center Problem Interarrival distribution of calls for technical support Time between Arrivals [Minute] Probability Cumulative Probability Random-Digit Assignment 1 0.25 0.25 01 25 2 0.40 0.65 26 65 3 0.20 0.85 66 85 4 0.15 1.00 86 00 Service time distribution of Baker Service Time [Minute] Probability Cumulative Probability Random-Digit Assignment 3 0.35 0.35 01 35 4 0.25 0.60 36 60 5 0.20 0.80 61 80 6 0.20 1.00 81 00 Service time distribution of Able Service Time [Minute] Probability Cumulative Probability Random-Digit Assignment 2 0.30 0.30 01 30 3 0.28 0.58 31 58 4 0.25 0.83 59 83 5 0.17 1.00 84 00 1.21

Example 2: Call Center Problem Simulation proceeds as follows Step 1: For Caller k, generate an interarrival time A k. Add it to the previous arrival time T k-1 to get arrival time of Caller k as T k = T k-1 + A k Step 2: If Able is idle, Caller k begins service with Able at the current time T now Able s service completion time T fin,a is given by T fin,a = T now + T svc,a where T svc,a is the service time generated from Able s service time distribution. Caller k s waiting time is T wait = 0. Caller k s time in system, T sys, is given by T sys = T fin,a T k 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: T beg = min(t fin,a, T fin,b ) Caller k begins service at T beg. When service for Caller k begins, set T now = T beg. Compute T fin,a or T fin,b as in Step 2. Caller k s time in system is T sys = T fin,a T k or T sys = T fin,b - T k 1.22

Example 2: Call Center Problem Simulation run for 100 calls Caller Nr. Interarrival Time Arrival Time When Able Avail. When Baker Avail. Server Chosen Service Time Time Service Begins Able s Service Compl. Time Baker s Service Compl. Time Caller Delay Time in System 1-0 0 0 Able 2 0 2 0 2 2 2 2 2 0 Able 2 2 4 0 2 3 4 6 4 0 Able 2 6 8 0 2 4 2 8 8 0 Able 4 8 12 0 4 5 1 9 12 0 Baker 3 9 12 0 3 100 1 219 221 219 Baker 4 219 0 4 Total 211 564 1.23

Example 2: Call Center Problem, Some statistics One simulation trial of 100 caller 62% of callers had no delay 12% of callers had a delay of 1-2 minutes Caller delay 400 simulation trials of 100 caller 80.5% of callers had delay up to 1 minute 19.5% of callers had delay more than 1 minute Average caller delay 1.24

Examples Example 3: Inventory System 1.25

Example 3: Inventory System Important class of simulation problems: inventory systems Performance measure: Total cost (or total profit) Parameters N Review period length M Standard inventory level Q i Quantity of order i to fill up to M 1.26

Example 3: Inventory System Events in an (M, N) inventory system are Demand for items Review of the inventory Receipt of an order at the end of each review To avoid shortages, a buffer stock is needed Cost of stock Storage space Guards 1.27

Appendix Random digits 1.28

Appendix: Random Digits Producing random numbers from random digits Select randomly a number, e.g. One digit: 0.9 Two digits: 0.19 Three digits: 0.219 Proceed in a systematic direction, e.g. first down then right first up then left 1.29

Summary This chapter introduced simulation concepts by means of examples Example simulations were performed on a table manually Use a spreadsheet for large experiments (Excel, OpenOffice) Input data is important Random variables can be used Output analysis important and difficult The used tables were of ad hoc, a more methodic approach is needed 1.30