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

Simulation - An Introduction Simulation:- The technique of imitating the behaviour of some situation or system (economic, military, mechanical, etc.) by.
Modeling and Simulation By Lecturer: Nada Ahmed. Introduction to simulation and Modeling.
Introduction into Simulation Basic Simulation Modeling.
INTRODUCTION TO MODELING
Chapter 1 Introduction to Modeling DECISION MODELING WITH MICROSOFT EXCEL Copyright 2001 Prentice Hall.
Modeling & Simulation. System Models and Simulation Framework for Modeling and Simulation The framework defines the entities and their Relationships that.
INTRODUCTION TO SIMULATION
Modeling and simulation of systems Slovak University of Technology Faculty of Material Science and Technology in Trnava.
Geog 409: Advanced Spatial Analysis & Modelling © J.M. Piwowar1Principles of Spatial Modelling.
Chapter 15 Application of Computer Simulation and Modeling.
Decision Making: An Introduction 1. 2 Decision Making Decision Making is a process of choosing among two or more alternative courses of action for the.
FIN 685: Risk Management Topic 5: Simulation Larry Schrenk, Instructor.
Model Classification and Steps in a Simulation Study
Discrete-Event Simulation: A First Course Steve Park and Larry Leemis College of William and Mary.
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.
SIMULATION. Simulation Definition of Simulation Simulation Methodology Proposing a New Experiment Considerations When Using Computer Models Types of Simulations.
Descriptive Modelling: Simulation “Simulation is the process of designing a model of a real system and conducting experiments with this model for the purpose.
Lab 01 Fundamentals SE 405 Discrete Event Simulation
Feedback Control Systems (FCS)
Basic Simulation Modeling II
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.
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.
ENM 503 Lesson 1 – Methods and Models The why’s, how’s, and what’s of mathematical modeling A model is a representation in mathematical terms of some real.
Modeling and simulation of systems Model building Slovak University of Technology Faculty of Material Science and Technology in Trnava.
Lecture 7: Requirements Engineering
MGS3100_01.ppt/Aug 25, 2015/Page 1 Georgia State University - Confidential MGS 3100 Business Analysis Introduction - Why Business Analysis Aug 25 and 26,
Chap. 5 Building Valid, Credible, and Appropriately Detailed Simulation Models.
McGraw-Hill/Irwin © 2006 The McGraw-Hill Companies, Inc., All Rights Reserved. 1.
Chapter 10 Verification and Validation of Simulation Models
Building Simulation Model In this lecture, we are interested in whether a simulation model is accurate representation of the real system. We are interested.
Fall 2011 CSC 446/546 Part 1: Introduction to Simulation.
Lecture 1 – Operations Research
12/7/2015© 2008 Raymond P. Jefferis III1 Simulation of Computer Systems.
Introduction to Simulation K.Sailaja Kumar 1 SYSTEM SIMULATION AND MODELLING Course Code: MCA 52 Faculty : Sailaja Kumar k.
1 1 Slide Simulation Professor Ahmadi. 2 2 Slide Simulation Chapter Outline n Computer Simulation n Simulation Modeling n Random Variables and Pseudo-Random.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
Module 4: Systems Development Chapter 13: Investigation and Analysis.
Introduction to modeling and simulation Engr. Hinesh Kumar Institute of Biomedical Technology, LUMHS.
Csci 418/618 Simulation Models Dr. Ken Nygard, IACC 262B
 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,
Simulation Examples And General Principles Part 2
Building Valid, Credible & Appropriately Detailed Simulation Models
NETW 707: Modeling & Simulation Course Instructor: Tallal Elshabrawy Instructor Office: C3.321 Instructor Teaching.
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.
OPERATING SYSTEMS CS 3502 Fall 2017
Prepared by Lloyd R. Jaisingh
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
World-Views of Simulation
Discrete-Event System Simulation
MECH 3550 : Simulation & Visualization
Building Valid, Credible, and Appropriately Detailed Simulation Models
MECH 3550 : Simulation & Visualization
MECH 3550 : Simulation & Visualization
IE 324 SIMULATION 2019 – 2020 FALL INTRODUCTION.
Presentation transcript:

INTRODUCTION TO SIMULATION IE 324 SIMULATION INTRODUCTION TO SIMULATION

WHAT IS SIMULATION? To feign, to obtain the essence of, without reality. [Webster’s Collegiate Dictionary] The imitation of the operation of a real-world process or system over time. [Banks et al. (2005)] The process of designing a logical or mathematical model of a real system and then conducting computer based experiments with the model to describe, explain, and predict the behaviour of the real system. [Taylor (1984)]

