CH-1. A simulation: is the imitation of the operation of a real-world process WHEN SIMULATION IS THE APPROPRIATE TOOL:

Similar documents
Queuing Theory 1.1 Introduction

COMP9334 Capacity Planning for Computer Systems and Networks

Chapter 2 Simulation Examples. Banks, Carson, Nelson & Nicol Discrete-Event System Simulation

Slides 2: Simulation Examples

UNIT - 1 INTRODUCTION:

INTRODUCTION AND CLASSIFICATION OF QUEUES 16.1 Introduction

Chapter 2 Simulation Examples. Banks, Carson, Nelson & Nicol Discrete-Event System Simulation

Mathematical approach to the analysis of waiting lines

QUEUING THEORY 4.1 INTRODUCTION

Solutions Manual Discrete-Event System Simulation Fifth Edition

Waiting Line Models. 4EK601 Operations Research. Jan Fábry, Veronika Skočdopolová

Chapter 14. Waiting Lines and Queuing Theory Models

Chapter 13. Waiting Lines and Queuing Theory Models

Textbook: pp Chapter 12: Waiting Lines and Queuing Theory Models

Lecture 45. Waiting Lines. Learning Objectives

Banks, Carson, Nelson & Nicol

COMPUTATIONAL ANALYSIS OF A MULTI-SERVER BULK ARRIVAL WITH TWO MODES SERVER BREAKDOWN

Introduction - Simulation. Simulation of industrial processes and logistical systems - MION40

Queuing Models. Queue. System

Modeling and Performance Analysis with Discrete-Event Simulation

OPERATIONS RESEARCH Code: MB0048. Section-A

Introduction to Computer Simulation

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

INDIAN INSTITUTE OF MATERIALS MANAGEMENT Post Graduate Diploma in Materials Management PAPER 18 C OPERATIONS RESEARCH.

Chapter C Waiting Lines

OPERATING SYSTEMS. Systems and Models. CS 3502 Spring Chapter 03

STATISTICAL TECHNIQUES. Data Analysis and Modelling

CS626 Data Analysis and Simulation

University Question Paper Two Marks

PERFORMANCE MODELING OF AUTOMATED MANUFACTURING SYSTEMS

WAITING LINE MODELS Introduction

UNIVERSIDAD COOPERATIVA DE COLOMBIA Bucaramanga Facultad de Ciencias Administrativas y Económicas BUSINESS ADMINISTRATION

An-Najah National University Faculty of Engineering Industrial Engineering Department. System Dynamics. Instructor: Eng.

Chapter 14. Simulation Modeling. Learning Objectives. After completing this chapter, students will be able to:

Simulation Using. ProModel. Dr. Charles Harrell. Professor, Brigham Young University, Provo, Utah. Dr. Biman K. Ghosh, Project Leader

Simulating Queuing Models in SAS

Queueing Theory and Waiting Lines

Code No: RR Set No. 1

Queuing Theory. Carles Sitompul

Hamdy A. Taha, OPERATIONS RESEARCH, AN INTRODUCTION, 5 th edition, Maxwell Macmillan International, 1992

Queueing and Service Patterns in a University Teaching Hospital F.O. Ogunfiditimi and E.S. Oguntade

CONTENTS CHAPTER TOPIC PAGE NUMBER

Chapter III TRANSPORTATION SYSTEM. Tewodros N.

G54SIM (Spring 2016)

Queuing CEE 320. Anne Goodchild CEE 320

ASSIGNMENT BOOKLET Bachelor's Degree Programme (BS.c./B.A/B.Com) OPERATIONS RESEARCH

Chapter 1 INTRODUCTION TO SIMULATION

Statistics, Data Analysis, and Decision Modeling

SINGLE MACHINE SEQUENCING. ISE480 Sequencing and Scheduling Fall semestre

Determining the Effectiveness of Specialized Bank Tellers

Managing Waiting Lines. Copyright 2008 by The McGraw-Hill Companies, Inc. All rights reserved.

System Analysis and Optimization

and type II customers arrive in batches of size k with probability d k

A Simulation Study on M/M/1 and M/M/C Queueing Model in a Multi Speciality Hospital

Techniques of Operations Research

BUSSINES SIMULATING PROCES FOR THE PRODUCTION SURROUND, USING QUEUEING SYSTEM SIMULATION WITH WINQSB

MANUFACTURING SYSTEM BETP 3814 INTRODUCTION TO MANUFACTURING SYSTEM

Short-Term. Scheduling

SCHEDULING AND CONTROLLING PRODUCTION ACTIVITIES

