38
Entities and Relations for Agent-Based Modelling of Complex Spatial Systems March/09 Pedro Ribeiro de Andrade Antônio Miguel Vieira Monteiro Gilberto Câmara

Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Entities and Relations for Agent-Based Modelling ofComplex Spatial Systems

March/09

Pedro Ribeiro de Andrade

Antônio Miguel Vieira Monteiro

Gilberto Câmara

Page 2: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

source: IGBP

The fundamental question of our time

How is the Earth’s environment changing, and what are the consequences for human civilization?

Page 3: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

How to model these phenomena?

Page 4: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Agents as basis for complex systems

Agent: flexible, interacting, and autonomous

An agent is any actor within an environment, any entity that

can affect itself, the environment, and other agents.

Page 5: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Agent-Based Modelling

Goal

Environment

Representations

Communication

Action

Perception

Communication

source: Nigel Gilbert

Page 6: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

“... Incorporating real spatial heterogeneity into agent-based models will improve our ability to draw conclusions about the behavior of complex systems in realistic environments...”

(Brown et al., 2005)

Page 7: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

How can geospatial data feed agent-based models?

Scientific question

?Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdfJfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf

Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf

Page 8: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Relations

Entities

How can geospatial data feed agent-based models?

Scientific question

Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdfJfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf

Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf

Page 9: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Citizens (points) Farmers (polygons)

First Entity: Agent

Source: (Crooks, 2006); (Lim et al. 2002)

Page 10: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Agents are computational systems placed in some environment.

(Jennings et al., 98)

Second Entity: Space

� Discrete → cells

� Dynamic

Page 11: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Agent

Cell

Cell Agent

Sources: (Benenson and Torrens, 2005; Samuelson and Macau, 2006)

FromTo

Relations

Page 12: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Cell→cell

Spatial neighbourhood between cells

Page 13: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Cell→agent

“Which agents belong to this cell?”

Page 14: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Agent→cell

Source: Adapted from (Lim et al. 2002)

“Which cells this agent controls, owns, targets?”

Page 15: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Agent→agent

Agents can communicate, exchange goods, etc.Agents are situated in space.

Page 16: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Agent

Cell

Cell AgentFromTo

Relations and their differences

Page 17: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Relations and their differences

--Adjacency, contiguity, distance, accessibility,

visibility

Amount of time, intimacy, emotional intensity, reciprocal services

Weight

SymmetricalSymmetricalDiredtedDirectedGraph

BinaryBinaryWeightedWeightedType

No flowNo flowAgents, suppliesInformationFlow

Cell→AgentCell→AgentCellsAgents

PlacementNeighbourhood

Agent

Cell

To

Neighbourhood

Cell AgentFrom

Page 18: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Relations and their differences

--Adjacency, contiguity, distance, accessibility,

visibility

Amount of time, intimacy, emotional intensity, reciprocal services

Weight

SymmetricalSymmetricalDiredtedDirectedGraph

BinaryBinaryWeightedWeightedType

No flowNo flowAgents, suppliesInformationFlow

Cell→AgentCell→AgentCellsAgents

PlacementNeighbourhood

Agent

Cell

To

PlacementCell AgentFrom

Page 19: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Source: (Benenson; Torrens, 2005), (Samuelson; Macau, 2006)

The idea of Generalized Proximity Matrix (GPM) is a foundation for setting up these relations

Hypothesis

Cell Agent

From

To

GPMGPM

GPMGPMAgent

Cell

Page 20: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Source: (Aguiar, 2003)

Which objects are closer?

Page 21: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Source: (Aguiar, 2003)

Which objects are closer?

Page 22: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Euclidean Spaces Open Network Closed Network

GPM – strategies for building relations

Page 23: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

GPM as a graphTo

Agent

Cell

a

b

a

b

c

c

Cell Agent

From

Page 24: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Source: (Carneiro, 2006)

TerraME

Page 25: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Source: (Aguiar, 2003;; Carneiro, 2006)

� Cell

� CellularSpace

� Neighbourhood

� Trajectory

( , ≤≤≤≤ )

Space

Page 26: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Source: adapted from (Carneiro, 2006)

Deforestation > 70%

recently created

desfloresting

saturated

Latency > 6 years

Evolution of Desflorestation

recession

growing

normal

time = 1997

time = 1988

time = 1994

Economic system

Behaviour – Agent

Page 27: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

CellAgent

ForEachCell

ForEachCellForEachNeighbor

CellularSpace

Trajectory

DBMS

Page 28: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

CellAgent

ForEachAgent ForEachCell

ForEachCellForEachNeighbor ForEachNeighbor

ForEachAgent

CellularSpaceSociety

Group Trajectory

DBMS

Page 29: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Cell→agent

Model 1: Competition for Space

Page 30: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Cell→agent

Model 1: Competition for Space

Page 31: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Deforestation

Forest

Non-forest

Deforestation Map – 2000 (INPE/PRODES Project)

km

Projetos de Colonização

10

8

15

1614

13

Projetos antigosNovos projetosProjetos planejados

km

Projetos de Colonização

10

8

15

1614

13

Projetos antigosNovos projetosProjetos planejados

Projetos antigosNovos projetosProjetos planejados

Federal Government induced colonization area (since the 70’s):

� Small, medium and large farms.

� Mosaic of land use patterns.

� Definition of land units and typology of actors based on multi-temporal images (85-00) and colonization projects information (Escada, 2003).

Model 2: Deforestation in Rondônia

Page 32: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

1985 to 1997

Source: adapted from (Carneiro, 2006)

Model 2: Deforestation in Rondônia

Page 33: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Large farmer (25 cells)

500 m (all)

Small farmer (2 cells)

Agent→cell

Page 34: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

“Society”of

Producers

“Society”of

Suppliers

“Society”of

Consumers

GPM GPM

GPM GPM GPM

Model 3: Logistic or supply chains

Page 35: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Agent→agent

Page 36: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Conclusions

* Up to the modeller

Agent→CellCell→Agent

� Weak connections between toolkits and GIS

� Toolkits adapted for problems, or problems adapted to toolkits

Page 37: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Conclusions

Page 38: Entities and Relations for Agent-Based Modelling of Complex …wiki.dpi.inpe.br/lib/exe/fetch.php?media=encontros_e... · 2009-05-14 · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh

Entities and Relations for Agent-Based Modelling ofComplex Spatial Systems

Pedro Ribeiro de Andrade

Antônio Miguel Vieira Monteiro

Gilberto Câmara

{pedro, miguel, gilberto}@dpi.inpe.br

http://lucc.ess.inpe.br