Top Banner
@SMOLLAMARCO AGENT-BASED MODELLING IN R MARCO SMOLLA
12

AGENT-BASED MODELLING IN R...AGENT-BASED MODELLING IN R WHAT ARE AGENT-BASED MODELS? “… simulate the simultaneous operations and interactions of multiple agents in an attempt to

Mar 14, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: AGENT-BASED MODELLING IN R...AGENT-BASED MODELLING IN R WHAT ARE AGENT-BASED MODELS? “… simulate the simultaneous operations and interactions of multiple agents in an attempt to

@SMOLLAMARCO

AGENT-BASED MODELLING IN R

MARCO SMOLLA

Page 2: AGENT-BASED MODELLING IN R...AGENT-BASED MODELLING IN R WHAT ARE AGENT-BASED MODELS? “… simulate the simultaneous operations and interactions of multiple agents in an attempt to

AGENT-BASED MODELLING IN R

WHAT ARE AGENT-BASED MODELS?

▸ “… simulate the simultaneous operations and interactions of multiple agents in an attempt to re-create and predict the appearance of complex phenomena.” (Wikipedia)

▸ Three central ideas to ABM:

▸ Agents (dynamically interacting rule-based objects)

▸ Emergence (rise of larger entities, patterns and regularities through interactions among smaller or simpler entities that themselves do not exhibit such properties)

▸ Complexity (interaction of individual parts in various ways …)

Page 3: AGENT-BASED MODELLING IN R...AGENT-BASED MODELLING IN R WHAT ARE AGENT-BASED MODELS? “… simulate the simultaneous operations and interactions of multiple agents in an attempt to

Ashcroft, Michor, Galla, 2015, Genetics

AGENT-BASED MODELLING IN R

EXAMPLES

Page 4: AGENT-BASED MODELLING IN R...AGENT-BASED MODELLING IN R WHAT ARE AGENT-BASED MODELS? “… simulate the simultaneous operations and interactions of multiple agents in an attempt to

AGENT-BASED MODELLING IN R

Page 5: AGENT-BASED MODELLING IN R...AGENT-BASED MODELLING IN R WHAT ARE AGENT-BASED MODELS? “… simulate the simultaneous operations and interactions of multiple agents in an attempt to

AGENT-BASED MODELLING IN R

ABM INGREDIENTS

▸ Agents, interact with the world around them and/or with other agents

▸ World

▸ Rules, determines the context-dependent behaviour of an agent

▸ Loop (allows to repeatedly act or interact)

Page 6: AGENT-BASED MODELLING IN R...AGENT-BASED MODELLING IN R WHAT ARE AGENT-BASED MODELS? “… simulate the simultaneous operations and interactions of multiple agents in an attempt to

A SIMPLE EXAMPLE

PLAYING GAMES?

Page 7: AGENT-BASED MODELLING IN R...AGENT-BASED MODELLING IN R WHAT ARE AGENT-BASED MODELS? “… simulate the simultaneous operations and interactions of multiple agents in an attempt to

AGENT-BASED MODELLING IN R

A SIMPLE EXAMPLE

▸ 2 agents with 1 out of 3 strategies and number of won rounds

▸ a function to choose strategies

▸ a function to let agents compete

▸ … loop it

Page 8: AGENT-BASED MODELLING IN R...AGENT-BASED MODELLING IN R WHAT ARE AGENT-BASED MODELS? “… simulate the simultaneous operations and interactions of multiple agents in an attempt to

AGENT-BASED MODELLING IN R

A SIMPLE EXAMPLE

Page 9: AGENT-BASED MODELLING IN R...AGENT-BASED MODELLING IN R WHAT ARE AGENT-BASED MODELS? “… simulate the simultaneous operations and interactions of multiple agents in an attempt to

ADDING STRATEGIES

Page 10: AGENT-BASED MODELLING IN R...AGENT-BASED MODELLING IN R WHAT ARE AGENT-BASED MODELS? “… simulate the simultaneous operations and interactions of multiple agents in an attempt to

AGENT-BASED MODELLING IN R

AN ADVANCED EXAMPLE

Page 11: AGENT-BASED MODELLING IN R...AGENT-BASED MODELLING IN R WHAT ARE AGENT-BASED MODELS? “… simulate the simultaneous operations and interactions of multiple agents in an attempt to

“ALL MODELS ARE WRONG … BUT SOME ARE USEFUL”

George Box

AGENT-BASED MODELLING IN R

Page 12: AGENT-BASED MODELLING IN R...AGENT-BASED MODELLING IN R WHAT ARE AGENT-BASED MODELS? “… simulate the simultaneous operations and interactions of multiple agents in an attempt to

@SMOLLAMARCO

AGENT-BASED MODELLING IN R

MARCO SMOLLA

Code @ https://github.com/flsrgroup/ABM-in-R/blob/master/ABM.Rmd