4 BUILDING YOUR FIRST MODEL. L4.1 Building Your First Simulation Model. Knowing is not enough; we must apply. Willing is not enough; we must do.

Queuing Theory: A Case Study to Improve the Quality Services of a Restaurant

Prof. John W. Sutherland. March 20, Lecture #25. Service Processes & Systems Dept. of Mechanical Engineering - Engineering Mechanics

WAYNE STATE UNIVERSITY Department of Industrial and Manufacturing Engineering May, 2010

Reliability Data Analysis with Excel and Minitab

Use of Monte Carlo Simulation for Analyzing Queues in a Financial Institution

Discrete Event simulation

Urban Transportation Planning Prof Dr. V. Thamizh Arasan Department of Civil Engineering Indian Institute Of Technology, Madras

Module 7:Application of stochastic processes in queueing theory Lecture 30:Examples of application of stochastic processes in Queueing Theory

OPERATIONS RESEARCH. Inventory Theory

Manufacturing Resource Planning

ISM 270. Service Engineering and Management Lecture 7: Queuing Systems, Capacity Management

Discrete Event Simulation

ISE480 Sequencing and Scheduling

Application of Queuing Theory in a Small Enterprise

ABSTRACT. Timetable, Urban bus network, Stochastic demand, Variable demand, Simulation ISSN:

Optimizing appointment driven systems via IPA

A Simple EOQ-like Solution to an Inventory System with Compound Poisson and Deterministic Demand

Unit WorkBook 1 Level 5 ENG U48 Manufacturing Systems Engineering UniCourse Ltd. All Rights Reserved. Sample

Ch 15 Manual Assembly Lines

Blocking Effects on Performance of Warehouse Systems with Automonous Vehicles

D.K.M.COLLEGE FOR WOMEN (AUTONOMOUS), VELLORE-1. OPERATIONS RESEARCH

Introduction CHAPTER 1

SCHEDULING IN MANUFACTURING SYSTEMS

Introduction to Transportation Systems

SIMULATION. Simulation. advantages (cont.) Advantages

CHAPTER 6: DISCRETE-EVENT SIMULATION MODEL

Reliability Engineering

Application of queuing theory in construction industry

Service Rate Optimization of Finite Population Queueing Model with State Dependent Arrival and Service Rates

Efficiency of Controlled Queue system in Supermarket using Matlab / Simulink

Folia Oeconomica Stetinensia DOI: /foli FORECASTING RANDOMLY DISTRIBUTED ZERO-INFLATED TIME SERIES

Use of Queuing Models in Health Care - PPT

An Approach to Predicting Passenger Operation Performance from Commuter System Performance

(Assignment) Master of Business Administration (MBA) PGDPM Subject : Management Subject Code : PGDPM

SSRG International Journal of Mechanical Engineering (SSRG-IJME) volume 2 Issue 5 May 2015

IE221: Operations Research Probabilistic Methods

Sujin Woottichaiwat. Received September 9, 2014; Accepted February 9, 2015

The Study of Difference of Efficiency of a Bank in a Rural Area and a Bank in a Town

Inter-Terminal Transport with uncertain connections

Transcription:

CH-1 A simulation: is the imitation of the operation of a real-world process WHEN SIMULATION IS THE APPROPRIATE TOOL: 1. Simulation enables the study of, and experimentation with, the internal interactions of a complex system or of a subsystem within a complex system. 2. Informational, organizational, and environmental changes alterations on the model's behavior can be observed. 3. Simulation can be used as a pedagogical device to reinforce analytic solution methodologies. 4. Simulation can be used to verify analytic solutions. ADVANTAGES AND DISADVANTAGES OF SIMULATION: ADVANTAGES SIMULATION: 1. New policies, operating procedures, decision rules, information flows, organizational procedures, can be explored 2. New hardware.designs, physical layouts, transportation systems, can be tested without committing resources DISADVANTAGES SIMULATION: 1. Model building requires special training. It is an art that is learned over time and through experience. 2. Simulation results can be difficult to interpret. AREAS OF APPLICATION: 1. Manufacturing system. 2. Public system. 3. Transportation system. 4. Construction system. 5. Food Processing.

