• Aucun résultat trouvé

Creating Agent-Based Models

N/A
N/A
Protected

Academic year: 2022

Partager "Creating Agent-Based Models"

Copied!
13
0
0

Texte intégral

(1)

Agent-Based Modeling (Master SIED)

Andrea G. B. Tettamanzi

I3S Laboratory – SPARKS Team

andrea.tettamanzi@univ-cotedazur.fr

(2)

Unit 3

Creating Agent-Based Models

(3)

Four Characteristics of ABM

1)Simple rules generate complex phenomena

2)Randomness at the level of the individual can result in nearly deterministic population-level behavior

3)Complex patterns can “self-organize” without any central leader

4)Different models emphasize different aspects of

the world

(4)

The “El Farol” Problem

A well-known problem in Game Theory

100 people in Santa Fe, NM like Irish Music

Every Thursday night, an Irish band plays at El Farol (The Lantern)

However, the bar is quite small: if more than 60 people are at the bar, then it is crowded and no one has fun

The newspaper publishes the attendance each week

On the basis of the past n weeks how do individuals decide whether or not to go to the bar?

What happens if everyone uses the same strategy?

(5)

Brian Arthur’s Experiment

Brian Arthur (1994) postulated this problem and proposed a solution:

Individual have a bag of strategies to predict attendance such as:

Last week’s attendance times two

Two weeks ago’s attendance minus last week’s

Each agent determines which strategy would have worked the best had they used it the last five weeks

They then use that strategy to predict what this week’s

attendance will be and decide whether to go to the bar on that basis

(6)

The Question

of the El Farol Bar Problem

Most humans do not act rationally, they act in a boundedly rational way

Most humans do not reason deductively from first principles, they reason inductively from past experience

We want to investigate what happens if we

assume agents participating in this “game” act

this way

(7)

A Mesa Model

Each agent has:

a memory of t weeks

a set of n strategies to predict attendance of the form:

So their strategy is defined by the a’s

The agent determines the total error between predicted and actual attendance of each of their strategies given their memory

The agent uses the least erring strategy this timestep to

predict the attendance: ≤60, they go; >60, they do not.

(8)

What is Success?

The original model illustrates how many agents make it to the bar and whether or not the bar is crowded

What if we want to know which agents are doing better at attending the bar than other agents?

Add a reward:

Initialize reward at initialization

An agent gets rewarded for going to the bar when it is

not crowded (reward++)

(9)

What to Observe/Report?

Plot the attendance (as a function of time)

Plot a histogram of attendance (distribution)

Plot a distribution of reward

(10)

Machine Learning and ABM

Initialize world and

agents

Create an internal

model

The ABM Processing Loop The ML Processing Loop

Agents observe the world Agents update

their internal model

Observe the world and record

observations in history

Update internal model based

on history

(11)

Machine Learning and ABM

Initialize world, agents,

and internal models

Agents observe the world

Agents update their internal

model

Agents take

Observe the world and record

observations in history

Update internal model based

on history Recommend observations

(12)

Revisiting the El Farol Bar Problem

Arthur claimed that if a GA was used instead of a bag of strategies the result would be the same

Fogel et al. (1999) took up Arthur’s challenge and used a GA

They showed that the average attendance was 57

They allowed each individual to run a GA for 25 generations with 100 different strategies

Random attendance is 50

Arthur’s attendance is 60

Fogel et al. achieved an attendance of 57

Perfectly rational agents – 50?

(13)

The Next Step

Use an optimization method to optimize the strategy

Try different methods and parameters:

Simple linear regression

Quadratic programming / Quasi-Newton

Simulated annealing

Genetic algorithms

Any other of your choice...

Run the Model for 500 ticks

Average over 30 runs

Measure Mean Attendance per Week for last 100 weeks

Références

Documents relatifs

Running Head: WHAT ARE LEARNING MANAGEMENT SYSTEMS 13 2006 survey highlights the features most commonly found in the corporate LMSs. currently being utilized ("2006 Survey

Forty three percent of farms that used some profit for rent increases knew that some of their landowners had been offered a higher rent outside the corporate

Many nudges that are aimed at everyone, and motivated by community benefits, are very much in line with an idea of solidarity as an underlying principle of health care.. At the

While most of the Minnesota collection is also available on the Internet, documents from the British American Tobacco Company stored in England are not, except for a small subset

The steps performed during analysis were: (1) Open coding, where each sentence were coded with its messasge(message) and type of message (category) as shown in the example in Table

consider aerodynamic effects without physical motivation linear with respect to the quadrotor linear and angular velocities, but propose very small numerical values; [5] judges

Separate regressions of treatment on the outcome using the reduced sample size for each interaction term confirm that differences in the coefficient on treatment are not due to

The modelling framework outlined in this paper can compare nicely with other authors’ work: Allen’s theory of action and time (Allen, 1984), ontology of action in production