INTRODUCTION TO SIMULATION

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.
Modeling & Simulation. System Models and Simulation Framework for Modeling and Simulation The framework defines the entities and their Relationships that.
Modeling and Simulation
Modeling and simulation of systems Slovak University of Technology Faculty of Material Science and Technology in Trnava.
Chapter 15 Application of Computer Simulation and Modeling.
Chapter 3 Simulation Software
Classification of Simulation Models
INTRODUCTION TO SIMULATION
1 Simulation Lecture 6 Simulation Chapter 18S. 2 Simulation Simulation Is …  Simulation – very broad term  methods and applications to imitate or mimic.
Model Classification and Steps in a Simulation Study
Discrete-Event Simulation: A First Course Steve Park and Larry Leemis College of William and Mary.
Components and Organization of Discrete-event Simulation Model
Simulation.
Simulation Waiting Line. 2 Introduction Definition (informal) A model is a simplified description of an entity (an object, a system of objects) such that.
Introduction to Simulation Modeling Jason R. W. Merrick.
Lab 01 Fundamentals SE 405 Discrete Event Simulation
Basic Simulation Modeling II
CS 450 Modeling and Simulation
Modeling and Simulation
Introduction to Systems Analysis and Design Trisha Cummings.
Discrete-Event System Simulation
Introduction to Discrete Event Simulation Customer population Service system Served customers Waiting line Priority rule Service facilities Figure C.1.
(C) 2009 J. M. Garrido1 Object Oriented Simulation with Java.
Chapter 1 Introduction to Simulation
1 Validation & Verification Chapter VALIDATION & VERIFICATION Very Difficult Very Important Conceptually distinct, but performed simultaneously.
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.
Introduction to simulation. Overview What is simulation ? When simulation is appropriate tool When simulation is not appropriate Advantages of simulation.
Modeling & Simulation: An Introduction Some slides in this presentation have been copyrighted to Dr. Amr Elmougy.
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.
ETM 607 – Discrete Event Simulation Fundamentals Define Discrete Event Simulation. Define concepts (entities, attributes, event list, etc…) Define “world-view”,
Modeling and simulation of systems Model building Slovak University of Technology Faculty of Material Science and Technology in Trnava.
1 Introduction to Software Engineering Lecture 1.
Chapter 2 – Fundamental Simulation ConceptsSlide 1 of 46 Chapter 2 Fundamental Simulation Concepts.
Chap. 5 Building Valid, Credible, and Appropriately Detailed Simulation Models.
Chapter 10 Verification and Validation of Simulation Models
Fall 2011 CSC 446/546 Part 1: Introduction to Simulation.
Introduction to Simulation K.Sailaja Kumar 1 SYSTEM SIMULATION AND MODELLING Course Code: MCA 52 Faculty : Sailaja Kumar k.
Network Performance modelling 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.
Advantages of simulation 1. New policies, operating procedures, information flows and son on can be explored without disrupting ongoing operation of the.
Chapter 2 Basic Simulation Modeling
Introduction to modeling and simulation Engr. Hinesh Kumar Institute of Biomedical Technology, LUMHS.
ENM 307 Simulation Department of Industrial Engineering Anadolu University SPRING 2016 Chapter 1 Basic Simulation Modeling Onur Kaya END 201, Ext: 6439.
 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,
Introduction The objective of simulation – Analysis the system (Model) Analytically the model – a description of some system intended to predict the behavior.
1 CS 214 Modeling and Simulation Introduction. 2 Goals of This Course lIntroduce Modeling lIntroduce Simulation lDevelop an Appreciation for the Need.
Simulation Examples And General Principles Part 2
Discrete-Event System Simulation in Java. Discrete Event Systems New dynamic systems New dynamic systems Computer and communication networks Computer.
Building Valid, Credible & Appropriately Detailed Simulation Models
NETW 707: Modeling & Simulation Course Instructor: Tallal Elshabrawy Instructor Office: C3.321 Instructor Teaching.
Chapter 1 What is Simulation?. Fall 2001 IMSE643 Industrial Simulation What’s Simulation? Simulation – A broad collection of methods and applications.
Introduction To Modeling and Simulation 1. A simulation: A simulation is the imitation of the operation of real-world process or system over time. A Representation.
Modelling & Simulation of Semiconductor Devices Lecture 1 & 2 Introduction to Modelling & Simulation.
Traffic Simulation L2 – Introduction to simulation Ing. Ondřej Přibyl, Ph.D.
Prepared by Lloyd R. Jaisingh
Pieces of a Simulation Entities
Modeling and Simulation (An Introduction)
ADVANTAGES OF SIMULATION
Chapter 1.
Simulation Department of Industrial Engineering Anadolu University
Chapter 10 Verification and Validation of Simulation Models
Basic Simulation Modeling II
Onur Kaya END 201, Ext: 6439 ENM 307 Simulation Department of Industrial Engineering Anadolu University SPRING 2018 Chapter.
Discrete-Event System Simulation
MECH 3550 : Simulation & Visualization
MECH 3550 : Simulation & Visualization
IE 324 SIMULATION 2019 – 2020 FALL INTRODUCTION.
Presentation transcript:

