systems theory tiago garcia de senna carneiro pedro ribeiro de andrade gilberto câmara münster,...

81
Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Upload: allyson-lindsey

Post on 10-Jan-2016

222 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Systems Theory

Tiago Garcia de Senna CarneiroPedro Ribeiro de AndradeGilberto Câmara

Münster, 2013

Page 2: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Geoinformatics enables crucial links between nature and society

Nature: Physical equations Describe processes

Society: Decisions on how to Use Earth´s resources

Page 3: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

How to model Natural-Society systems?

If (... ? ) then ...

Desforestation?

Connect expertise from different fieldsMake the different conceptions explicit

Page 4: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

“A hypothesis or theory [model] is clear, decisive, and positive, but it is believed by no one but the man who created it. Experimental findings [observations], on the other hand, are messy, inexact things, which are believed by everyone except the man who did that work”Harlow Shapley (1885-1972), American astronomer

Page 5: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

“[The] advantage of a mathematical statement is that it is so definite that it might be definitely wrong…..Some verbal statements have not this merit; they are so vague that they could hardly be wrong, and are correspondingly useless.”Lewis Fry Richardson (1881-1953) – first to apply mathematical methods to numerical weather prediction

Models

Page 6: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

How reality is conceived Any measurable part of reality can be modelled as a system

Systems are represented as stocks and flows Stocks represent storages of energy, matter, or information Flows connect and transport stocks

Real systems are opened only theoretical ones are closed

Environment System 2

System 3

System 1

System 4

Page 7: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

What is a System?

Definition: A system is a group of components with different functions, which interact with each other

Example: The climate system includes the atmosphere, oceans, polar caps, clouds, vegetation…and lots of other things

Page 8: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

How do we study systems?

• Identify the components

• Determine the nature of the interactions between components

Page 9: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013
Page 10: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013
Page 11: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Atmospheric Physics/Dynamics

Tropospheric Chemistry

Global Moisture

Ocean Dynamics

MarineBiogeochemistry

Terrestrial Ecosystems

Terrestrial Energy/Moisture

Climate Change

Pollutants

CO2

CO2

Soil

Land Use

Physical Climate System

Biogeochemical Cycles

Human Activities

(from Earth System Science: An Overview, NASA, 1988)

Earth as a system

Page 12: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Systems Theory

Provides a unified classification for scientific knowledge. Enunciated by biologist Ludwig Von Bertalanffy:

1920s: earliest developments 1937: Charles Morris Philosophy Seminar, University of Chicago 1950: “An Outline of General Systems Theory”, Journal for the Philosophy

of Science

Scientists that introduced Systems Theory in their fields: Parsons, sociologist (1951) J.G Miller, psychiatrist & psychologist (1955) Boulding, economist (1956) Rapoport, mathematician (1956) Ashby, bacteriologist (1958)

Page 13: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

A system

Can you identify parts? and Do the parts affect each other? and Do the parts together produce an effect that is different from

the effect of each part on its own? and perhaps Does the effect, the behavior over time, persist in a variety of

circumstances?

Source: (Meadows, 2008)

Page 14: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

A system

Can you identify parts? and Do the parts affect each other? and Do the parts together produce an effect that is different from

the effect of each part on its own? and perhaps Does the effect, the behavior over time, persist in a variety of

circumstances?

Source: (Meadows, 2008)

Page 15: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Systems can grow in different ways...População

600

450

300

150

0

0 10 20 30 40 50 60 70 80 90 100Time (Month)

População : C:\Users\Alexandre\Desktop\linear

População

6,000

4,500

3,000

1,500

0

0 10 20 30 40 50 60 70 80 90 100Time (Month)

População : C:\Users\Alexandre\Desktop\linear

população

600

450

300

150

0

0 10 20 30 40 50 60 70 80 90 100Time (Month)

população : Current

forever...

explode...

stabilize...

Page 16: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Run code #1 – Linear Growth

Page 17: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Feedbacks

Feedback is how the system affect itself

Essential to systems be able to reach their goal

Inflow OutflowSystem

Feedback

Page 18: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Population growth

Births Deaths

Fertility

Mortality

Population

Page 19: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Positive Coupling

AtmosphericCO2

Greenhouseeffect

• An increase in atmospheric CO2 causes a corresponding increase in the greenhouse effect, and thus in Earth’s surface temperature• Conversely, a decrease in atmospheric CO2

causes a decrease in the greenhouse effect

Page 20: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Negative Coupling

Earth’s albedo(reflectivity)

Earth’ssurface

temperature

• An increase in Earth’s albedo causes a corresponding decrease in the Earth’s surface temperature by reflecting more sunlight back to space• Or, a decrease in albedo causes an increase in surface temperature

Page 21: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

The interesting thing to do is to putcouplings together in feedback loops…

Page 22: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

