Modeling and 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.
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.
Discrete Event Simulation - Ch. 1 Instructor: Giampiero Pecelli Office Phone: Office: Olsen 225 Office Hours: Before.
Lecture 3 Concepts of Discrete-Event Simulation. 2 Discrete Event Model  In the discrete approach to system simulation, state changes in the physical.
Chapter 15 Application of Computer Simulation and Modeling.
FIN 685: Risk Management Topic 5: Simulation Larry Schrenk, Instructor.
Classification of Simulation Models
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.
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
Feedback Control Systems (FCS)
Basic Simulation Modeling II
Slide - 1 Dr Terry Hinton 6/9/05UniS - Based on Slides by Micro Analysis & Design An example of a Simulation Simulation of a bank: Three tasks or processes:
Modeling and Simulation
Discrete-Event System Simulation
In Engineering --- Designing a Pneumatic Pump Introduction System characterization Model development –Models 1, 2, 3, 4, 5 & 6 Model analysis –Time domain.
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 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.
1 Introduction to Software Engineering Lecture 1.
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.
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.
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.
Simulation Modeling and Analysis Ernesto Gutierrez-Miravete Rensselaer at Hartford October 14th, 2003.
MA354 Math Modeling Introduction. Outline A. Three Course Objectives 1. Model literacy: understanding a typical model description 2. Model Analysis 3.
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,
Modeling & Simulation of Dynamic Systems (MSDS)
System Analysis System – set of interdependent elements that interact in order to accomplish a one or more final outcomes. Constrained and affected by:
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.
Texts: Gordon G N Deo J Banks et al.  Definition  Advantages and disadvantages  Suitability  Applications  Models  Components of system  Simple.
Traffic Simulation L2 – Introduction to simulation Ing. Ondřej Přibyl, Ph.D.
Simulation Modeling.
CPSC 531: System Modeling and Simulation
OPERATING SYSTEMS CS 3502 Fall 2017
CPSC 531: System Modeling and Simulation
Prepared by Lloyd R. Jaisingh
Modeling and Simulation (An Introduction)
ADVANTAGES OF SIMULATION
Chapter 1.
DSS & Warehousing Systems
Chapter 10 Verification and Validation of Simulation Models
Basic Simulation Modeling II
Discrete-Event System Simulation
Discrete Event Simulation - Ch. 1
MECH 3550 : Simulation & Visualization
MECH 3550 : Simulation & Visualization
SIMULATION IN THE FINANCE INDUSTRY BY HARESH JANI
Presentation transcript:

Modeling and Simulation NETW 707 Modeling and Simulation Amr El Mougy

People and Resources Instructor: Amr El Mougy Email: amr.elmougy@guc.edu.eg Office hours: Monday 2:00-3:00, Thursday 3:00-4:00 Office: C7.312 TA: Maggie Mashaly Email: maggie.ezzat@guc.edu.eg Office hours: Office:

Assessment

Pre-Requisites Probability MS-Excel Programming skills

Textbook Author: Averill M. Law Title: “Simulation Modeling and Analysis”, Fourth Edition Publisher: McGraw-Hill Higher Education Year: 2007 Notes: The codes in this book are written in C++. However, simulations throughout the course will be done using Excel. Ideas from this book will be used Part of the contents of the slides are copyrighted to Dr. Akram Ali - These slides are not meant to be comprehensive lecture notes! They are only remarks and pointers. The material presented here is not sufficient for studying for the course. Your main sources for studying are the textbook and your own lecture notes

Course Outline Introduction to simulation Simulation examples in Excel spreadsheets General principles of simulation Statistical models in simulation Queuing models Random number generation Random variate generation Monte-Carlo simulation

Lecture (1) Introduction to Systems and Simulation

Systems Systems: a group of objects joined together in some regular interaction or interdependence towards the accomplishment of some purpose Example: A production system manufacturing automobiles. Machines, components and workers operate jointly to produce vehicles

System Environment A system is affected by changes that occur outside its boundaries. Such changes are said to occur in the system environment The boundary between the system and its environment depend on the purpose of the study Example: Bank System There is a limit on the maximum interest rate that can be paid For a study of a single bank, this would be an example of a constraint imposed by the environment For a study of the effect of monetary laws on the banking industry, the setting of the limit would be an activity of the system

System Components System Entity Attribute State Activity Event Object of interest in the system An instantaneous occurrence that may change the state of the system Property of an entity System An action that takes place over a period of specified length and changes the state of the system The collection of variables necessary to describe the system at a particular time, relative to the objectives of the study [Law]

System Components Exogenous: Activities and events occurring outside the system Endogenous: Activities and events occurring within a system

Balance in the customers’ accounts Example Attribute: Balance in the customers’ accounts State Variables: # busy tellers, # customers waiting in line or being served, arrival time of next customer Entity: Customers Activity: Making deposits Events: Arrival, departure

Examples System Entities Attributes Activities Events State Variables Railway Passengers Origin, destination Traveling Arrival at station, arrival at destination Number of passengers waiting at each station Production Machines Speed, capacity, breakdown rate Welding, stamping Breakdown Status of machines (busy, idle, shutdown) Communications Messages Length, destination Transmitting Arrival at destination Number of packets waiting to be transmitted Inventory Warehouse Capacity Withdrawal Demand Level of inventory

