Hans Vangheluwe Modelling and Simulation Causes of Complexity - - PowerPoint PPT Presentation

hans vangheluwe
SMART_READER_LITE
LIVE PREVIEW

Hans Vangheluwe Modelling and Simulation Causes of Complexity - - PowerPoint PPT Presentation

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Modelling and Simulation to tackle Complexity Hans Vangheluwe Modelling and Simulation Causes of Complexity Dealing with Complexity


slide-1
SLIDE 1

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling

Modelling and Simulation to tackle Complexity

Hans Vangheluwe

slide-2
SLIDE 2

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling

1

Modelling and Simulation Modelling and Simulation for . . . The Modelling Relationship

2

Causes of Complexity Large Number of Components Diversity of Components Non-compositional/Emergent Behaviour Uncertainty

3

Dealing with Complexity Multiple Abstraction Levels Optimal Formalism Multi-Formalism Multiple Views/Aspects

4

Multi-Paradigm Modelling

slide-3
SLIDE 3

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Modelling and Simulation for . . .

Simulation . . . when too costly/dangerous analysis ↔ design

slide-4
SLIDE 4

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Modelling and Simulation for . . .

Simulation . . . real experiment not ethical “physical” simulation, training

slide-5
SLIDE 5

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Modelling and Simulation for . . .

Simulation . . . evaluate alternatives

slide-6
SLIDE 6

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Modelling and Simulation for . . .

Simulation . . . “Do it Right the First Time”

slide-7
SLIDE 7

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Modelling and Simulation for . . .

essence: “shooting” problems

slide-8
SLIDE 8

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Modelling and Simulation for . . .

defining a “hit”

5 10 15 20 5 10 15 20 25 30

θ

  • rigin (0, 2)

target (30, 1) Height (m) Distance (m)

slide-9
SLIDE 9

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Modelling and Simulation for . . .

  • ptimizing a “performance metric”

10 20 30 40 50 60 70 80 90 5 10 15 20 25 30

slide-10
SLIDE 10

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Modelling and Simulation for . . .

  • ptimal solution. . . s
slide-11
SLIDE 11

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Modelling and Simulation for . . .

Modelling/Simulation . . . and code/app Synthesis

slide-12
SLIDE 12

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Modelling and Simulation for . . .

The spectrum of uses of models Documentation Formal Verification (all models, all behaviours) Model Checking (one model, all behaviours) Test Generation Simulation (one model, one behaviour) . . . calibration, validation, optimization, . . . Application Synthesis

slide-13
SLIDE 13

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Modelling and Simulation for . . . Requirements (“What?”) Detached or Semi-detached Style (classical, modern, . . . ) Number of Floors Number of rooms of different types (bedrooms, bathrooms, . . . ) Garage, Storage, . . . Cellar Energy-saving measures . . . Design (“How?”)

slide-14
SLIDE 14

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Modelling and Simulation for . . .

System Boundaries System to be built/studied Environment with which the system interacts

slide-15
SLIDE 15

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Modelling and Simulation for . . .

System vs. “Plant”

www.mathworks.com/products/demos/simulink/PowerWindow/html/PowerWindow1.html

slide-16
SLIDE 16

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling The Modelling Relationship

Real-World entity Base Model System S

  • nly study behaviour in

experimental context experiment within context Model M Simulation Results Experiment Observed Data

within context

simulate = virtual experiment Model Base a-priori knowledge

validation

REALITY MODEL GOALS

Modelling and Simulation Process

slide-17
SLIDE 17

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling The Modelling Relationship

System (real or model) generator transducer acceptor Experimental Frame

Frame Input Variables Frame Output Variables

set of all “contexts” in which model is valid includes experiment descriptions: parameters, initial conditions ∼ re-use, testing

slide-18
SLIDE 18

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling

Dealing with Complexity

slide-19
SLIDE 19

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Large Number of Components

Crowds

www.3dm3.com

slide-20
SLIDE 20

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Large Number of Components

Number of Components – hierarchical (de-)composition

slide-21
SLIDE 21

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Diversity of Components

Diversity of Components: Power Window

slide-22
SLIDE 22

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Diversity of Components

Diversity of Components: Paper Mill

www.gov.karelia.ru

slide-23
SLIDE 23

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Diversity of Components

Paper Mill Model

M,S M,S M,S M,S

Q

M,S

Q

M,S M,S M,S M,S

PaperPulp mill Waste Water Treatment Plant Fish Farm

Effluent Recycle (return) flow Clarifier (DESS) Activated sludge unit (DESS) Mixing Aeration Sedimentation Influent Stormwater tank 1 Stormwater tank 2

  • verflow

Switch

WWTP (DESS) System of WWTP and Stormwater tanks (DEVS)

Input/Output function Input function Output function

algae fish

GE RRA X CFA

+

CFF

EDRF

+ GF

X X

