Chapter 12: Simulation and Modeling

Slides:



Advertisements
Similar presentations
Chapter 14 Simulation. 2 What Is Simulation?  Simulation: A model of a complex system and the experimental manipulation of the model to observe the results.
Advertisements

Final topics: Scheduling Recap and some advanced topics.
INTRODUCTION TO MODELING
Chapter 1 Introduction to Modeling DECISION MODELING WITH MICROSOFT EXCEL Copyright 2001 Prentice Hall.
Modeling Process Quality
Chapter 14 Simulation and Other Applications Chapter Goals Define simulation Give examples of complex systems Distinguish between continuous and.
Discrete-Event Simulation: A First Course Steve Park and Larry Leemis College of William and Mary.
Chapter 14 Simulation and Other Applications Nell Dale John Lewis.
Biostatistics Frank H. Osborne, Ph. D. Professor.
Outline Chapter 1 Hardware, Software, Programming, Web surfing, … Chapter Goals –Describe the layers of a computer system –Describe the concept.
SIMULATION. Simulation Definition of Simulation Simulation Methodology Proposing a New Experiment Considerations When Using Computer Models Types of Simulations.
Lab 01 Fundamentals SE 405 Discrete Event Simulation
Introduction to Systems Analysis and Design
Chapter 12: Simulation and Modeling Invitation to Computer Science, Java Version, Third Edition.
Chapter 14 Simulation. 2 What Is Simulation?  Simulation: A model of a complex system and the experimental manipulation of the model to observe the results.
By Saparila Worokinasih
Chapter 12: Simulation and Modeling
Chapter 1 Introduction to Simulation
Chapter 10: Compilers and Language Translation Invitation to Computer Science, Java Version, Third Edition.
Computer Science 101 Modeling and Simulation. Scientific Method Observe behavior of a system and formulate an hypothesis to explain it Design and carry.
Role of Statistics in Geography
SUPERCOMPUTING CHALLENGE KICKOFF 2015 A Model for Computational Science Investigations Oct 2015 © challenge.org Supercomputing Around.
Chap. 5 Building Valid, Credible, and Appropriately Detailed Simulation Models.
Introduction to Earth Science Section 2 Section 2: Science as a Process Preview Key Ideas Behavior of Natural Systems Scientific Methods Scientific Measurements.
Chapter 3 System Performance and Models Introduction A system is the part of the real world under study. Composed of a set of entities interacting.
Mathematical Modeling: Intro Patrice Koehl Department of Biological Sciences National University of Singapore
© 2006 Pearson Addison-Wesley. All rights reserved 2-1 Chapter 2 Principles of Programming & Software Engineering.
Introduction to Operations Research. MATH Mathematical Modeling 2 Introduction to Operations Research Operations research/management science –Winston:
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
CS 450 Modelling and Simulation Dr. X. Topics Time Discrete and Continuous Simulation Simulation Design Process.
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,
Introduction to ScienceSection 1 SCSh8 Students will understand important features of the process of scientific inquiry.
Science and Engineering Practices K–2 Condensed Practices3–5 Condensed Practices6–8 Condensed Practices9–12 Condensed Practices Developing and Using Models.
Modelling & Simulation of Semiconductor Devices Lecture 1 & 2 Introduction to Modelling & Simulation.
Yandell - Econ 216 Chap 1-1 Chapter 1 Introduction and Data Collection.
Sub-fields of computer science. Sub-fields of computer science.
Chapter Nine Hypothesis Testing.
CompSci 280 S Introduction to Software Development
Operations Research Chapter one.
Decision Support Systems
OPERATING SYSTEMS CS 3502 Fall 2017
Prepared by Lloyd R. Jaisingh
Modeling and Simulation (An Introduction)
Section 2: Science as a Process
ADVANTAGES OF SIMULATION
Models, Scientific and Otherwise, and Theories
Chapter 1.
Section 1: The Nature of Science
Modeling and Simulation CS 313
DSS & Warehousing Systems
Introductory Statistical Language
Invitation to Computer Science 5th Edition
Chapter 10 Verification and Validation of Simulation Models
Chapter 1 Chemistry: An Introduction
Professor S K Dubey,VSM Amity School of Business
Queues Chapter 8 (continued)
Computer Systems Performance Evaluation
Introduction to Science
Introduction- Ch. 2, Sec. 1 Scientific Methods
Section 1: The Nature of Science
Computer Systems Performance Evaluation
Section 1: The Nature of Science
Building Valid, Credible, and Appropriately Detailed Simulation Models
Chapter 10: Compilers and Language Translation
Key Ideas How do scientists explore the world?
MECH 3550 : Simulation & Visualization
Discrete Mathematics and Its Applications
Chapter 2 – Measurements and Calculations
The steps of scientific computation
Presentation transcript:

Chapter 12: Simulation and Modeling Invitation to Computer Science, Java Version, Third Edition

Objectives In this chapter, you will learn about Computational modeling Running the model and visualizing results Invitation to Computer Science, Java Version, Third Edition

Introduction Simulation and modeling Probably the single most important scientific use of computing today Having an impact on quantitative fields, such as chemistry, biology, medicine, meteorology, ecology, geography, economics, and so on Invitation to Computer Science, Java Version, Third Edition

Computational Modeling: Introduction to Systems and Models The scientific method Observe the behavior of a system Formulate a hypothesis about system behavior Design and carry out experiments to prove or disprove the validity of the hypothesis Often a model of the system is used Invitation to Computer Science, Java Version, Third Edition

Introduction to Systems and Models (continued) A model An abstraction of the system being studied that we claim behaves much like the original Computer simulation A physical system is modeled as a set of mathematical equations and/or algorithmic procedures Invitation to Computer Science, Java Version, Third Edition

Introduction to Systems and Models (continued) Computer simulation (continued) Model is translated into a high-level language and executed on the Von Neumann computer Computational models Also called simulation models Used to Design new systems Study and improve the behavior of existing systems Invitation to Computer Science, Java Version, Third Edition

Introduction to Systems and Models (continued) Computational models (continued) Allow the use of an interactive design methodology (sometimes called computational steering) Used in most branches of science and engineering Invitation to Computer Science, Java Version, Third Edition

Using a Simulation in an Interactive Design Environment Figure 12.1 Using a Simulation in an Interactive Design Environment Invitation to Computer Science, Java Version, Third Edition

Computational Models, Accuracy, and Errors Proper balance between accuracy and complexity must be achieved A model must be both An accurate representation of the physical system Simple enough to implement as a program and solve on a computer in a reasonable amount of time Invitation to Computer Science, Java Version, Third Edition

Computational Models, Accuracy, and Errors (continued) To build a model Include important factors that act on the system Omit unimportant factors that only make the model harder to build, understand, and solve Invitation to Computer Science, Java Version, Third Edition

Computational Models, Accuracy, and Errors (continued) Continuous model A set of equations that describe the behavior of a system as a continuous function of time t Models that use statistical approximations Needed for systems that cannot be modeled using precise mathematical equations Invitation to Computer Science, Java Version, Third Edition

An Example of Model Building Discrete event simulation One of the most popular and widely used techniques for building computer models The behavior of a system is modeled only at an explicit and finite set of times Only the times when an event takes place are modeled Event: An activity that changes the state of the system Invitation to Computer Science, Java Version, Third Edition

An Example of Model Building (continued) To process an event Change the state of the simulated system in the same way that the actual system would change if the event had occurred in real life Once finished, move to the next event When simulation is complete, the program displays results that characterize the system’s behavior Invitation to Computer Science, Java Version, Third Edition

An Example of Model Building (continued) Problem You are the owner of a new take-out restaurant, McBurgers, currently under construction You want to determine the proper number of checkout stations needed You decide to build a model of McBurgers to determine the optimal number of servers Invitation to Computer Science, Java Version, Third Edition

Figure 12.3 System to Be Modeled Invitation to Computer Science, Java Version, Third Edition

