CS433: Modeling and Simulation Dr. Anis Koubâa Al-Imam Mohammad Ibn Saud University 27 February 2010 Lecture 02: Modeling.

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

Modeling and Simulation By Lecturer: Nada Ahmed. Introduction to simulation and Modeling.
Introduction into Simulation Basic Simulation Modeling.
Modeling & Simulation. System Models and Simulation Framework for Modeling and Simulation The framework defines the entities and their Relationships that.
Dealing with Complexity Robert Love, Venkat Jayaraman July 24, 2008 SSTP Seminar – Lecture 10.
Computer Networks Group Universität Paderborn Ad hoc and Sensor Networks Chapter 9: Localization & positioning Holger Karl.
Geog 409: Advanced Spatial Analysis & Modelling © J.M. Piwowar1Principles of Spatial Modelling.
Discrete Event Simulation - Ch. 1 Instructor: Giampiero Pecelli Office Phone: Office: Olsen 225 Office Hours: Before.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 19 Scheduling IV.
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.
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.
Discrete-Event Simulation: A First Course Steve Park and Larry Leemis College of William and Mary.
Simulation concepts and architectures. Simulation Basics System: a collecting of entities that act and interact together toward the accomplishment of.
Simulation Models as a Research Method Professor Alexander Settles.
Descriptive Modelling: Simulation “Simulation is the process of designing a model of a real system and conducting experiments with this model for the purpose.
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)
COMPUTER NETWORK: MODELING AND SIMULATION -Abhaykumar Kumbhar Computer Science Department.
Modeling and Simulation
Discrete Event Systems Simulation
Discrete-Event System Simulation
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.
Capacity analysis of complex materials handling systems.
Modeling & Simulation: An Introduction Some slides in this presentation have been copyrighted to Dr. Amr Elmougy.
Computer Science 101 Modeling and Simulation. Scientific Method Observe behavior of a system and formulate an hypothesis to explain it Design and carry.
CS433: Modeling and Simulation Dr. Anis Koubâa Al-Imam Mohammad Ibn Saud University 27 February 2010 Lecture 01: Introduction.
1 Definition of System Simulation: The practice of building models to represent existing real-world systems, or hypothetical future systems, and of experimenting.
Capacity analysis of complex materials handling systems.
CS433 Modeling and Simulation Lecture 12 Queueing Theory Dr. Anis Koubâa 03 May 2008 Al-Imam Mohammad Ibn Saud University.
Chapter 10 Verification and Validation of Simulation Models
ECE 466/658: Performance Evaluation and Simulation Introduction Instructor: Christos Panayiotou.
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
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.
Computer Simulation of Networks ECE/CSC 777: Telecommunications Network Design Fall, 2013, Rudra Dutta.
Dr. Anis Koubâa CS433 Modeling and Simulation
Queuing Theory.  Queuing Theory deals with systems of the following type:  Typically we are interested in how much queuing occurs or in the delays at.
CS433 Modeling and Simulation Lecture 09 – Part 02 Discrete Events Simulation Dr. Anis Koubâa 27 Dec 2008 Al-Imam.
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.
Simulation. Types of simulation Discrete-event simulation – Used for modeling of a system as it evolves over time by a representation in which the state.
Building Valid, Credible & Appropriately Detailed Simulation Models
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.
CS433 Modeling and Simulation Lecture 02 Modeling 1 Dr. Anis Koubâa Al-Imam Mohammad Ibn Saud University 20 Oct.
Traffic Simulation L2 – Introduction to simulation Ing. Ondřej Přibyl, Ph.D.
CPSC 531: System Modeling and Simulation
OPERATING SYSTEMS CS 3502 Fall 2017
Prepared by Lloyd R. Jaisingh
Modeling and Simulation (An Introduction)
Al-Imam Mohammad Ibn Saud University
ADVANTAGES OF SIMULATION
Chapter 1.
Simulation Department of Industrial Engineering Anadolu University
Chapter 10 Verification and Validation of Simulation Models
Computer Simulation of Networks
Onur Kaya END 201, Ext: 6439 ENM 307 Simulation Department of Industrial Engineering Anadolu University SPRING 2018 Chapter.
World-Views of Simulation
Modeling and Simulation: Fundamentals and Implementation
Discrete-Event System Simulation
Calibration and Validation
Computer Systems Performance Evaluation
MECH 3550 : Simulation & Visualization
Presentation transcript:

CS433: Modeling and Simulation Dr. Anis Koubâa Al-Imam Mohammad Ibn Saud University 27 February 2010 Lecture 02: Modeling

2 What is modeling?  A Model is a simplification of a real system  Modeling is the process of representing a system with a specific tool to study its behavior  A model can be:  Analytic: when a mathematical approach is feasible (e.g. Queuing Model)  Simulation: model used for complex systems  Experimental: when the real system already exists

3  A Model is a pattern, plan, representation (especially in miniature), or description designed to show the main object or workings of an object, system, or concept.  Model may also refer to:  Abstractions, concepts, and theories  representations of objects  human and animal behavior  occupations  history and culture  lighting  In geography … Model (Wikipedia)

4 4 In general, modeling is used for systems with some sort of uncertainty Waiting time in a restaurant/airport Time to go from home to the University Response time and Throughput of a web server The productivity of manufacturing systems Design of multi-processor machine Performance of MAC protocols (e.g. CSMA/CA) Examples

5 Examples: Movement  Consider a system when a given object move  This system can be modeled by the equation S= V * t Where S is the distance run through  V is the speed of the object  t is the time that has been observed.  This is simplification of the real world  Another model can take into account the direction of movement, or the three dimension coordinate …  It is therefore to study the behaviour of the system based on a specific model V

6 6 Source: HE et al.: AN ACCURATE MARKOV MODEL FOR SLOTTED CSMA/CA ALGORITHM IN IEEE NETWORKS, IEEE COMMUNICATIONS LETTERS, VOL. 12, NO. 6, JUNE 2008 A. Koubâa, M. Alves, E. Tovar A Comprehensive Simulation Study of Slotted CSMA/CA for IEEE Wireless Sensor Networks In IEEE WFCS 2006, Torino (Italy), June Jelena Miˇsi´c ∗ Vojislav B. Miˇsi´c Shairmina Shafi, Performance of IEEE beacon enabled PAN with uplink transmissions in non-saturation mode – access delay for finite buffers, Proceedings of the First International Conference on Broadband Networks (BROADNETS’04) Example: MAC protocols (e.g. CSMA/CA)

7  A radio propagation model is an empirical mathematical formulation for the characterization of radio wave propagation as a function of frequency, distance and other conditions.  Different types of models  Models for outdoor environments: Ground wave, Sky wave, Environmental Attenuation, Point-to-Point propagation models, Terrain models, City Models  Models for indoor environments  Free Path Loss Model (Mathematical Model) Empirical Model of Radio Channel Source: Kannan Srinivasan and Philip Levis, RSSI is Under Appreciated, ACM Workshop on Embedded Networked Sensors (EmNets 2006), Example: Radio Propagation Models

8  A model is never equal to the real system  because it is always simpler than the reality  The accuracy of a model is determined by its tendency to approach the real system  Is that a problem?  Yes, if the model ignore important parameters of the real system (over simplification)  No, if the model takes into account the important parameters (ignoring some details is sometimes not problematic) Characteristics of a model

9 SYSTEM Experiment with the Actual System Experiment with a Model of the System Analytical SolutionSimulation Too costly or disruptive Not appropriate for the design There is always the question of whether it actually reflects the system. Mathematical Model Make assumptions that take the form of mathematical or logical relationships If the model is simple enough. E.g., calculus, algebra, probability theory Highly complex systems Performance Evaluation of a System

10 Simulation is not used when a suitable mathematical model existsSimulations are often complex error-prone pieces of softwareSimulation only produce approximate answersSimulation can take a LONG time to executeMathematical models are less flexible, but they are exact and efficient The problem is what model represents better the real world? Simulation Model versus Analytical Model

