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 Components in Different Formalisms 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 training, physical simulation

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 . . .

“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) Simulation (one model, one behaviour) Synthesis

slide-13
SLIDE 13

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-14
SLIDE 14

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-15
SLIDE 15

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling The Modelling Relationship thanks to Pieter Mosterman

slide-16
SLIDE 16

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

slide-17
SLIDE 17

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

Dealing with Complexity

slide-18
SLIDE 18

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

Crowds

www.3dm3.com

slide-19
SLIDE 19

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

Number of Components – hierarchical (de-)composition

slide-20
SLIDE 20

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Components in Different Formalisms

Diversity of Components: Paper Mill

www.gov.karelia.ru

slide-21
SLIDE 21

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Components in Different Formalisms

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-22
SLIDE 22

Modelling and Simulation Causes of Complexity Dealing with Complexity Multi-Paradigm Modelling Components in Different Formalisms

Multiple Formalisms: Power Window

slide-23
SLIDE 23

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

Non-compositional/Emergent Behaviour

slide-24
SLIDE 24

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

Engineered Emergent Behaviour

slide-25
SLIDE 25

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-26
SLIDE 26

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

Guiding principle 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-27
SLIDE 27

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

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-28
SLIDE 28

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

Different Abstraction Levels – properties preserved

slide-29
SLIDE 29

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-30
SLIDE 30

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-31
SLIDE 31

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

Most Appropriate Formalism

slide-32
SLIDE 32

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-33
SLIDE 33

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

Controller, using Statechart(StateFlow) formalism

slide-34
SLIDE 34

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

Mechanics subsystem

slide-35
SLIDE 35

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-36
SLIDE 36

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

View: Runtime Diagram

slide-37
SLIDE 37

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

View: Events Diagram

slide-38
SLIDE 38

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

View: Protocol Statechart

slide-39
SLIDE 39

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.