SYSTEMS AND SYSTEM ENVIRONMENT: SYSTEMS: is defined as a group of objects that are joined together in some e regular interaction or interdependence toward the accomplishment of some purpose. An Example: is a production system manufacturing automobiles. SYSTEM ENVIRONMENT: A system is often affected by changes occurring outside the system. Such changes are srud to occur COMPONENTS OF A SYSTEM: An entity: is an Object of interest in the system. An attribute: is a property of an entity. An activity: represents a time period of specified length. The state: of a system is defined to be that collection of variables necessary to describe the system An event: is defined as an instantaneous occurrence that might change the state of the system. DISCRETE AND CONTINUOUS SYSTEMS: DISCRETE SYSTEMS: is one in which the state variable(s) change only at a discrete set of points in time. An example: Is the bank CONTINUOUS SYSTEMS: is one in which the state variable(s) change continuously. An example: water dam.

EXAMPLE OF SYSTEM AND COMPONENTS: SYSTEM Entities Attributes Activities Events State variables Banking Customers Checking account balance Making deposits Arrival; departure Number of busy tellers; number of Customers waiting Rapid rail Riders Origination destination Traveling Arrival at Station; Arrival at destination Number of riders waiting at each station; number of riders in transit Production Machines Speed; capacity breakdown rate Welding stamping Breakdown Status of machines ( busy, idle, or down) Communications Messages Length; destination Transmitting Arrival at destination Number waiting to be transmitted Inventory Warehouse Capacity Withdrawing Demand Levels of inventory ; backlogged demands Discrete system state variable:

Continuous system state variable: MODEL OF A SYSTEM: is defined as a representation of a system for the purpose of studying the system. TYPES OF MODELS: A static: simulation model, sometimes called a Monte Carlo simulation, represents a, system at a particular point in time Dynamic: simulation models represent systems as they change over time. Example of: a bank Deterministic : models have a known set of inputs, which will result in a unique set of outputs. A stochastic : simulation model has one or more random variables as inputs. Random inputs lead to random outputs.

STEPS IN A SIMULATION STUDY: Problem formulation Setting of objectives and overall project plan Model conceptualization Data collection Model translation Verified? Validated? Experimental design Production runs and analysis More Runs?

Documentation and reporting Implementation. CH-2 The simulations in this chapter are carried out by following three steps: 1. Determine the characteristics of each of the inputs to the simulation. 2. Construct a simulation table. Each simulation table is different, for each is developed for the problem at hand. 3. For each repetition i, generate a value for each of the p inputs, and evaluate the function, calculating a value of the response yi' SIMULATION OF QUEUEING SYSTEMS: A the queueing system capacity system is described by its calling population, the nature of the arrivals, the service mechanism,, and the queueing discipline. Queueing system: Calling population Waiting line Server In system the calling population is infinite if a unit leaves the calling population and join the waiting line or enters service need service there is no change in the arrival rate of other units that may need service.

Arrivals and services are described by the distribution of the time between arrivals and service times. An event: is a set of circumstances that cause an instantaneous change in the state of the system. In a single-channel queueing system there are only two possible event that can affect the state of the system. The arrival event: They are the entry of a unit into the system The departure event: the completion of service on a unit If service has just been completed, the simulation proceeds in the manner shown in the flow diagram Note that the server has only two possible conditions it is either busy or idle. Service just completed flow diagram: Departure event Begin server idle time Another unit waiting? Remove the waiting unit from the queue Begin Servicing the unit Unit entering system flow diagram: Arrival event Serves busy? Unit enters service Unit enters queue for service

Potential unit actions upon arrival Server status Busy Idle Queue status Not empty Empty Enter Enter queue queue Impossible Enter service Server outcomes after service completion: Queue status Not empty Empty Server status Busy Impossible Idle Impossible

Event : An instantaneous occurrence that changes the state of a system Event notice: A record of an event to occur at the current or some future time Event list: A list of event notices for future events, Activity: A duration of time of specified length (e.g., a service time or inter arrival time), which is. known when it begins Delay : A duration of time of unspecified indefinite length, Clock : A variable representing simulated time An activity's duration may be specified in a number of ways: 1. Deterministic 2. Statistical 3. A function depending on system variables and/or entity attributes CH-4... CH-5 Simple queueing model: Waiting line Server Calling population of potential customer Of customers In a simple but typical queueing model, customers arrive from time to time and join a queue (waiting line), are eventually served, and finally leave the system. The term "customer" refers to any type of entity that can be viewed as requesting "service" from a system.