INTRODUCTION TO SIMULATION

WHAT IS SIMULATION? The imitation of the operation of a real-world process or system over time… Most widely used tool (along LP) for decision making Usually on a computer with appropriate software An analysis (descriptive) tool – can answer what if questions A synthesis (prescriptive) tool – if complemented by other tools Applied to complex systems that are impossible to solve mathematically This course focuses on one form of simulation modelling – discrete-event simulation modelling.

APPLICATIONS Systems – facility or process, actual or planned Examples Manufacturing facility Bank operation Airport operations (passengers, security, planes, crews, baggage) Transportation/logistics/distribution operation Hospital facilities (emergency room, operating room, admissions) Computer network Freeway system Business process (insurance office) Criminal justice system Chemical plant Fast-food restaurant Supermarket Theme park Emergency-response system

REAL WORLD SYSTEMS OF INTEREST ARE HIGHLY COMPLEX!!! A set of interacting components or entities operating together to achieve a common goal or objective. Examples: A manufacturing system with its machine centers, inventories, conveyor belts, production schedule, items produced. A telecommunication system with its messages, communication network servers. A theme park with rides, workers, … REAL WORLD SYSTEMS OF INTEREST ARE HIGHLY COMPLEX!!!

WHY & HOW TO STUDY A SYSTEM Measure/estimate performance Improve operation Prepare for failures System Experiment with the actual system Experiment with a physical model of the system Experiment with a mathematical model of the system IE 325 IE 202 IE 303 … Mathematical Analysis Simulation IE 324

MATHEMATICAL MODEL An abstract and simplified representation of a system Specifies Important components Assumptions/approximations about how the system works Not an exact re-creation of the original system! If model is simple enough, study it with Queueing Theory, Linear Programming, Differential Equations... If model is complex, Simulation is the only way!!!

GETTING ANSWERS FROM MODELS ACTUAL SYSTEM Operating Policies Single queue, parallel servers FIFO Input Parameters No of servers Inter-arrival Time Distribution Service Time Distributions (X) (Y) Output Parameters Waiting Times System Size Utilizations MODEL Y = f (X)

STOCHASTIC MODELS Randomness or uncertainty is inherent IE325 Randomness or uncertainty is inherent Example: Bank with customers and tellers m l m m ACTUAL SYSTEM QUEUEING MODEL

CLASSIFICATION OF SIMULATION MODELS Static (Monte Carlo) Dynamic Systems Represents the system at a particular point in time IID observations Represents the system behaviour over time Continuous Simulation: (Stochastic) Differential Equations Discrete Event Simulation: System quantities (state variables) change with events Estimation of p Risk Analysis in Business Water Level in a Dam Queueing Systems Inventory Systems

HOW TO SIMULATE By hand Spreadsheets Buffon Needle and Cross Experiments (see Kelton et al.) Spreadsheets Programming in General Purpose Languages Java Simulation Languages SIMAN Simulation Packages Arena Issue: Modeling Flexibility vs. Ease of Use

ADVANTAGES OF SIMULATION When mathematical analysis methods are not available, simulation may be the only investigation tool When mathematical analysis methods are available, but are so complex that simulation may provide a simpler solution Allows comparisons of alternative designs or alternative operating policies Allows time compression or expansion

DISADVANTAGES OF SIMULATION For a stochastic model, simulation estimates the output while an analytical solution, if available, produces the exact output Often expensive and time consuming to develop An invalid model may result with confidence in wrong results.

STEPS IN A SIMULATION STUDY Model conceptualization No Experimental Design Yes Setting of objectives and overall project plan Model translation Verified? Yes Validated? Problem formulation Production runs and analysis No Yes Yes More runs? Data collection No No Implementation Documentation and reporting

PROBLEM FORMULATION A statement of the problem the problem is clearly understood by the simulation analyst the formulation is clearly understood by the client

SETTING OF OBJECTIVES & PROJECT PLAN Project Proposal Determine the questions that are to be answered Identify scenarios to be investigated Decision criteria Determine the end-user Determine data requirements Determine hardware, software, & personnel requirements Prepare a time plan Cost plan and billing procedure

STEPS IN A SIMULATION STUDY Model conceptualization No Experimental Design Yes Setting of objectives and overall project plan Model translation Verified? Yes Validated? Problem formulation Production runs and analysis No Yes Yes More runs? Data collection No No Implementation Documentation and reporting

MODEL CONCEPTUALIZATION Real World System Assumed system Conceptual model Logical model

CONCEPTUAL MODEL Abstract essential features Events, activities, entities, attributes, resources, variables, and their relationships Performance measures Data requirements Select correct level of details (assumptions)

LEVELS OF DETAIL Low levels of detail may result in lost of information and goals cannot be accomplished High levels of detail require: more time and effort longer simulation runs more likely to contain errors

Scope & level of details Scope & level of details Accuracy of the model Scope & level of details Cost of model Scope & level of details

