Graduate Program in Business Information Systems Simulation Aslı Sencer.

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

Introduction into Simulation Basic Simulation Modeling.
Simulating Single server queuing models. Consider the following sequence of activities that each customer undergoes: 1.Customer arrives 2.Customer waits.
1 Overview of Simulation When do we prefer to develop simulation model over an analytic model? When not all the underlying assumptions set for analytic.
11 Simulation. 22 Overview of Simulation – When do we prefer to develop simulation model over an analytic model? When not all the underlying assumptions.
Chapter 10: Simulation Modeling
 1  Outline  performance measures for a single-server station  discrete-event simulation  hand simulation  process-oriented simulation approach.
FIN 685: Risk Management Topic 5: Simulation Larry Schrenk, Instructor.
MIS 463 Decision Support Systems for Business Simulation-Part 1 Aslı Sencer.
1 Simulation Lecture 6 Simulation Chapter 18S. 2 Simulation Simulation Is …  Simulation – very broad term  methods and applications to imitate or mimic.
Discrete-Event Simulation: A First Course Steve Park and Larry Leemis College of William and Mary.
1 Monte-Carlo Simulation Simulation with Spreadsheets.
Chapter 1 What is Simulation?
Simulation.
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.
1 Lecture 6 MGMT 650 Simulation – Chapter Announcements  HW #4 solutions and grades posted in BB  HW #4 average =  Final exam today 
1 Validation and Verification of Simulation Models.
Chapter 1 What is Simulation?
SIMULATION TECHNIQUES. Introduction What is digital simulation? – Design a model for a real or proposed system – Execute the model on a computer – Analyze.
Fundamental Simulation Concepts
Lab 01 Fundamentals SE 405 Discrete Event Simulation
Basic Simulation Modeling II
Monté Carlo Simulation MGS 3100 – Chapter 9. Simulation Defined A computer-based model used to run experiments on a real system.  Typically done on a.
Graduate Program in Engineering and Technology Management
Chapter 1 – What Is Simulation?
Modeling and Simulation
Graduate Program in Engineering and Technology Management Introduction to Simulation Aslı Sencer.
Simulation Concepts Dr. Jason Merrick. Simulation with Arena — A Quick Peek at Arena C3/2 The above was just one “replication” -- a sample of size one.
1 Performance Evaluation of Computer Networks: Part II Objectives r Simulation Modeling r Classification of Simulation Modeling r Discrete-Event Simulation.
 1  Outline  stages and topics in simulation  generation of random variates.
1 Chapter 2 Fundamental Simulation Concepts. Simulation with Arena Fundamental Simulation Concepts C2/2 What We’ll Do... Underlying ideas, methods, and.
1 OM2, Supplementary Ch. D Simulation ©2010 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible.
Slide 1 of 23 What is Simulation? Last revision June 7, 2003.
1 Definition of System Simulation: The practice of building models to represent existing real-world systems, or hypothetical future systems, and of experimenting.
1 Chapter 2 Fundamental Simulation Concepts Dr. Jason Merrick.
Simulation with ArenaChapter 2 – Fundamental Simulation ConceptsSlide 1 of 46 Fundamental Simulation Concepts Chapter 2.
ETM 607 – Discrete Event Simulation Fundamentals Define Discrete Event Simulation. Define concepts (entities, attributes, event list, etc…) Define “world-view”,
Introduction : Simulation and Modeling Wk1Slide 1 Simulation and Modelling MIS 7102 Week 1 By Agnes Rwashana Semwanga Introduction.
Chapter 2 – Fundamental Simulation ConceptsSlide 1 of 46 Chapter 2 Fundamental Simulation Concepts.
Slide 1 of 46 Fundamental Simulation Concepts Last revision June 7, 2003.
Chapter 2 – Fundamental Simulation ConceptsSlide 1 of 46 Fundamental Simulation Concepts.
Slide 1 of 46 Fundamental Simulation Concepts Chapter 2.
Simulation is the process of studying the behavior of a real system by using a model that replicates the behavior of the system under different scenarios.
SIMULATION OF A SINGLE-SERVER QUEUEING SYSTEM
Chapter 1 – What Is Simulation?Slide 1 of 23 Chapter 1 What is Simulation?
Simulation with ArenaChapter 1 – What Is Simulation?Slide 1 of 23 Some Key Elements which Managers Must Cope with in Their Decision Environment Uncertainty/Risk.
ETM 607 – Output Analysis: Estimation of Relative Performance Output comparison between two or more alternative systems Common Random Numbers (CRN) Comparison.
SIMULATION EXAMPLES. Monte-Carlo (Static) Simulation Estimating profit on a sale promotion Estimating profit on a sale promotion Estimating profit on.
COMP155 Computer Simulation September 10, Discrete Event Simulation  discrete event simulation: state variable change only at a discrete set of.
 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,
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 15-1 © 2006 by Prentice Hall, Inc. Upper Saddle River, NJ Prepared by.
Building Valid, Credible & Appropriately Detailed Simulation Models
Chapter 1 What is Simulation?. Fall 2001 IMSE643 Industrial Simulation What’s Simulation? Simulation – A broad collection of methods and applications.
Simulation Modeling.
Computer Simulation Henry C. Co Technology and Operations Management,
Monte Carlo Simulation Random Number Generation
Prepared by Lloyd R. Jaisingh
Chapter 1 – What Is Simulation?
ADVANTAGES OF SIMULATION
Simulation Department of Industrial Engineering Anadolu University
Prepared by Lee Revere and John Large
Chapter 1 – What Is Simulation?
Discrete Event “Hand” Simulation of a GI/GI/1 Queue
Chapter 1 – What Is Simulation?
Chapter 1 – What Is Simulation?
Fundamental Simulation Concepts
MECH 3550 : Simulation & Visualization
Chapter 1 – What Is Simulation?
Chapter 1 – What Is Simulation?
Presentation transcript:

Graduate Program in Business Information Systems Simulation Aslı Sencer

BIS 517-Aslı Sencer Simulation – Very broad term – methods and applications to imitate or mimic real systems, usually via computer Applies in many fields and industries Very popular and powerful method

Advantages of Simulation Simulation can tolerate complex systems where analytical solution is not available. Allows uncertainty, nonstationarity in modeling unlike analytical models Allows working with hazardous systems Often cheaper to work with the simulated system Can be quicker to get results when simulated system is experimented. BIS 517-Aslı Sencer

The Bad News Don’t get exact answers, only approximations, estimates Requires statistical design and analysis of simulation experiments Requires simulation expert and compatibility with a simulation software Softwares and required hardware might be costly Simulation modeling can sometimes be time consuming.

BIS 517-Aslı Sencer Different Kinds of Simulation Static vs. Dynamic  Does time have a role in the model? Continuous-change vs. Discrete-change  Can the “state” change continuously or only at discrete points in time? Deterministic vs. Stochastic  Is everything for sure or is there uncertainty?

BIS 517-Aslı Sencer Using Computers to Simulate General-purpose languages (C, C++, Visual Basic) Simulation softwares, simulators  Subroutines for list processing, bookkeeping, time advance  Widely distributed, widely modified Spreadsheets  Usually static models  Financial scenarios, distribution sampling, etc.

BIS 517-Aslı Sencer Simulation Languages and Simulators Simulation languages  GPSS, SIMSCRIPT, SLAM, SIMAN  Provides flexibility in programming  Syntax knowledge is required High-level simulators  GPSS/H, Automod, Slamsystem, ARENA, Promodel  Limited flexibility — model validity?  Very easy, graphical interface, no syntax required  Domain-restricted (manufacturing, communications)

BIS 517-Aslı Sencer When Simulations are Used The early years (1950s-1960s)  Very expensive, specialized tool to use  Required big computers, special training  Mostly in FORTRAN (or even Assembler) The formative years (1970s-early 1980s)  Computers got faster, cheaper  Value of simulation more widely recognized  Simulation software improved, but they were still languages to be learned, typed, batch processed

BIS 517-Aslı Sencer When Simulations are Used (cont’d.) The recent past (late 1980s-1990s)  Microcomputer power, developments in softwares  Wider acceptance across more areas Traditional manufacturing applications Services Health care “Business processes”  Still mostly in large firms  Often a simulation is part of the “specs”

BIS 517-Aslı Sencer When Simulations are Used (cont’d.) The present  Proliferating into smaller firms  Becoming a standard tool  Being used earlier in design phase  Real-time control The future  Exploiting interoperability of operating systems  Specialized “templates” for industries, firms  Automated statistical design, analysis

BIS 517-Aslı Sencer Popularity of Simulation Consistently ranked as the most useful, popular tool in the broader area of operations research / management science  1979: Survey 137 large firms, which methods used? 1. Statistical analysis (93% used it) 2. Simulation (84%) 3. Followed by LP, PERT/CPM, inventory theory, NLP,  1980: (A)IIE O.R. division members First in utility and interest — simulation First in familiarity — LP (simulation was second)  1983, 1989, 1993: Heavy use of simulation consistently reported 1. Statistical analysis 2. Simulation

