1 CS 214 Modeling and Simulation Introduction. 2 Goals of This Course lIntroduce Modeling lIntroduce Simulation lDevelop an Appreciation for the Need.

Slides:



Advertisements
Similar presentations
Simulation - An Introduction Simulation:- The technique of imitating the behaviour of some situation or system (economic, military, mechanical, etc.) by.
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.
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.
FIN 685: Risk Management Topic 5: Simulation Larry Schrenk, Instructor.
Classification of Simulation Models
1 Simulation Lecture 6 Simulation Chapter 18S. 2 Simulation Simulation Is …  Simulation – very broad term  methods and applications to imitate or mimic.
CPS 808 Introduction To Modeling and Simulation
Model Classification and Steps in a Simulation Study
Discrete-Event Simulation: A First Course Steve Park and Larry Leemis College of William and Mary.
Introduction1 What Is A Model ? A Representation of an object, a system, or an idea in some form other than that of the entity itself. (Shannon)
Chapter 1 Introduction to Simulation Modeling T. Altiok and B. Melamed.
Robert M. Saltzman © DS 851: 4 Main Components 1.Applications The more you see, the better 2.Probability & Statistics Computer does most of the work.
Lab 01 Fundamentals SE 405 Discrete Event Simulation
Basic Simulation Modeling II
CS 450 Modeling and Simulation
Basic Concepts The Unified Modeling Language (UML) SYSC System Analysis and Design.
Modeling and Simulation
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.
CS433: Modeling and Simulation Dr. Anis Koubâa Al-Imam Mohammad Ibn Saud University 27 February 2010 Lecture 02: Modeling.
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.
Modeling and simulation of systems Model building Slovak University of Technology Faculty of Material Science and Technology in Trnava.
Chapter 2 – Fundamental Simulation ConceptsSlide 1 of 46 Chapter 2 Fundamental Simulation Concepts.
Chapter 10 Verification and Validation of Simulation Models
Fall 2011 CSC 446/546 Part 1: Introduction to Simulation.
Object Oriented Discrete-Event Simulation CS4730 Fall 2010 Jose M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
Introduction to Simulation K.Sailaja Kumar 1 SYSTEM SIMULATION AND MODELLING Course Code: MCA 52 Faculty : Sailaja Kumar k.
CS433 Modeling and Simulation Lecture 01 Introduction 1 Dr. Anis Koubâa Al-Imam Mohammad Ibn Saud University 19.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
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
CS433 Modeling and Simulation Lecture 09 – Part 02 Discrete Events Simulation Dr. Anis Koubâa 27 Dec 2008 Al-Imam.
Csci 418/618 Simulation Models Dr. Ken Nygard, IACC 262B
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,
1 CS 214 Modeling and Simulation Modeling. TERMINOLOGY lSystem –A group of objects that are joined together in some regular interaction or interdependence.
Introduction The objective of simulation – Analysis the system (Model) Analytically the model – a description of some system intended to predict the behavior.
Simulation Examples And General Principles Part 2
K. Salah1 ICS 533 Introduction To Modeling and Simulation.
Introduction to Modeling & Simulation Dr. A. K. Dey Third Lecture
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.
Introduction To Modeling and Simulation Rabie A. Ramadan odeling / Lecture 1.
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
Basic Simulation Modeling II
Onur Kaya END 201, Ext: 6439 ENM 307 Simulation Department of Industrial Engineering Anadolu University SPRING 2018 Chapter.
Modeling and Simulation: Fundamentals and Implementation
Simulation and Modeling
Discrete-Event System Simulation
MECH 3550 : Simulation & Visualization
MECH 3550 : Simulation & Visualization
Presentation transcript:

1 CS 214 Modeling and Simulation Introduction

2 Goals of This Course lIntroduce Modeling lIntroduce Simulation lDevelop an Appreciation for the Need for Simulation lDevelop Facility in Simulation Model Building l“Learn by Doing”--Lots of Case Studies