slide-24
SLIDE 24

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Non-compositional/Emergent Behaviour

Non-compositional/Emergent Behaviour

slide-25
SLIDE 25

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Non-compositional/Emergent Behaviour

Engineered Emergent Behaviour

slide-26
SLIDE 26

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Uncertainty

Often related to level of abstraction: for example continuous vs. discrete

www.engr.utexas.edu/trafficSims/

uncertainty = imprecise = not rigorous

slide-27
SLIDE 27

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling

Guiding principle (∼ physics: principle of minimal action) minimize accidental complexity,

  • nly essential complexity remains

Fred P . Brooks. No Silver Bullet – Essence and Accident in Software Engineering. Proceedings of the IFIP Tenth World Computing Conference, pp. 1069–1076, 1986. http://www.lips.utexas.edu/ee382c-15005/Readings/Readings1/05-Broo87.pdf

slide-28
SLIDE 28

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling

Solutions multiple abstraction levels

  • ptimal formalism

multiple formalisms multiple views

slide-29
SLIDE 29

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Multiple Abstraction Levels

Different Abstraction Levels – properties preserved

slide-30
SLIDE 30

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Multiple Abstraction Levels

Levels of Abstraction/Views: Morphism

detailed (technical) level abstract (decision) level abstraction simulation M_d M_t trajectory model traj_t traj_d

slide-31
SLIDE 31

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Multiple Abstraction Levels

Abstraction Relationship foundation: the information contained in a model M. Different questions (properties) P = I(M) which can be asked concerning the model. These questions either result in true or false. Abstraction and its opposite, refinement are relative to a non-empty set of questions (properties) P. If M1 is an abstraction of M2 with respect to P, for all p ∈ P: M1 | = p ⇒ M2 | = p. This is written M1 ⊒P M2. M1 is said to be a refinement of M2 iff M1 is an abstraction

  • f M2. This is written M1 ⊑P M2.
slide-32
SLIDE 32

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Optimal Formalism

Most Appropriate Formalism

slide-33
SLIDE 33

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Optimal Formalism

Forrester System Dynamics model

  • f Predator-Prey interaction

Predator Prey Grazing_efficiency uptake_predator loss_prey predator_surplus_DR prey_surplus_BR

2−species predator−prey system

slide-34
SLIDE 34

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Optimal Formalism

Causal Block Diagram model of Harmonic Oscillator

x0 0.0 y0 1.0

IC

x

IC

y −

I OUT

K 1.0 0.0 PLOT

slide-35
SLIDE 35

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Optimal Formalism

Petri Net model of Producer – Consumer

P.Calculating 1 Wait4Cons Buffer Buffer−p 1 Wait4Prod 1 C.Calculating Produce Put in Buffer Rem.from buffer Consume

slide-36
SLIDE 36

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Optimal Formalism

GPSS model of Telephone Exchange

FN1 12 2 V2 V1 PH 1 LR PH1 V1 H 2 P2 NE P1 S PH1 LNKS R PH1 1 LR PH2 R PH1 LNKS 1 S PH2 FN1 120 Function: 1 LNKS 10

slide-37
SLIDE 37

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Multi-Formalism

Multiple Formalisms: Power Window

slide-38
SLIDE 38

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Multi-Formalism

Components in Different Formalisms

www.mathworks.com/products/demos/simulink/PowerWindow/html/PowerWindow1.html

slide-39
SLIDE 39

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Multi-Formalism

Controller, using Statechart(StateFlow) formalism

slide-40
SLIDE 40

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Multi-Formalism

Mechanics subsystem

slide-41
SLIDE 41

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Multiple Views/Aspects

Multiple (consistent !) Views (in = Formalisms)

(work by Esther Guerra and Juan de Lara)

slide-42
SLIDE 42

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Multiple Views/Aspects

View: Runtime Diagram

slide-43
SLIDE 43

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Multiple Views/Aspects

View: Events Diagram

slide-44
SLIDE 44

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Multiple Views/Aspects

View: Protocol Statechart

slide-45
SLIDE 45

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Multiple Views/Aspects

No Free Lunch!

Solutions often introduce their own accidental complexity multiple abstraction levels (need morphism)

  • ptimal formalism (need precise meaning)

multiple formalisms (need relationship) multiple views (need consistency)

slide-46
SLIDE 46

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling

Multi-Paradigm Modelling ( minimize accidental complexity ) at the most appropriate level of abstraction using the most appropriate formalism(s) Differential Algebraic Equations, Petri Nets, Bond Graphs, Statecharts, CSP , Queueing Networks, Lustre/Esterel, . . . with transformations as first-class models

Pieter J. Mosterman and Hans Vangheluwe. Computer Automated Multi-Paradigm Modeling: An Introduction. Simulation 80(9):433–450, September 2004. Special Issue: Grand Challenges for Modeling and Simulation.