An Example of Model Building (continued) First: Identify the events that can change the system A new customer arriving An existing customer departing after receiving food and paying Next: Develop an algorithm for each event Should describe exactly what happens to the system when this event occurs Invitation to Computer Science, Java Version, Third Edition

Algorithm for New Customer Arrival Figure 12.4 Algorithm for New Customer Arrival Invitation to Computer Science, Java Version, Third Edition

An Example of Model Building (continued) The algorithm for the new customer arrival event uses a statistical distribution (Figure 12.5) to determine the time required to service the customer Can model the statistical distribution of customer service time using the algorithm in Figure 12.6 Invitation to Computer Science, Java Version, Third Edition

Statistical Distribution of Customer Service Time Figure 12.5 Statistical Distribution of Customer Service Time Invitation to Computer Science, Java Version, Third Edition

Figure 12.6 Algorithm for Generating Random Numbers That Follow the Distribution Given in Figure 12.5 Invitation to Computer Science, Java Version, Third Edition

Algorithm for Customer Departure Event Figure 12.7 Algorithm for Customer Departure Event Invitation to Computer Science, Java Version, Third Edition

An Example of Model Building (continued) Must initialize parameters to the model Model must collect data that accurately measures performance of the McBurgers restaurant Invitation to Computer Science, Java Version, Third Edition

An Example of Model Building (continued) When simulation is ready, the computer will Run the simulation Process all M customers Print out the results Invitation to Computer Science, Java Version, Third Edition

The Main Algorithm of Our Simulation Model Figure 12.8 The Main Algorithm of Our Simulation Model Invitation to Computer Science, Java Version, Third Edition

Running the Model and Visualizing Results Scientific visualization Visualizing data in a way that highlights its important characteristics and simplifies its interpretation An important part of computational modeling Different from computer graphics Invitation to Computer Science, Java Version, Third Edition

Running the Model and Visualizing Results (continued) Scientific visualization is concerned with Data extraction: Determine which data values are important to display and which are not Data manipulation: Convert the data to other forms or to different units to enhance display Invitation to Computer Science, Java Version, Third Edition

Running the Model and Visualizing Results (continued) Output of a computer model can be represented visually using A two-dimensional graph A three-dimensional image Visual representation of data helps identify important features of the model’s output Invitation to Computer Science, Java Version, Third Edition

Using a Two-Dimensional Graph to Display Output Figure 12.9 Using a Two-Dimensional Graph to Display Output Invitation to Computer Science, Java Version, Third Edition

Figure 12.10: Using a Two-Dimensional Graph to Display and Compare Two Data Values Invitation to Computer Science, Java Version, Third Edition

Three-Dimensional Image of a Region of the Earth’s Surface Figure 12.11 Three-Dimensional Image of a Region of the Earth’s Surface Invitation to Computer Science, Java Version, Third Edition

Three-Dimensional Model of a Methyl Nitrite Molecule Figure 12.12 Three-Dimensional Model of a Methyl Nitrite Molecule Invitation to Computer Science, Java Version, Third Edition

Visualization of Gas Dispersion Figure 12.13 Visualization of Gas Dispersion Invitation to Computer Science, Java Version, Third Edition

Running the Model and Visualizing Results (continued) Image animation One of the most powerful and useful forms of visualization Shows how model’s output changes over time Created using many images, each showing system state at a slightly later point in time Invitation to Computer Science, Java Version, Third Edition

Use of Animation to Model Ozone Layers in the Atmosphere Figure 12.14 Use of Animation to Model Ozone Layers in the Atmosphere Invitation to Computer Science, Java Version, Third Edition

Summary A model is an abstraction of a system that behaves much like the original Computer simulation Physical system is modeled using mathematical equations and/or algorithmic procedures Model is translated into a high-level language program and executed Invitation to Computer Science, Java Version, Third Edition

Summary (continued) Computational models allow the use of an interactive design methodology Scientific visualization: Visualizing data to highlight its important characteristics and simplify its interpretation Invitation to Computer Science, Java Version, Third Edition