Let’s Begin…

4 What Is A Model ? A Representation of an object, a system, or an idea in some form other than that of the entity itself. (Shannon)

System vs. Its Model Simplification Abstraction Assumptions Real System Model Understanding

Example 6 Real System (Motherboard) Models of the System

Example 7 Models of the System

Example 8 Models of the System

Example Simulations War gaming: test strategies; training Flight Simulator Transportation systems: improved operations; urban planning Computer communication network: protocol design Parallel computer systems: developing scalable software Games

Types of Models Physical (iconic) models –Tabletop material-handling models –Mock-ups of fast-food restaurants –Flight simulators Logical (mathematical) models –Approximations and assumptions about a system’s operation –Often represented via computer program in appropriate software –Exercise the program to try things, get results, learn about model behavior

Physical (Prototypes)

Analytical (Mathematical) Single Stage Queuing Model

Computer (Monte Carlo Simulation)

Descriptive (Performance analysis) Simulation vs. Real World

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

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

What is Simulation? lA Simulation of a system is the operation of a model, which is a representation of that system. lThe model is amenable to manipulation which would be impossible, too expensive, or too impractical to perform on the system which it portrays. lThe operation of the model can be studied, and, from this, properties concerning the behavior of the actual system can be inferred.

18 Applications: lDesigning and analyzing manufacturing systems lEvaluating H/W and S/W requirements for a computer system lEvaluating a new military weapons system lDetermining ordering policies for an inventory system lDesigning communications systems and message protocols for them

19 Applications: (continued) lDesigning and operating transportation facilities such as freeways, airports, subways, or ports lEvaluating designs for service organizations such as hospitals, post offices, or fast-food restaurants lAnalyzing financial or economic systems

HOW TO SIMULATE By hand –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

21 Steps In Simulation and Model Building 1. Define an achievable goal 2. Put together a complete mix of skills on the team 3. Involve the end-user 4. Choose the appropriate simulation tools 5. Model the appropriate level(s) of detail 6. Start early to collect the necessary input data

22 Steps In Simulation and Model Building(cont’d) 7. Provide adequate and on-going documentation 8. Develop a plan for adequate model verification (Did we get the “right answers ?”) 9. Develop a plan for model validation (Did we ask the “right questions ?”) 10. Develop a plan for statistical output analysis

Model Development Life Cycle Define goals, objectives of study Develop conceptual model Develop specification of model Develop computational model Verify model Validate model Fundamentally an iterative process

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

25 Define An Achievable Goal “To model the…” is NOT a goal! “To model the…in order to select/determine feasibility/…is a goal. Goal selection is not cast in concrete Goals change with increasing insight

Put together a complete mix of skills on the team We Need: -Knowledge of the system under investigation -System analyst skills (model formulation) -Model building skills (model Programming) -Data collection skills -Statistical skills (input data representation) -Management skills (to get everyone pulling in the same direction)

27 INVOLVE THE END USER -Modeling is a selling job! -Does anyone believe the results? -Will anyone put the results into action? -The End-user (your customer) can (and must) do all of the above BUT, first he must be convinced! -He must believe it is HIS Model!

28 Choose The Appropriate Simulation Tools Assuming Simulation is the appropriate means, three alternatives exist: 1.Build Model in a General Purpose Language 2.Build Model in a General Simulation Language 3.Use a Special Purpose Simulation Package

GEN. PURPOSE LANGUAGES USED FOR SIMULATION FORTRAN –Probably more models than any other language. PASCAL –Not as universal as FORTRAN MODULA –Many improvements over PASCAL ADA –Department of Defense attempt at standardization C, C++ –Object-oriented programming language

GENERAL PURPOSE SIMULATION LANGUAGES lGPSS –Block-structured Language –Interpretive Execution –FORTRAN-based (Help blocks) –World-view: Transactions/Facilities lSIMSCRIPT II.5 –English-like Problem Description Language –Compiled Programs –Complete language (no other underlying language) –World-view: Processes/ Resources/ Continuous

