The Theory of Simulation

Slides:



Advertisements
Similar presentations
Ch:8 Design Concepts S.W Design should have following quality attribute: Functionality Usability Reliability Performance Supportability (extensibility,
Advertisements

Lect.3 Modeling in The Time Domain Basil Hamed
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 12Slide 1 Software Design l Objectives To explain how a software design may be represented.
Supervisory Control of Hybrid Systems Written by X. D. Koutsoukos et al. Presented by Wu, Jian 04/16/2002.
Modeling & Simulation. System Models and Simulation Framework for Modeling and Simulation The framework defines the entities and their Relationships that.
Parallel Scheduling of Complex DAGs under Uncertainty Grzegorz Malewicz.
Some Ideas Behind Finite Element Analysis
Discrete Structures Chapter 5 Relations and Functions Nurul Amelina Nasharuddin Multimedia Department.
Simulation Waiting Line. 2 Introduction Definition (informal) A model is a simplified description of an entity (an object, a system of objects) such that.
Artificial Chemistries – A Review Peter Dittrich, Jens Ziegler, and Wolfgang Banzhaf Artificial Life 7: , 2001 Summarized by In-Hee Lee.
A Study of The Applications of Matrices and R^(n) Projections By Corey Messonnier.
The Role of Artificial Life, Cellular Automata and Emergence in the study of Artificial Intelligence Ognen Spiroski CITY Liberal Studies 2005.
Capacity analysis of complex materials handling systems.
Discrete dynamical systems and intrinsic computability Marco Giunti University of Cagliari, Italy
Crosscutting Concepts Next Generation Science Standards.
OOAD Unit – I OBJECT-ORIENTED ANALYSIS AND DESIGN With applications
STATISTICAL COMPLEXITY ANALYSIS Dr. Dmitry Nerukh Giorgos Karvounis.
4th International Conference on High Performance Scientific Computing 4th International Conference on High Performance Scientific Computing A Framework.
MODELING MATTER AT NANOSCALES 6.The theory of molecular orbitals for the description of nanosystems (part II) The density matrix.
Javier Junquera Introduction to atomistic simulation methods in condensed matter Alberto García Pablo Ordejón.
Relation. Combining Relations Because relations from A to B are subsets of A x B, two relations from A to B can be combined in any way two sets can be.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
MA354 Math Modeling Introduction. Outline A. Three Course Objectives 1. Model literacy: understanding a typical model description 2. Model Analysis 3.
WELCOME TO A JOURNEY TO CS419 Dr. Hussien Sharaf Dr. Mohammad Nassef Department of Computer Science, Faculty of Computers and Information, Cairo University.
Database Systems: Design, Implementation, and Management Tenth Edition
Chapter 4 Dynamical Behavior of Processes Homework 6 Construct an s-Function model of the interacting tank-in-series system and compare its simulation.
The Acceptance Problem for TMs
A Universal Turing Machine
OPERATING SYSTEMS CS 3502 Fall 2017
What is cognitive psychology?
Hiroki Sayama NECSI Summer School 2008 Week 3: Methods for the Study of Complex Systems Cellular Automata Hiroki Sayama
Modeling and Simulation Dr. Mohammad Kilani
Chapter 4 Dynamical Behavior of Processes Homework 6 Construct an s-Function model of the interacting tank-in-series system and compare its simulation.
Chapter 6 The Traditional Approach to Requirements.
ITEC 3220A Using and Designing Database Systems
Statistical-Mechanical Approach to Probabilistic Image Processing -- Loopy Belief Propagation and Advanced Mean-Field Method -- Kazuyuki Tanaka and Noriko.
Postulates of Quantum Mechanics
Discrete Mathematics and its Applications
Complexity Time: 2 Hours.
Copyright © Cengage Learning. All rights reserved.
Graph Coverage for Specifications CS 4501 / 6501 Software Testing
Design and Analysis of Algorithm
Quantum One.
Quantum One.
Quantum mechanics from classical statistics
Software Connectors – A Taxonomy Approach
Quantum One.
Quantum Two.
Quantum One.
Hidden Markov Models Part 2: Algorithms
High-Level Abstraction of Concurrent Finite Automata
IS 2150 / TEL 2810 Introduction to Security
Lecture 2 – Monte Carlo method in finance
R. W. Eberth Sanderling Research, Inc. 01 May 2007
Sathish Vadhiyar Courtesy: Dr. David Walker, Cardiff University
Quantum One.
Continuous Systems and Fields
An Introduction to Software Architecture
Graph Coverage for Specifications CS 4501 / 6501 Software Testing
Guest Lecture by David Johnston
Quantum computation with classical bits
Quantum Two.
Presented By: Darlene Banta
Building Valid, Credible, and Appropriately Detailed Simulation Models
Lecture One: Automata Theory Amjad Ali
Computational Mechanics of ECAs, and Machine Metrics
Discrete Mathematics and its Applications
Quantum One.
Presentation transcript:

The Theory of Simulation Nina Podolskaya Feb 25, 2009

Virtually all of the major unsolved problems in science today concerns complex, self-organizing systems,where vast numbers of components interact simultaneously, with each shift in one agent influencing the other. Steven Strogatz, cited in Nature, Vol. 421, p. 782

When Simulation May Be Useful When we are investigating the complicated phenomena of life and No explicit model of a phenomena or A model of a phenomena may not yet be derived Analytic solutions is not appropriate due to system complexity

What Is a Simulation Simulation is a mechanism which interacts many state transition models of individual subsystems (i.e. system components) and thus generates system dynamical phenomena

What Is a Dynamical System A dynamical system is a pair consisting of a state space, with each point representing a state of the system, and a fixed rule governing the time evolution of these points. The time can be continuous or proceed in discrete steps.

Synthetic Investigation Properties Compared to Analytical One No explanation, only representation Dynamical representation is implicit and constructive: relations are not explicitly encoded in subsystems but are the result of interactions between the subsystems

Basic Parts of Simulation To be aware that a simulation is generating dynamical phenomena at higher level than elemental interactions are described To have methods to identify the elements of underlying system that create the phenomena of interest To formulate models of the important subsystems To create the framework in which the simulation of the subsystems in interaction is composed and embody the system representation in this framework so that phenomena of interest can be generated and analyzed

Examples of Modeling Monomers and solvent molecules Vehicles, roadway segments, signals and travel goals in a traffic system

Interactions Interactions can be viewed as discrete events among the subsystems undergoing local state changes and communicating the state changes to its neighbors in some space

Event Driven Simulation Event can be externally or internally generated Event can also be a time step => Time stepped simulation is a special case of an event driven simulation Continuous space, continuous time, dynamical systems equally well can be treated in the given framework Discrete space, discrete time systems do not have any other general formal framework within which the dynamical properties can be generated and analyzed

Simulation

Simulation We consider simulation as an iterated mapping of a (usually large and complicated) system Simulation is an iterative system in which the simulated system is represented and its dynamics calculated => The simulation and the simulated system are both dynamical systems and the interplay between the dynamics of the coordination of the simulation updates and the dynamics calculated in the time series of system states are essential issues

What Comprises a Simulation Existence of some ∑R, a real or natural system in the world that we are interested in ∑(SiЄM), models of subsystems Si of this system and rules that define interactions among the subsystems ΣS, a simulation of ΣR involving Σ(SiЄM) and some update functional U ΣC, a formal (and equivalent physical) computing machine on which ΣS, is implemented

Si=Si (fi,Iii,xi,ti), i and j=1, …, n Objects The objects (elements or subsystems) in a simulation are defined as Si=Si (fi,Iii,xi,ti), i and j=1, …, n where fi is the representation of the dynamics of the i-th object and where Iii is the i-th object’s interaction rules with other objects j. Interaction and dynamics operate on xi, the state of i-th object. ti is the local object time coordinate

∑(SiЄM) Si is an element in the system ∑(SiЄM), that is Si is a model of the i-th element of the set of modeled system elements in M, i=1, …, n. Thus, the algorithmic part of Si is equivalent to fi and Iij

U An object update functional U is the state transition Si(ti+Δi) ← Si (ti), i=1,…,n or Si(ti+Δi)=U(Si(ti)), i=1,…,n where U, the update functional, defines, organizes and executes the formal interactive procedure that prescribes the state transition

ΣS A simulation is the iteration of object updates over the entire set of objects {Si(ti+1)} ← {Si (ti)}, i=1,…,n or {Si(ti+1)}=U({Si(ti)}), i=1,…,n

ΣC The formal, or equivalent physical implementation, of the mechanisms of the iteration procedure that prescribe the interactions and consequent object state transitions ant their storage. ΣC is normally a physical and conceptually digital computer of some kind.

Emergence

Observational functions Si1Є ∑M, i=1,…,n U – update functional at level of description L1 O1 – observational function by which the objects can be inspected S2 ← U{Si1(fi,Iij,xi,ti), O1}, i,j=1,…,n S2 - a second order structure occurring at level L2. Thus new structure may be subjected to a possible new kind of observer O2.

Emergent property Property P is emergent iff P Є O2(S2), but P not Є O1(Si1). Examples: Dynamical properties of a polymer in solution (low level: monomer-monomer interactions, monomer-solvent interactions) Properties of a congestion in a traffic system (low level: vehicle-vehicle interactions, vehicle-roadway and –signal interactions)

Simulation and Emergence Simulation is a representational mechanism that is distinguished by its capacity to generate relations that are not explicitly encoded Simulation is a natural method to study emergence

Examples S2 – polymer described through monomer-monomer and monomer-solvent interactions. P2 could be polymer elasticity. S2 – traffic jam described through vehicle-vehicle and vehicle-roadway interactions. P2 could be lifetime of a traffic jam.

Examples in Science L1 – Statistical Mechanical, L2 – Thermodynamical description of a matter L1 – Lattice Gas Automata for fluid particle dynamics, L2 – Navier Stokes equations for macroscopic fluid dynamics

Simulatability

Distributable Update Let φ(Sq1,…, Ss1) be a hierarchically distinct representation of a subset of the interacting objects (Sq1,…, Ss1). Thus, φ(Sq1,…, Ss1) defines a sub-aggregation (an aggregation model) of some of the objects. If U({S11,…, Sn1})={U(Si1),U(Sj1),…,U(φ(Sq1,…, Ss1)), U(Sl1),…, U(Sp1)} for some order of the objects, then the update U is distributable over the decomposition ΣM of the system and each object and object aggregation can be updated independently of each other

Simulatable System A system is simulatable iff there exists a pair (M,U) such that U distributes over Si Є M => If no distributable U exists for some subaggregation of the objects M which allows the update to distribute, then the system is non-simulatable If no M exists so that a given U can distribute then the system is also non-simulatable

Example Model polymer defined on a 2D lattice: polymer in some solvent (heat bath). Each of the monomers update in parallel – non-simulatable: k steps of update cycle implies that polymers above a certain finite length are non-simulatable. Two step parallel scheduling (red/green) – polymers of any length can be simulated

Universal Simulator

Definition Universal simulator US is a machine that is able to resolve all causal dependencies among the objects Sj1.

A Universal Simulator Structure qi – counter associated with the object Si qf counts the failed update trails IG – interaction graph

Determining Simulatability Update of S11: if it doesn’t depend on the state of any other object – it is updated and counter q1 incremented. If it has dependencies – qf incremented and S21 is attempted to be updated… US can determine whether a system is simulatable or not at most ∑i=0n-1(n-1)(n-i) operations

Dependency Jacobian US defines object update dependency Jacobian Dq=(∂qi/ ∂qj)n×n≡(Δqi/ Δ qj)n×n where the derivative ∂qi/ ∂qj expresses how many updates of object j are necessary to update object i once; Δqi/ Δ qj=0 indicates that the update of the object i is independent of object j; Δqi/ Δ qj≥1 tells that the update of i needs the state of object j at current time before it can be updated; Δqi/ Δ qj ≡ 1 for i=j

Simulatability Determined by US A system ∑S is simulatable if Dq is a diagonal matrix (unit matrix). If Dq contains sub-matrices on the diagonal and ∑S is found non-simulatable it is indication that ∑S could become simulatable by the construction of sub-aggregations including the objects contained within each of the sub-matrices

Bibliography S.Rasmussen, C.L.Barret Elements of a theory of simulation, 1995 S.Rasmussen, J.R.Smith Lattice polymer automata, 1994 K.Nagel, S.Rasmussen Traffic at the edge of chaos, 1994