person A’sbodytemperature

person A’sblankettemperature

Negative Feedback Loops:Electric Blankets

person B’sblankettemperature

person B’sbodytemperature

Page 23: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

person A’sbodytemperature

person A’sblankettemperature

A Positive Feedback Loop:Mixed-up Electric Blankets

person B’sblankettemperature

person B’sbodytemperature

Page 24: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

A Positive Feedback Loop:Mixed-up Electric Blankets

Any perturbation will cause both people to adjust their blanket controls, but with undesired consequences.

Ultimately, one person will freeze (become infinitely cold) and the other person to swelter (become infinitely hot).

Page 25: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Equilibrium State:

Conditions under which the system will remain indefinitely

--If left unperturbed

Page 26: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Reinforcing feedbacks

Also named: positive, self-reinforcing, discrepancy-enhancing, degenerative

Self-enhancing behavior that leads to growth or even collapses

População

6,000

4,500

3,000

1,500

0

0 10 20 30 40 50 60 70 80 90 100Time (Month)

População : C:\Users\Alexandre\Desktop\linear

Page 27: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Run code #2 – Exponential Growth

Page 28: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Balancing feedback

Also named: negative, self-correcting, discrepancy-reducing, regenerative

Equilibrating or goal-seeking structures

população

600

450

300

150

0

0 10 20 30 40 50 60 70 80 90 100Time (Month)

população : Current

Page 29: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Homeostasis

It is a tendency that all systems have to maintain their equilibrium state through negative feedbacks

Initial condition = 3.2

Initial condition = 8

Page 30: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Run code #3 – Homeostasis

Page 31: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Equilibrium state (some times steady-state)

Equilibrium means a state of balance.

There are no net flows of matter or of energy

Input flow == Output flow

Inflow OutflowSystem

Page 32: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Equilibrium state (some times steady-state)

Equilibrium means a state of balance.

There are no net flows of matter or of energy

Input flow == Output flow

Inflow OutflowSystem

Page 33: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

An Unstable Equilibrium State

low resilience

Page 34: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

An Unstable Equilibrium State

Perturbation

Page 35: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

When pushed by a perturbation, an unstable equilibrium state shifts to a new, stable state.

Page 36: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

A Stable Equilibrium State

higher resilience

Page 37: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

A Stable Equilibrium State

Perturbation

Page 38: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

When pushed by a perturbation, a stable equilibrium state, returns to (or near) the original state.

Page 39: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Run code #4 – Logistic Growth

Page 40: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Verify and analyse models with visualizations TerraME provides you different types of Observers However, it can only observes TerraME types: Cell, Agent, CellularSpace, Timer,

Environment, etc.

Page 41: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Ant agents eat sugar on a cellular space

Page 42: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Run codes #5, #6 – Logistic Growth

Page 43: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Discrete & Continuous Systems

Discrete systems jump from one state to other without intermadiate valuas, like the traffic light.

Continuous system change from a state to other going through all intermadiate states, like the speed of a car.

Depending on your point of view you can model a system as discrete or continuos, like a lift.

ht+1 =ht ± 1 = ± 0.1 hdt

dh

Page 44: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

There are different types of equlibrium

Discrete systems: Fixed point - System converges to a one-dimension fixed

value.

N-dimensional attractors – System converges to attractors composed by several N fixed points

Deterministic CAOS – System is locked in a high dimensional attractor composed theorically by a infinite number of fixed points and will never repeat itself (this is the caos).

Page 45: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Run codes #7 – Discrete Logistic Growth

