Questions tagged [agent-based-modeling]

Agent-based modeling is a computer simulation method where agents make decisions based on their interactions with each other and their environment. It combines elements of game theory, complex systems, emergence, computational sociology, multi-agent systems, and evolutionary programming.

From Wikipedia:

An agent-based model (ABM) (also sometimes related to the term multi-agent system or multi-agent simulation) is a class of computational models for simulating the actions and interactions of autonomous agents (both individual or collective entities such as organizations or groups) with a view to assessing their effects on the system as a whole. It combines elements of game theory, complex systems, emergence, computational sociology, multi-agent systems, and evolutionary programming. Monte Carlo Methods are used to introduce randomness. ABMs are also called individual-based models.

474 questions
1
vote
1 answer

NETLOGO: Storing and using the value of a variable in the last 3 ticks

I am trying to model a stock market. I am trying to give agents a certain kind of behaviour to base their prediction of the prices on. So basically, every agent predicts the price of the share. In the Setup procedure, a random predicted price is…
Alea
  • 121
  • 3
1
vote
1 answer

What would be a good approach to mutate a turtle variable in NetLogo?

I'm simulating a multi-agent system. Each agent has a chromosome. The genotypes represent 5 parameters that are various floating-point numbers between 0 and 100. My mutation operator simply modifies the original gene with a new random number…
Met
  • 23
  • 3
1
vote
0 answers

Integral equation: Modelling a Cobb-Douglas technology final goods production function

Background of equation: I'm trying to apply Agent-based Computational Economics on NetLogo. But I'm struggling with coding an integral equation (her: /int): Yt = Ls ^1-ε · [/int between upper Qt+1 and lower Qt] x(qt)^ε dqt Consider a country with…
user11277648
  • 53
  • 1
  • 5
1
vote
1 answer

How to distribute agents' attributes randomly according to specific probabilities in Netlogo?

I am relatively new to Netlogo, having completed only a handful of models. Currently working on one for my dissertation where I need to distribute agents' attributes randomly according to specific probabilities, some at the onset of the simulation,…
1
vote
1 answer

How to keep track of the coordinates of the turtles after they hit the boundaries of the world in NetLogo?

I am simulating a random walk within bounded angels, and I want to calculate the mean squared displacement of the turtles in 2D in my model. The turtles all start from the center. I am not sure how to update the xy coordinates for the turtles after…
Gol
  • 27
  • 1
  • 5
1
vote
0 answers

how can i make an agent jump with a tiny probability?

so like i've posted it above. i'm trying to make the agent jump with a tiny probability , any suggestions ? thanks. i thought about importing the turtle library and using the methods featured in it to build a function based on the turtle.goto(x,y)…
Dimi
  • 531
  • 3
  • 8
  • 20
1
vote
1 answer

reconfiguring the model with the use of at least two breeds

so what i want to do is to reconfigure the model with the use of at least two breeds and than try to change the breed while the simulation is running. many thanks . to setup ca reset-ticks create-turtles nBugs [set color red set size…
Dimi
  • 531
  • 3
  • 8
  • 20
1
vote
1 answer

Importing agents and their attributes from CSV in mesa

My data is in .csv format and each row of data represents each agent while each column represents a certain attribute. My question is how to assign agents and their attributes from a csv file in Mesa? Could anyone help me with how to import them…
Mo Pa
  • 11
  • 2
1
vote
1 answer

Is there anyway to define subagents in a multiagent system while using Mesa library in Python?

I'm trying to write a multiagent system in python using the Mesa library, and while the library has been great for a beginner like me(unlike something like Spade, which I found too complex), I can't figure out how I would define subagents using the…
Hamza Waheed
  • 139
  • 2
  • 10
1
vote
1 answer

How do I plot a distribution curve over a histogram in NetLogo?

I am writing a simple model for the food exchange in bees in NetLogo. I plotted a histogram to show the distribution of bees with different food amounts at each tick. Now I want to plot a normal distribution curve that overlay the histogram, each…
1
vote
1 answer

netlogo: create a matrix of random numbers

I'm looking to a way to create a matrix filled with random values. Tried to create a matrix:make-constant, which, obviously, returns a constant (say, a matrix full of 6s). This answer doesn't seem to be working properly. In my model, hunters should…
gvanhavre
  • 113
  • 3
1
vote
1 answer

NetLogo help using function "let"

We are modeling an interaction between two agents using the function "let" similar to the wolf-sheep model. When the agent1 is in the same space as agent2, agent2 (prey) needs to get the variable a with the same value as the variable a from agent1…
1
vote
0 answers

Agent based modelling in Python: defining a step method with timestep as its argument

I am using the "mesa" library of Python to define an agent based model. I am encountering a problem when I define the step method of the agents and of the model. In particular I would like the agents to behave in a certain way if they act during the…
Luca G.
  • 29
  • 1
  • 6
1
vote
2 answers

Export world with turtles' coordinates

I am developing a model that loads an .asc topographic file to the view and then, I create some turtles and the model runs etc., etc.. I would like to know if it's possible to export the result of the simulation with turtle location into .asc or…
1
vote
0 answers

Error in Tabonuco-Yagrumo-Hybrid Netlogo model?

I am working through how Netlogo's Tabonuco-Yagrumo-Hybrid model (http://ccl.northwestern.edu/netlogo/models/TabonucoYagrumoHybrid) integrates system dynamics and agent-based modelling. As I understand it, the model replaces the traditional 'flows'…
user_15
  • 151
  • 9