HARACTERISTICS OF QUEUEING SYSTEMS: The key elements of a queueing system are the customers and servers. The term "customer" can refer to people,machines, trucks, mechanics, patients, pallets, airplanes,cases, orders, or dirty clothes-anything that arrives at a facility and requires service. any resource which provides the requested service. Examples of Queueing Systems: System Reception desk Repair facility Garage Tool crib Hospital Warehouse Airport Production line Warehouse Road network Grocery Laundry Job shop Lumberyard Saw mill Computer Telephone Ticket office Mass transit Customer People Machines Trucks Mechanics Patients Pallets Airplanes Cases Orders Cars Shoppers Dirty linen Jobs Trucks Logs Jobs Calls Football fans Riders Serves Receptionist Repairperson Mechanic Tool crib clerk Nurses Crane Runway Case packer Order picker Traffic light Checkout station Washing machines/dryers Machines/workers Overhead crane Saws CPU, disk, tapes Exchange Clerk Buses, trains

The Calling Population: The population of potential customers, referred to as the calling population, may be assumed to be finite or infinite. For example, consider a bank of five machines that are curing tires. The machines are the "customers;' who "arrive" at the instant they automatically open.the worker is the "server," who "serves" an open machine as soon as possible. The calling population is finite and consists of the five machines. The main,difference between finite and infinite population models is how the arrival rate is defined. In an infinite population model, the arrival rate. number of arrivals per unit of time) is not affected by the number of customers who have left the caling population and joined the queueing system. System Capacity: In many queueing systems, there is a limit to the number of customers that may be in the waiting line or system. The Arrival Process: The arrival process for infinite-population models is usually characterized in terms of inter arrival times of successive customer. Queue Behavior and Queue Discipline: Queue Behavior: Refers to the actions of customers while in a queue waiting for service to begin. In some situations, there is a possibility that incoming customers will balk. (Renege, Jockey). Queue Discipline: Refers to the logical ordering of customers in a queue and determines which customer will be chosen for service(fifo,lifo,siro,spt,pr). Service Times and the Service Mechanism: The service times: of successive arrivals are denoted by S1, S2, S3,... They may be constant or of random duration. In the latter case, {S1, S2, S3,... } is usually characterized as a sequence of independent and identically distributed random variables. The exponential. A queueing system consists of a number of service centers and interconnecting queues. Each service center consists of some number of servers, c, working in parallel; that is, upon getting to the head of the line,a customer takes.the first available server. Parallel service mechanisms are either single server (c = 1), multiple server.

Discount warehouse with three service centers: C= (self-service) C=1 (cashier) C=3 (3 clerks) Service center 2, with c =3 parallel servers: Server 1 Server 2 Server 3 Candy-production line:

QUEUEING NOTATION: An abridged version of this convention is based on the format AIB/c/NIK. These letters represent the following system characteristics: A represents the inter arrival-time distribution. B represents the service-time distribution. c represents the number of parallel servers. N represents the system capacity. K represents the size of the calling population. CH-6 Random number with the help of formula: A sequence of random numbers R1,R2,.,must have two important statistical properties, uniformity and independence. 1, 0 x 1 F(x)={ 0, otherwise GENERATION OF PSEUDO RANDOM NUMBERS: "Pseudo" means false, so false random numbers are being generated! 1. The generated numbers might not be uniformly distributed. 2. The generated numbers might be discrete-valued instead of continuousvalued. 3. The mean of the generated numbers might be too high or too low. 4. The variance of the generated numbers might be too high or too low. 5. There might be dependence. examples: a) autocorrelation between numbers; b) numbers successively higher or lower than adjacent numbers; c) several numbers above the mean followed by several numbers below the mean. TECHNIQUES FOR GENERATING RANDOM NUMBERS: Linear Congruential Method: sequence of integers, x1, x2,... between zero and m - l by following a recursive relationship: Xi+t = (a Xi+ c) mod m, i = 0, I, 2,... ذاكر السؤال األول في الواجب الثاني