WAYS TO STUDY A SYSTEM System Experiment with the actual system with a model of the system Physical Model Abstract Model Analytical Model Simulation

INPUT/OUTPUT PROCESS (Y) (X) Y=f(X) REAL-LIFE SYSTEM Decision variables Parameters SIMULATION MODEL System response (Y) (X) Y=f(X)

EXAMPLE: HEALTH CENTER Number of Doctors Capacity of equipment Arrival rate SIMULATION MODEL OF HEALTH CENTRE Time in the system Utilization of doctors Waiting time

EXAMPLE:SERIAL PRODUCTION LINE ……. 1 2 3 N Length of the line Size of buffers Processing times SIMULATION MODEL OF PRODUCTION LINE Throughput Interdeparture time variability Utilizations

ORIGIN OF SIMULATION Lie in statistical sampling theory, e.g., random numbers, random sampling (Before the 2nd world war) Monte Carlo simulation (During the 2nd world war) Modern Applications (After the 2nd world war)

POPULARITY OF SIMULATION Consistently ranked as the most useful, popular tool in the broader area of operations research / management science

SYSTEM A system is a group of objects (or elements) that are joined together in some regular interactions towards the accomplishment of some stated objective or purpose

COMPONENTS OF A SYSTEM Entity: is an object of interest in the system (which requires an explicit representation in the system model) Example: Health Center Patients, Doctors & Nurses, Rooms & beds Lab equipment, X-Ray machine, etc.

COMPONENTS OF A SYSTEM Attribute: is a characteristic of an entity Example: Patient Type of illness, Age, Sex, etc.

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 idles), Number of idle doctors, Status of Lab equipment, etc

EVENT An instantaneous occurrence that may change the state of the system Example: Health Centre Arrival of a new patient, Completion of a service (i.e., examination) Failure of medical equipment, etc.

VARIABLES Relevant variables Irrelevant variables affect the system performance ………..Don’t affect ……... Endogenous variables Exogenous variables

EXOGENOUS VARIABLES Input variables External to the model (i.e., exist independently of the model) Exogenous variables Controllable variables (Decision Variables) Uncontrollable variables (Parameters) That can be manipulated to an extent by the DM Cannot be manipulated

ENDOGENOUS VARIABLES Output variables Internal to the model and are functions of the exogenous variables and the model dynamics Examples: Performance measures State variables

BE CAREFUL !!! Classification of relevant vs. irrelevant variables depends on: Purpose of the study Scope (Level of Detail) Classification of controllable vs. uncontrollable variables depends on: Purpose of the study (existing vs. new) Resources that are under control of the DM

MODEL Why do we need a model? Why do we study a system? To design new systems To improve system performance To solve problems affecting the system performance Why do we need a model? The system does not exist (i.e., conceptual stage) Impractical or too costly to experiment with the actual system

MODEL A representation of a system for the purpose of studying the system ….by Banks et al. (2005).

CLASSIFICATION OF MODELS Physical Models Abstract Models Resemble the real system physically (a small scale representation Use symbolic notation & mathematical equations to represent a systems BEGIN; EI=BI+PROD-DEMAND . END;

ABSTRACT MODELS Prescriptive (Normative Models) Descriptive Models Used to formulate & solve a problem Used to describe the system behaviour Examples: Examples: Linear Programming Dynamic Programming Simulation Queuing Models

ABSTRACT MODELS Analytical Numerical Examples: Examples: Employ the deductive reasoning of mathematics to solve the model Employ computational procedures to solve the mathematical models Examples: Examples: Queuing models Differential calculus Simulation Linear programming

ABSTRACT MODELS Stochastic Deterministic Examples: Examples: Contains one or more random variables Does not contain a random variable Examples: Examples: Simulation Stochastic programming LP, MIP and DP Simulation

ABSTRACT MODELS Static Dynamic Examples: Examples: Represents the system at a particular point in time Represents the system as it changes over time Examples: Examples: Many optimization models covered in our curriculum Monte Carlo simulation Simulation Dynamic Programming Control Models Queueing Models

ABSTRACT MODELS Discrete Continuous Examples: Examples: May only take a limited or specified values May take on the value of any real number Examples: Examples: Integer Programming Simulation Simulation Queueing Models

CHARACTERISTICS OF SIMULATION Abstract Numerical Descriptive Deterministic/Stochastic Static/Dynamic Discrete/Continuous

ANALYTICAL VS SIMULATION Use analytical model whenever possible Use simulation when 1) Complete mathematical formulation does not exist or an analytical solution cannot be developed 2) Analytical methods are available, but the mathematical procedures are so complex that simulation provides a simpler solution 3) It is desired to observe a simulated history of the process over a period of time in addition to estimating certain system performances