GEN. PURPOSE SIMULATION LANGUAGES (continued) lMODSIM III –Modern Object-Oriented Language –Modularity Compiled Programs –Based on Modula2 (but compiles into C) –World-view: Processes lSIMULA –ALGOL-based Problem Description Language –Compiled Programs –World-view: Processes

GEN. PURPOSE SIMULATION LANGUAGES (continued) lSLAM –Block-structured Language –Interpretive Execution –FORTRAN-based (and extended) –World-view: Network / event / continuous lCSIM –process-oriented language –C-based (C++ based) –World-view: Processes

SPECIAL PURPOSE PACKAGES USED FOR SIMUL. lNETWORK II.5 –Simulator for computer systems lOPNET –Simulator for communication networks, including wireless networks lCOMNET III –Simulator for communications networks lSIMFACTORY –Simulator for manufacturing operations

THE REAL COST OF SIMULATION Many people think of the cost of a simulation only in terms of the software package price. There are actually at least three components to the cost of simulation: 1.Purchase price of the software 2.Programmer / Analyst time 3.“Timeliness of Results”

TERMINOLOGY lSystem –A group of objects that are joined together in some regular interaction or interdependence toward the accomplishment of some purpose. –Entity –An object of interest in the system. –E.g., customers at a bank

TERMINOLOGY (continued) lAttribute –a property of an entity –E.g., checking account balance lActivity –Represents a time period of specified length. –Collection of operations that transform the state of an entity –E.g., making bank deposits

TERMINOLOGY (continued) lEvent: –change in the system state. –E.g., arrival; beginning of a new execution; departure lState Variables –Define the state of the system –Can restart simulation from state variables –E.g., length of the job queue.

TERMINOLOGY (continued) lProcess –Sequence of events ordered on time WNote: –the three concepts(event, process,and activity) give rise to three alternative ways of building discrete simulation models

SIMULATION “WORLD- VIEWS” lPure Continuous Simulation lPure Discrete Simulation –Event-oriented –Activity-oriented –Process-oriented lCombined Discrete / Continuous Simulation

Examples Of Both Type Models lContinuous Time and Discrete Time Models: CPU scheduling model vs. number of students attending the class.

Examples (continued) lContinuous State and Discrete State Models: Example: Time spent by students in a weekly class vs. Number of jobs in Q.

Static and Dynamic Models: CPU scheduling model vs. E = mc 2 Other Type Models Input Output Input Output lDeterministic and Probabilistic Models:

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

START EARLY TO COLLECT THE NECESSARY INPUT DATA Data comes in two quantities: TOO MUCH!! TOO LITTLE!! With too much data, we need techniques for reducing it to a form usable in our model. With too little data, we need information which can be represented by statistical distributions.

PROVIDE ADEQUATE AND ON-GOING DOCUMENTATION I n general, programmers hate to document. (They love to program!) D ocumentation is always their lowest priority item. (Usually scheduled for just after the budget runs out!) T hey believe that “only wimps read manuals.” W hat can we do? –Use self-documenting languages –Insist on built-in user instructions(help screens) –Set (or insist on) standards for coding style

DEVELOP PLAN FOR ADEQUATE MODEL VERIFICATION Did we get the “right answers?” (No such thing!!) Simulation provides something that no other technique does: Step by step tracing of the model execution. This provides a very natural way of checking the internal consistency of the model.

DEVELOP A PLAN FOR MODEL VALIDATION VALIDATION:“Doing the right thing” Or“Asking the right questions” How do we know our model represents the system under investigation? –Compare to existing system? –Deterministic Case?

DEVELOP A PLAN FOR STATISTICAL OUTPUT ANALYSIS lHow much is enough? Long runs versus Replications lTechniques for Analysis