BIS 517-Aslı Sencer Today: Popular Topics  Real time simulation  Web based simulation  Optimization using simulation

BIS 517-Aslı Sencer Simulation Process Develop a conceptual model of the system  Define the system, goals, objectives, decision variables, output measures, input variables and parameters. Input data analysis:  Collect data from the real system, obtain probability distributions of the input parameters by statistical analysis Build the simulation model:  Develop the model in the computer using a HLPL, a simulation language or a simulation software

BIS 517-Aslı Sencer Simulation Process (cont’d.) Output Data Analysis:  Run the simulation several times and apply statistical analysis of the ouput data to estimate the performance measures Verification and Validation of the Model:  Verification: Ensuring that the model is free from logical errors. It does what it is intended to do.  Validation: Ensuring that the model is a valid representation of the whole system. Model outputs are compared with the real system outputs.

BIS 517-Aslı Sencer Simulation Process (cont’d.) Analyze alternative strategies on the validated simulation model. Use features like  Animation  Optimization  Experimental Design Sensitivity analysis:  How sensitive is the performance measure to the changes in the input parameters? Is the model robust?

BIS 517-Aslı Sencer Static Simulation: Monte-Carlo Simulation Static Simulation with no time dimension. Experiments are made by a simulation model to estimate the probability distribution of an outcome variable, that depends on several input variables. Used the evaluate the expected impact of policy changes and risk involved in decision making. Ex: What is the probability that 3-year profit will be less than a required amount? Ex: If the daily order quantity is 100 in a newsboy problem, what is his expected daily cost? (actually we learned how to answer this question analytically)

BIS 517-Aslı Sencer Ex1: Simulation for Dave’s Candies Dave’s Candies is a small family owned business that offers gourmet chocolates and ice cream fountain service. For special occasions such as Valentine’s day, the store must place orders for special packaging several weeks in advance from their supplier. One product, Valentine’s day chocolate massacre, is bought for $7,50 a box and sells for $ Any boxes that are not sold by February 14 are discounted by 50% and can always be sold easily. Historically Dave’s candies has sold between boxes each year with no apparent trend. Dave’s dilemma is deciding how many boxes to order for the Valentine’s day customers.

BIS 517-Aslı Sencer Ex1: Dave's Candies Simulation If the order quantity, Q is 70, what is the expected profit? Selling price=$12 Cost=$7.50 Discount price=$6 If D<Q Profit=selling price*D - cost*Q + discount price*(Q-D) D>Q Profit=selling price*Q-cost*Q

Probability Distribution for Demand YearDemand Demand Distribution Demand (x i, i=1,...,6 ) Probability P(Demand=x i ) 401/6 501/6 601/6 701/6 801/6 901/6 BIS 517-Aslı Sencer

Generating Demands Using Random Numbers During simulation we need to generate demands so that the long run frequencies are identical to the probability distribution found. Random numbers are used for this purpose. Each random number is used to generate a demand. Excel generates random numbers between 0-1. These numbers are uniformly distributed between 0-1. Random numbers BIS 517-Aslı Sencer

Generating random demands: Inverse transformation technique P(demand=x i ) (x i ) /6 P(demand<=x i ) (x i ) /6 4/6 3/6 2/6 1/6 U1U1 D 1 =80 U2U2 D 2 =50 1.Generate U~UNIFORM(0,1) 2.Let U=P(Demand<=D) then D=P -1 (U) BIS 517-Aslı Sencer

Generating Demands Demand (x i ) Probability P(Demand=x i ) Cumulative Probability P(Demand<=x i ) Random numbers 401/6 [0-1/6] 501/62/6(1/6-2/6] 601/63/6(2/6-3/6] 701/64/6(3/6-4/6] 801/65/6(4/6-5/6] 901/61(5/6-1] BIS 517-Aslı Sencer