11 Dynamic Models Represents a system as it evolves over time Example: Cars arriving to a parking Static Models Time plays no role Represents the system at a particular point in time Example: Monté Carlo Method Classification of Models

12 Deterministic Models No probabilistic component in the system Example: Worst- Case Analysis of the system Stochastic Models Some components of the system has a probablistic behavior (Random variable, event probability) Example: Queueing systems Classification of Models

13 # of cars in a parking lot time Bit Arrival in a Queue Discrete Model Continuous Model time bit Continuous Models The state of the system changes continuously (e.g., chemical processes) Discrete Models The state of the system changes only at discrete points in time. Classification of Models

14 Deterministic Performance Using Network Calculus Queueuing System Stochastic Performance Using Queueing Theory Example: Deterministic vs. Stochastic

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

16 Determine Goals and Objectives What do you want to do with the model? It may be an end in itself More often, it is a means to an end Goals may not be known when you start the project! One often learns things along the way Develop Conceptual Model An abstract representation of the system What should be included in model? What can be left out? What abstractions should be used? What is the level of details? Appropriate choice depends on the purpose of the model Model Development Lifecycle

17 Develop Specification Model A more detailed specification of the model including more specifics Collect data to populate model Example: Traffic: Road geometry, signal timing, expected traffic demand, driver behavior Communication: network topology, message type, inter-arrival time, data rates Empirical data or probability distributions often used Develop a Computational Model Executable simulation model Software approach General purpose programming language Special purpose simulation language Other (non-functional) requirements Performance Interoperability with other models/tools/data Model Development Lifecycle

18 Verification Did I Build the Model Right? هل أنجزت النموذج بطريقة صحيح؟ Does the computational model match the specification model? Debugging: checking if the program contains any programming errors. Verification is different from Validation: (see model validation)! Validation Did I Build the Right Model? هل أنجزت النموذج الصحيح؟ Does the computational model match the actual (or envisioned) system? Typically, the validation of a simulation model can be done by comparing Measurements of actual system An analytic (mathematical) model of the system  Another simulation model  By necessity, validation is always an incomplete activity!  Often can only validate portions of the model  If you can validate the simulation with 100% certainty, why build the simulation? Model Development Lifecycle

19 Example: Airport Check-in Desk Queuing  We consider flight check-in desks in an Airport. The administration of the airport wants to improve its quality of service by reducing the waiting time of travelers. For that purpose, they want to design what could be the best queuing strategy to have the minimum waiting time.  The main problem is to know what is the best queuing strategy that reduces the waiting time of travelers in check-in desks.

20 Step. 1. Define the objectives of the study  Main Objective: what is the best queuing strategy that reduces the waiting time of travelers in check-in desks.  Find a model that enables to compute waiting time of travelers  Solution 1. Queueing Theory (Analytical Model)  Solution 2. Simulation (Computer Program Model)  Two Possible Models Model 1Model 2

21 Step. 2. Develop Conceptual Model  One Queue  N=3 servers  Three Queues  N=3 servers Model 1Model 2  Customers: travelers that arrive to the check-in desk  Servers: represents the agent (officer) that makes the flight registration What are the elements of the system?

22 Step. 3. Develop Specification Model  One Queue:  Length= 60 Travelers  N=3 Agents  Service rate: 30 travelers/hour  Travelers arrive with a rate 1 travelers/minute Model 1Model 2 What are the characteristics of the elements of the system?  Three Queue:  Length= 20 Travelers/Queue  N=3 Agents  Service rate: 30 travelers/hour  Travelers arrive with a rate 1 travelers/minute  Travelers choose a queue with a probability of 1/3.

23 Step. 4. Develop Computation Model Model 1Model 2 Analytical Model: Queueing Theory Model 1 is better than Model 2 because it has lower delay

24 Step. 4. Develop Computation Model Model 1Model 2 Simulation Model: Arena Model 1 is better than Model 2 because it has lower delay

25 Step. 4. Develop Computation Model Simulation Model: Arena