As the system is discrete we should use a difference equation istead of a differential equation:

)/1(1 KNrNN ttt

Page 46: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Logistic Map

From smooth behavior to deterministic caos through duplication of periods. Feigenbaum, M. (1983) – in Physics. May, R. (1976) – in Ecology.

Page 47: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Discrete Growth – It is no error propagation!

(a) r = 1,2, (b) r = 3,0, (c) r = 3,5 e (d) r = 4,0.

Page 48: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

There are different types of equlibrium

Cotinuous systems: One single system

Static equilibrium - System converges to a one-dimension fixed value.

Coupled sytems (like prey-predator) Static equilibrium - System converges to a one-dimension fixed value.

Dynamic equilibrium – System converges to cyclical behavior and keep repeating itself

Erratic outcomes of deterministics rules should be treated as error propagation in the integration method

Page 49: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Run code #8 – Contiuous System

Page 50: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

How CONTINUOUS systems grow?

Linear growth

Exponential growth

Logistic growth

rdt

dN

rNdt

dN

kNkrNdt

dN/)(

População

600

450

300

150

0

0 10 20 30 40 50 60 70 80 90 100Time (Month)

População : C:\Users\Alexandre\Desktop\linearPopulação

6,000

4,500

3,000

1,500

0

0 10 20 30 40 50 60 70 80 90 100Time (Month)

População : C:\Users\Alexandre\Desktop\linear

população

600

450

300

150

0

0 10 20 30 40 50 60 70 80 90 100Time (Month)

população : Current

N

rk

)/1( kNrNdt

dN

Page 51: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

How to implement stochastic models?

Create a random object that is able to generate numbers in a uniform distributionrandom = Random()

probability density function

Call function number(a, b) to generate real numbers within the interval [a, b]:

n = random:number(0,1)

Call function integer(a,b) to generate integers within the interval [a,b]: n =

random:integer(10,20)

Page 52: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

How to implement stochastic models?

random = Random()

counter = 0for i = 1, 1000 do

local n = random:number(0, 1)if ( n < 0.3) then -- try 0.0 0.5 0.95 1.0

counter = counter + 1end

end

print( (counter/1000) * 100 ) -- 30%

Page 53: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Run codes #9 and #10 – Stochastic process

Page 54: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Coupled systems – Dynamic Equilibrium

Page 55: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Run code #11 – Prey-predator model

Page 56: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Short History of System Dynamics

The System Dynamics approach was developed in the 1960s at M.I.T. by Jay Forrester.

A system in Modelica

Page 57: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Conception of Reality

Any measurable part of reality can be modeled Systems are represented as stocks and flows

Stocks represent energy, matter, or information Flows connect and transport stocks

Systems are opened or closed

Page 58: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

A system

Can you identify parts? and Do the parts affect each other? and Do the parts together produce an effect that is different from

the effect of each part on its own? and perhaps Does the effect, the behavior over time, persist in a variety of

circumstances?

Source: (Meadows, 2008)

Page 59: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

slide 59

Systems Building Blocks

Stocks Flows Information Links Decision Points Converters Auxiliary Variables

Page 60: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

slide 60

Stocks

“Things” that accumulate in a system Physical or non-physical things Value is a quantity or level Persistent (remain even if all flows stop) Conservation (stock units enter from environment

and return to environment)

Page 61: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

slide 61

Flows

Movement of “things” in and out of stocks Not persistent (can be stopped and started) Value is a rate of change (will always have a time

dimension) Flow unit = stock unit / time The unit of measurement for a flow will always be

the unit of measurement of a stock divided by an element of time

Page 62: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

slide 62

Stock and Flow Diagram

Stocks in boxes Flows as straight double arrows Information Links as thin curved arrows Decision Points as closed in X

Page 63: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Control Material Flaw

to Stock

Add New information

Send informationfrom the Stock

Control Material Flaw

from Stock

Stock

System Dynamics Modelling

Page 64: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Shrimp farming

Page 65: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Simple model for shrimp farm

Page 66: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Results?

Figure 7

Page 67: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

An Unstable Equilibrium State

Page 68: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

An Unstable Equilibrium State

Perturbation

Page 69: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

When pushed by a perturbation, an unstable equilibrium state shifts to a new, stable state.

Page 70: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

A Stable Equilibrium State

Page 71: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

A Stable Equilibrium State

Perturbation

Page 72: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

When pushed by a perturbation, a stable equilibrium state, returns to (or near) the original state.

Page 73: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Tools for system dynamics

Dinamo Vensim Simile STELLA

Page 74: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Water in the tub

Initial stock: water in tub = 40 gallons water in tub(t) = water in tub(t – dt) – outflow x dt t = minutes dt = 1 minute Runtime = 8 minutes Outflow = 5 gal/min

Page 75: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Cell

Not yet

(description extracted from “TerraME types and functions”)

Page 76: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Event

Not yet

Not yet

Page 77: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Temporal model

Source: (Carneiro et al., 2013)

1:32:10 ag1:execute( )

1:38:07 ag2:execute( )

1:42:00 cs:save()

. . .

(4) ACTIONreturn value

true

(1) Get first EVENT

1:32:00 cs:load( ) (2) Update current time

(3) Execute the ACTION

false

(5) Schedule EVENT again

Page 78: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Observer

Not yet

Page 79: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Water in the tub

Initial stock: water in tub = 40 gallons water in tub(t) = water in tub(t – dt) – outflow x dt t = minutes dt = 1 minute Runtime = 8 minutes Outflow = 5 gal/min

Page 80: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Water in the tub 2

Initial stock: water in tub = 40 gallons water in tub(t) = water in tub(t – dt) – outflow x dt t = minutes dt = 1 minute Runtime = 8 minutes Outflow = 5 gal/min Inflow = 40 gal every 10 min

Page 81: Systems Theory Tiago Garcia de Senna Carneiro Pedro Ribeiro de Andrade Gilberto Câmara Münster, 2013

Conclusions

Two ways to increase stocks Stocks act as delays or buffers Stocks allow inflows and outflows to be decoupled