TESTS FOR RANDOM NUMBERS: The desirable properties of random numbers-uniformity and independence. 1. Frequency test. Uses the Kolmogorov Smirnov or the chi-square test to compare the distribution of the set of numbers generated to a uniform distribution. 2. Runs test. Tests the runs up and down or the runs above and below the mean by comparing the actual values to expected values. The statistic for comparison is the chi-square. 3. Autocorrelation test. Tests the correlation between numbers and compares the sample correlation to the expected correlation, zero. 4. Gap test. Counts the number of digits that appear between repetitions of a particular digit and then uses the Kolmogorov-Smirnov test to compare with the expected size of gaps. 5. Poker test. Treats numbers grouped together as poker hand. In testing for uniformity, the hypotheses are as follows: H0 : Ri ~ U[O, 1] H1 : Ri ~ U[O, 1] for independence, the hypotheses are as follows: H0 : Ri ~ independently H1 : Ri ~ independently Frequency Tests: The Kolmogorov-Smirnov test. This test compares the continuous cdf, F(x), of the uniform distribution with the empirical cdf, SN(x). F(x) = x, 0 x 1 Sn(x) = number of R1, R2.. RN which are x N Step I. Rank the data from smallest to largest. Let R(Q denote the ith smallest observation, so that R(1) R(2).. R(N) Step 2. Compute: D + = max { i N R (i)} Step 3. Compute D max(d+,d- ). D = max {R (i) i 1 N }

Step 4. Determine the critical value, D α, table A.8 for the specified significance level α and the given sample size N. Step 5. If the sample statistic D is greater than the critical value. Example: 0.44, 0.81, 0.14, 0.05, 0.93 R (i) 0.05 0.14 0.44 0.81 0.93 i 0.20 0.40 0.60 0.80 1.00 N i N (i) 0.15 0.26 0.16-0.07 R (i) i 1 0.05-0.04 0.21 0.13 N 3. The chi-square test. The chi-square test uses the sample statistic x2 0 = n (O i E i ) i=1 E i E i = N n ذاكر السؤال السادس في الواجب الثاني Runs Tests: Runs up and runs down. Consider the following sequence generated by tossing a coin 10 times: H T T H H T T T H T Gap Test: The gap test is used to determine the significance of the interval between the recurrence of same digit. P(gap of 10) = p(no 3)..p(no 3)p(3) =(0.9) 10 (0.1) Poker Test: The poker test for independence is based on the frequency with which certain digits are repeated in a series of number. 1. The individual numbers can all be different. 2. The individual numbers can all be the same 3. There can be one pair of like digits

CH-7 Input Modeling: Input data provide the driving force for a simulation model. In the simulation of a queueing system, typical input models are the distributions of time between arrivals and of service times. For an inventory system simulation, input models include the distributions of demand and of lead time four steps in the development of a useful model of input data: 1. Collect data from the real system of interest. This often requires a substantial time and resource commitment. 2. Identify a probability distribution to represent the input process. When data are available, this step typically begins with the development of a frequency distribution. 3. Choose parameters that determine a specific instance of the distribution family. 4. Evaluate the chosen distribution and the associated parameters for goodness of fit DATA COLLECTION: is one of the biggest tasks in solving a real problem. It is one of the most important and difficult problems in simulation "GIGO," or "garbage-in-garbage-out,": is a basic concept in computer science, and it applies equally in the area of discrete - system simulation. Histograms: 1. Divide the range of the data into intervals. 2. Label the horizontal axis to conform to the intervals selected. 3. Find the frequency of occurrences within each interval. 4. Label the vertical axis so that the total occurrences can be plotted for each interval. 5. Plot the frequencies on the vertical axis.

Binomial: Models the number of successes in n trials, when the trials are independent with common success probability. Negative Binomial (includes the geometric distribution): Models the number of trials required to achieve k successes Poisson: Models the number of independent events that occur in a fixed amount of time or spate. Normal: Models the distribution of a process that can be thought of as the sum of a number of component processes. Exponential: Models the time between independent events, or a process time that is memoryless PARAMETER ESTIMADON: Example: n i=1 X i X = n S 2 = n X i 2 n X i=1 2 N 1 n= 100, f 1 = 12, X 1 = 0, f 2 = 10, X 2 = 1,, f i X j = 364, and = f j X j 2 = 2080. From equation (10.3) k j=1 k j=1 X = n i=1 X i n X = 364 100 X = 3.64 and from equation(10.4) S 2 = n X i 2 n X i=1 2 N 1 S 2 = 2 2082 100(3.64) 99 S 2 = 7.63 GOODNES5-0F FIT TESTS: Goodness-of-fit tests provide helpful guidance for evaluating the suitability of a potential input model.

CH-8 Verification and Validation of Simulation Models: 1. Verification is concerned with building the model right. comparison of the conceptual model to the computer representation that implements that conception. 2. Validation is concerned with building the right model. It is utilized to determine that a model is an accurate representation of the real system. MODEL BUILDING, VERIFICATION, AND VALIDATION: The first step in model building consists of observing the real system and the interactions among their various components. The second step in model building is the construction of a conceptual model-a collection of assumptions about the components and the structure of the system. The third step is the implementation of an operational model into a computer recognizable form---the computerized model. Model building, verification, and validation: Real system Conceptual model: 1. Assumptions on system components 2. Structural assumptions. which define the interactions between system components 3. Input parameters and data assumptions Operational model Computerized representation) ذاكر الواجب األول و الثاني ( وهلل التوفيق و النجاح )