Types of Systems Discrete Continuous State variables change instantaneously at separated points in time Example: Bank Number of customers changes only when customer arrives or departs State variables change constantly with respect to time Example: Airplane flight Position and velocity are constantly changing with respect to time

Note It is often possible to use discrete event simulations to approximate the behaviour of a continuous system. This greatly simplifies the analysis “ Few systems in practice are wholly discrete or continuous. But since one type of change dominates for most systems, it will usually be possible to classify a system as being discrete or continuous” [Law, 2007]

Ways to Study a System [Law] Experiment with the Actual System Experiment with a Model of the System Physical Model Mathematical Model Analytical Solution Simulation

Why are Models Used? It is not possible to experiment with the actual system, e.g.: the experiment is destructive The system might not exist, i.e. the system is in the design stage Example: Bank Reducing the number of tellers to study the effect on the length of waiting lines may annoy the customers such that they will move their accounts to a competitor

Models A model is a representation of a system for the purpose of studying that system It is only necessary to consider those aspects of the system that affect the problem under investigation The model is a simplified representation of the system The model should be sufficiently detailed to permit valid conclusions to be drawn about the actual system Different models of the same system may be required as the purpose of the investigation changes

Types of Models A Mathematical Model utilizes symbolic notations and equations to represent a system Example: current and voltage equations are mathematical models of an electric circuit A Physical Model is a larger or smaller version of an object Example: enlargement of an atom or a scaled version of the solar system

Classifications of Simulation Models Static Dynamic Deterministic Stochastic Discrete Continuous

Static and Dynamic Models i.e. Monte Carlo Simulation – Represents a system at a particular point in time Example: Simulation of a coin toss game Dynamic Represents systems as they change over time Example: The simulation of a bank from 9:00am – 4:00pm

Deterministic and Stochastic Models Contain no random variables Has a known set of inputs that will result in a unique set of outputs Example: Patients arriving at the dentist’s office exactly at their scheduled appointments Stochastic Has one or more random variables Random inputs lead to random outputs Random outputs only estimates of the true characteristics of the system Example: random arrivals at a bank. Output may be average number of waiting customers, average waiting time. This output is only a statistical estimate of the system

Discrete and Continuous Models Not always used to simulate a discrete system Example: Tanks and pipes may be modeled discretely, even though the flow is continuous Continuous Not always used to simulate a continuous system The choice of whether to use a discrete or continuous model depends on the characteristics of the system and the objectives of the study

Introduction to Simulation Simulation is the imitation of a real-world process or system over time [Banks et al.] It is used for analysis and study of complex systems Simulation requires the development of a simulation model and then conducting computer-based experiments with the model to describe, explain, and predict the behaviour of the real system

When is Simulation Appropriate Simulation enables the study of, and interaction with, the internal actions of a real system The effects of changes in state variables on the model’s behaviour can be observed The knowledge gained from the simulation model can be used to improve the design of the real system under investigation

When is Simulation Appropriate Changing inputs and observing outputs can produce valuable insights about the importance of variables and how they interact Simulations can be used to experiment with different designs and policies before implementation so as to prepare for what might happen Simulations can be used to verify analytic solutions

When is Simulation not Appropriate The problem can be solved by common sense The problem can be solved analytically It is less expensive to perform direct experiments Costs of modeling and simulation exceed savings Resources or time are not available Lack of necessary data System is very complex or cannot be defined

Advantages of Simulation Effects of variations in the system parameters can be observed without disturbing the real system New system designs can be tested without committing resources for their acquisition Hypotheses on how or why certain phenomena occur can be tested for feasibility Time can be expanded or compressed to allow for speed up or slow down of the phenomenon under investigation Insights can be obtained about the interactions of variables and their importance Bottleneck analysis can be performed in order to discover where work processes are being delayed excessively

Disadvantages of Simulation Model building requires special training Simulation results are often difficult to interpret. Most simulation outputs are random variables - based on random inputs – so it can be hard to distinguish whether an observation is the result of system inter- relationship or randomness Simulation modeling and analysis can be time consuming and expensive

Offsetting the Disadvantages of Simulation Utilize simulation packages that only need input for their operation, e.g.: SIMULINK, MS-Excel Many simulation packages have output analysis capabilities, e.g. MATLAB, Excel Simulation has become faster due to advances in hardware

Steps in a Simulation Study Phase I Problem formulation: statement of the problem Setting of objectives and overall design: questions to be answered by the simulation Phase II Model conceptualization: abstract the essential features of the problem, select and modify basic assumptions that characterize the system, start with a simple model, enrich and elaborate the model Data collection: start early because it may take a lot of time Model translation: programming Verification: is the computer program functioning properly Validation: does the model accurately represent the system Phase III Experimental design: which alternatives (designs) to simulate Production runs and analysis: to estimate measures of performance for the system designs that have been simulated. Measures of performance may depend on statistical analysis, e.g.: average, probability, frequency, etc. More runs? a sufficient number is needed to guarantee statistical accuracy Phase IV Documentation Implementation

Setting of Objectives and Overall Project Plan 2 1 Problem Formulation Setting of Objectives and Overall Project Plan 2 3 4 Model Conceptualization Data Collection 5 Model Translation No 6 Verified Yes 7 No No Validated 8 Yes Experimental Design 9 Production Runs and Analysis Implementation 11 Documentation and Reporting 12 Yes 10 No More Runs