CAPABILITIES OF SIMULATION Time compression and expansion Explains “why?” Allows to explore possibilities (What if?”) Helps diagnosing problems & identify constraints Requires fewer assumptions Handles randomness and uncertainty Handles dynamic behaviour Flexible and easy to change Credible and results are easier to explain

LIMITATIONS OF SIMULATION “Run” rather than “solve” Random output obtained from stochastic simulations (Statistical analysis of output is required) Cannot generate optimal solution on its own Requires specialized training (probability, statistics, computer programming, modelling, system analysis, simulation methodology) Costly (software and hardware)

SIMULATION APPLICATIONS

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 Problem, but not symptoms Criteria for selecting a problem: Technical, economic and political feasibility Perceived urgency for a solution

SETTING OBJECTIVES & PROJECT PLAN (PROJECT PROPOSAL) Determine the questions that are to be answered Identify scenarios to be investigated Scope (Level of detail) Determine the end-user Determine data requirements Determine hardware, software, & personnel requirements Prepare a time plan Cost plan and billing procedure

MODEL DEVELOPMENT Conceptual model Logical model Simulation model Real World System Conceptual model Logical model Simulation model

CONCEPTUAL MODEL Conceptual model Real World System Subsystem of interest Conceptual model

CONCEPTUAL MODEL Questions to be answered Scope (Level of detail) Performance measures Events, entities, attribute, exogenous variables, endogenous variables, & their relationships Data requirements

SCOPE More detailed the model is, more representative it is of the actual system (if the modeling is done correctly) A more detailed model requires: more time and effort longer simulation runs more likely to contain errors

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

Tends toward too much detail Tends toward greater detail SCOPE Modeller Novice Modeller Experienced Modeller Tends toward too much detail Tends toward greater detail KISS

LEVELS OF DETAIL Evaluate if the candidate systems work Compare two or more systems to determine better ones Accurately predict the performance of selected system Scope

LOGICAL (FLOWCHART) MODEL Shows the logical relationships among the elements of the model start Read data check Set new event Generate data Calculate Stats check Print Stop

SIMULATION (OPERATIONAL) MODEL The model that executes the logic contained in the flow-chart model Coding Special Purpose Languages & Environments General Purpose Languages Examples: Examples: FORTRAN, C, PASCAL SIMAN, ARENA. AUTOSIM

SIMAN MODEL --- MODEL FILE --- BEGIN; CREATE,1:,EXPO(40):EX(40):MARK(1); QUEUE,1; SEIZE:DOCTOR; DELAY:EXPO(30); TALLY:1,INT(1); RELEASE:DOCTOR; COUNT:1:DISPOSE; END: ----EXPERIMENTAL FILE ----- PROJECT,HEALTH_CENTRE, IHSA SABUNCUOGLU,24/1/2000; DISCRETE,100,1,1; RESOURCES:1, DOCTORS; DSTATS:1,NQ(!),NUMBER_IN_QUEUE: 2,NR(1),DOCTOR UTILIZATION; TALLIES:1, TIME IN HEALTH_CENTRE; COUNTERS:1,No. OF PATIENTS SERVED;

ARENA MODEL

Java Model // Loop until first "TotalCustomers" have departed while(NumberOfDepartures < TotalCustomers ) { Event evt = (Event)FutureEventList.getMin(); // get imminent event FutureEventList.dequeue(); // be rid of it Clock = evt.get_time(); // advance simulation time if( evt.get_type() == arrival ) ProcessArrival(evt); else ProcessDeparture(evt); } ReportGeneration();

DATA COLLECTION & ANALYSIS The client often collects the data & submit it in electronic format Simulation Analyst: Determines the random variables Determines the data requirements Analyses the data Fits distribution functions

VERIFICATION AND VALIDATION Verification: the process of determining if the operational logic of the model is correct. Validation:the process of determining if the model accurate representation of the system.

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

EXPERIMENTAL DESIGN Alternative scenarios to be simulated Type of output data analysis (steady state vs. transient state analysis) Number of simulation runs Length of each run Initialization Variance reduction

ANALYSIS OF RESULTS Determine the simulation runs necessary to estimate the performance measures Statistical tests for significance and ranking Interpretation of results

DOCUMENTATION General model logic Key elements of the model Data structures Alternative scenarios Performance measures or criteria used Results of experiments Recommendations

IMPLEMENTATION ? FAILURE SUCCESS