Ex1: Simulation in Excel for Dave’s Candies Use the following excel functions to generate a random demand with a given distribution function.  RAND(): Generates a random number which is uniformly distributed between 0-1.  VLOOKUP(value, table range, column #): looks up a value in a table to detremine a random demand.  IF(condition, value if true, value if false): Used to calculate the total profit according to the random demand. BIS 517-Aslı Sencer

Dynamic Simulation: Queueing System Arrivals Departures Service is identified by: Arrival rate, interarrival time distribution Service rate, service time distribution # servers # queues Queue capacities Queue disciplines, FIFO, LIFO, etc.

BIS 517-Aslı Sencer M/M/1 Queueing System Arrivals Departures Service M: interarrival time is exponentially distributed M: service time is exponentially distributed 1: There is a single server

BIS 517-Aslı Sencer Ex3: Model Specifics Initially (time 0) empty and idle Base time units: minutes Input data (assume given for now …), in minutes: Part NumberArrival TimeInterarrival TimeService Time Stop when 20 minutes of (simulated) time have passed

BIS 517-Aslı Sencer Queuing Simulation  Random variables:  Time between arrivals  Service time represented by probability distributions.  Events:  Arrival of a customer to the system  Departure from the system.  State variables:  # customers in the queue  Worker status {busy, idle}  Output measures:  Average waiting time in the queue  % utilization of the server  Average time spent in the system

BIS 517-Aslı Sencer Output Performance Measures Total production of parts over the run (P) Average waiting time of parts in queue: Maximum waiting time of parts in queue: N = no. of parts completing queue wait WQ i = waiting time in queue of ith part Know: WQ 1 = 0 (why?) N > 1 (why?)

BIS 517-Aslı Sencer Output Performance Measures (cont’d.) Time-average number of parts in queue: Maximum number of parts in queue: Average and maximum total time in system of parts: Q(t) = number of parts in queue at time t TS i = time in system of part i

BIS 517-Aslı Sencer Output Performance Measures (cont’d.) Utilization of the machine (proportion of time busy) Many others possible (information overload?)

BIS 517-Aslı Sencer Simulation by Hand Manually track state variables, statistical accumulators Use “given” interarrival, service times Keep track of event calendar “Lurch” clock from one event to the next Will omit times in system, “max” computations here (see text for complete details)

BIS 517-Aslı Sencer Simulation by Hand: Setup

BIS 517-Aslı Sencer Simulation by Hand: t = 0.00, Initialize

BIS 517-Aslı Sencer Simulation by Hand: t = 0.00, Arrival of Part 1 1

BIS 517-Aslı Sencer Simulation by Hand: t = 1.73, Arrival of Part 2 12

BIS 517-Aslı Sencer Simulation by Hand: t = 2.90, Departure of Part 1 2

BIS 517-Aslı Sencer Simulation by Hand: t = 3.08, Arrival of Part 3 23

BIS 517-Aslı Sencer Simulation by Hand: t = 3.79, Arrival of Part 4 234

BIS 517-Aslı Sencer Simulation by Hand: t = 4.41, Arrival of Part

BIS 517-Aslı Sencer Simulation by Hand: t = 4.66, Departure of Part 2 345

BIS 517-Aslı Sencer Simulation by Hand: t = 8.05, Departure of Part 3 45

BIS 517-Aslı Sencer Simulation by Hand: t = 12.57, Departure of Part 4 5

BIS 517-Aslı Sencer Simulation by Hand: t = 17.03, Departure of Part 5

BIS 517-Aslı Sencer Simulation by Hand: t = 18.69, Arrival of Part 6 6

BIS 517-Aslı Sencer Simulation by Hand: t = 19.39, Arrival of Part 7 67

BIS 517-Aslı Sencer Simulation by Hand: t = 20.00, The End 67

BIS 517-Aslı Sencer Ex3:Complete Record of the Hand Simulation

BIS 517-Aslı Sencer Ex3: Simulation by Hand: Finishing Up Average waiting time in queue: Time-average number in queue: Utilization of drill press:

Randomness in Simulation The above was just one “replication” — a sample of size one (not worth much) Made a total of five replications: Confidence intervals for expected values:  In general,  For expected total production, Note substantial variability across replications BIS 517-Aslı Sencer

Comparing Alternatives Usually, simulation is used for more than just a single model “configuration” Often want to compare alternatives, select or search for the best (via some criterion) Simple processing system: What would happen if the arrival rate were to double?  Cut interarrival times in half  Rerun the model for double-time arrivals  Make five replications BIS 517-Aslı Sencer

Results: Original vs. Double-Time Arrivals Original – circles Double-time – triangles Replication 1 – filled in Replications 2-5 – hollow Note variability Danger of making decisions based on one (first) replication Hard to see if there are really differences Need: Statistical analysis of simulation output data BIS 517-Aslı Sencer