COMPONENTS OF A SYSTEM Entity: is an object of interest in the system Dynamic objects — get created, move around, change status, affect and are affected by other entities, leave (maybe) Usually have multiple realizations floating around Can have different types of entities concurrently Example: Health Center Patients Visitors

COMPONENTS OF A SYSTEM Attribute: is a characteristic of all entities, but with a specific value “local” to the entity that can differ from one entity to another. Example: Patient Type of illness, Age, Sex, Temperature, Blood Pressure

COMPONENTS OF A SYSTEM Resources: what entities compete for Entity seizes a resource, uses it, releases it Think of a resource being assigned to an entity, rather than an entity “belonging to” a resource “A” resource can have several units of capacity which can be changed during the simulation Example: Health Center Doctors, Nurses X-Ray Equipment

COMPONENTS OF A SYSTEM Variable: A piece of information that reflects some characteristic of the whole system, not of specific entities Entities can access, change some variables Example: Health Center Number of patients in the system, Number of idle doctors, Current time

COMPONENTS OF A SYSTEM State: A collection of variables that contains all the information necessary to describe the system at any time Example: Health Center {Number of patients in the system, Status of doctors (busy or idle), Number of idle doctors, Status of Lab equipment, etc}

COMPONENTS OF A SYSTEM Event: An instantaneous occurrence that changes the state of the system Example: Health Centre Arrival of a new patient, Completion of service (i.e., examination) Failure of medical equipment, etc.

COMPONENTS OF A SYSTEM Activity: represents a time period of specified length. Example: Health Center Surgery, Checking temperature, X-Ray.

LOGICAL (FLOWCHART) MODEL Shows the logical relationships among the elements of the model 2 Departure event L(t)=L(t)-1 NO Q(t)> 0 ? YES B(t)=0 Q(t)=Q(t)-1 Generate service & schedule new departure L : # of entities in system Q : # of entities in queue B : # of entities in server 3 Collect & update statistics TB, TQ, TL, N

STEPS IN A SIMULATION STUDY Model conceptualization No Experimental Design Yes Setting of objectives and overall project plan Model translation Verified? Yes Validated? Problem formulation Production runs and analysis No Yes Yes More runs? Data collection No No Implementation Documentation and reporting

DATA COLLECTION & ANALYSIS Collect data for input analysis and validation Analysis of the data Determine the random variables Fit distribution functions

STEPS IN A SIMULATION STUDY Model conceptualization No Experimental Design Yes Setting of objectives and overall project plan Model translation Verified? Yes Validated? Problem formulation Production runs and analysis No Yes Yes More runs? Data collection No No Implementation Documentation and reporting

MODEL TRANSLATION Simulation model executes the logic contained in the flow-chart model Coding General Purpose Language Special Purpose Simulation Language/Software Examples: Examples: JAVA, C++, Visual BASIC SIMAN, ARENA, EXTEND

ARENA EXAMPLE

JAVA EXAMPLE public static void main(String argv[]) { Initialization(); //Loop until first "TotalCustomers" have departed while (NumberofDepartures < TotalCustomers) Event evt = FutureEventList[0]; //get imminent event removefromFEL(); //be rid of it Clock = evt.get_time(); //advance in time if (evt.get_type() == arrival) ProcessArrival(); else ProcessDeparture(); } ReportGeneration();

STEPS IN A SIMULATION STUDY Model conceptualization No Experimental Design Yes Setting of objectives and overall project plan Model translation Verified? Yes Validated? Problem formulation Production runs and analysis No Yes Yes More runs? Data collection No No Implementation Documentation and reporting

VERIFICATION AND VALIDATION Verification: the process of determining if the operational logic is correct. Debugging the simulation software Validation: the process of determining if the model accurately represents the system. Comparison of model results with collected data from the real system

VERIFICATION AND VALIDATION Real World System Conceptual model VALIDATION Logical model VERIFICATION Simulation model

STEPS IN A SIMULATION STUDY Model conceptualization No Experimental Design Yes Setting of objectives and overall project plan Model translation Verified? Yes Validated? Problem formulation Production runs and analysis No Yes Yes More runs? Data collection No No Implementation Documentation and reporting

EXPERIMENTAL DESIGN Alternative scenarios to be simulated Type of output data analysis (steady-state vs. terminating simulation analysis) Number of simulation runs Length of each run The manner of initialization Variance reduction

ANALYSIS OF RESULTS Statistical tests for significance and ranking Point Estimation Confidence-Interval Estimation Interpretation of results More runs?

STEPS IN A SIMULATION STUDY Model conceptualization No Experimental Design Yes Setting of objectives and overall project plan Model translation Verified? Yes Validated? Problem formulation Production runs and analysis No Yes Yes More runs? Data collection No No Implementation Documentation and reporting

DOCUMENTATION & REPORTING Program Documentation Allows future modifications Creates confidence Progress Reports Frequent reports (e.g. monthly) are suggested Alternative scenarios Performance measures or criteria used Results of experiments Recommendations

IMPLEMENTATION ? FAILURE SUCCESS