Complexity Explorer Santa Few Institute

Introduction to Agent-Based Modeling

Lead instructor:

This course is no longer in session.

Unit 3: Extending Models

Raúl
11 Jul 2024 2:07pm UTC
in Unit 3: Extending Models

Hello Bill,
I was playing with the El Farol model and I thought that any town has a population of 100 persons. What happened in the model when you increase the number of habitants? What I observe is that the average occupancy of the El Farol is always around 1/2 the total population over the time (20000 ticks). Agents are not showing an optimization of the strategy, and the occupancy is similar to what you obtain flipping a coin. What I'm missing?
Thanks in advance.

Raúl
11 Jul 2024 1:17pm UTC
in Unit 3: Extending Models

Hello Bill,
I'm trying to reproduce the histograms that you plot in lecture 3.4.1. I reproduce the code, but I can not figure out how to properly plot the histogram.
histogram [test1] generate an error, histogram test1 no, but do not plot anything.
Can you please, help me?

Mike R
04 Jul 2024 4:38pm UTC
in Unit 3: Extending Models

Hello. In lecture 3.5, Bill Rand describes the results of his change to the El Farol model to incorporate genetic algorithm capabilities within each agent and to ramp up the computational power available overall. He remarks: "“Sure enough, we never quite got up to that 60—but as you increase the computational power, the average attendance at the bar went down; which is interesting, right: you have agents able to make better and better decisions, and yet the system as whole performs less well."

QUESTION: In what respect does the system as a whole perform less well? [No doubt it's staring me right in the face.] Thanks.

Alexander Tolley
27 Jun 2024 3:23pm UTC
in Unit 3: Extending Models

The El Farol attendance plot starts from time = 0, and then continues adding data for as long as the model runs. As a result, the data compresses horizontally.

Question: How would one modify the code so that the plot shows a sliding window of N attendance points?
[ Does it require storing a FIFO buffer of N attendance values and plotting the buffer?
Or can the x-axis be limited in the update plot section in some ways?]

daniel sánchez
27 Jun 2024 7:15am UTC
2
in Unit 3: Extending Models

Hi everyone,

Trying to follow the extension of the EL FAROL model, I get an error when I try to write:

[
ask turtles with [ attend?] [
set reward reward +1
]
]

Has anyone else had this happen to them?

daniel sánchez
27 Jun 2024 7:18am UTC
in Unit 3: Extending Models

In the post the code is not indented, though it is in fact indented,

daniel sánchez
27 Jun 2024 7:27am UTC
in Unit 3: Extending Models

I solved, was my bad to not modify if for ifelse...