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

(Geo) Mesa agent based model not displaying results and no model stepping

I am trying to create an agent based model for city fire based on wild fire example: https://github.com/projectmesa/mesa/tree/master/examples/forest_fire/forest_fire The code below is not displaying any results and the model is not stepping. Option…
alex dun
  • 21
  • 2
1
vote
1 answer

How do I determine the number of runs I need to carry out in a netlogo to reduce the influence of randomization?

enter image description here Box plot I have plotted an output variable as a box plot for the number of runs. But I fail to provide argumentation on which should be the optimum amount of runs that should be carried out.
Cloude
  • 113
  • 7
1
vote
1 answer

Netlogo: is ´map´ limited to two lists?

When I try the following command on NL 6.1.1: (map + [1 2 3] [2 4 6] [7 8 9]) I get [3 6 9]as a result instead of [10 14 18], which means that only the first two lists are considered in the sum. Anyone knows how to correct this and get all three…
lomper
  • 379
  • 1
  • 12
1
vote
1 answer

Repast Java: how to run model directly in Eclipse without GUI and how to run it in headless mode without even Eclipse

I am wondering how to 1) how to run model directly in Eclipse without GUI - just run the model like run other java codes in Eclipse and print out something i am interested. 2) how to run it in headless mode without even Eclipse - I plan to deploy…
Jack
  • 1,339
  • 1
  • 12
  • 31
1
vote
0 answers

Netlogo does not allow the same agents to be linked several times, what is the alternative?

I am fairly new to NetLogo. I would like to create links between different turtles’ breeds and keep track of how many times each turtle of breed A links with any turtle of breed B. Let’s say breed A are patients and breed B are doctors that have…
snetlogo
  • 59
  • 5
1
vote
1 answer

Create links according to turtle's attributes

I have two turtle breeds (products and consumers) each with a 3-dimension list that defines their needs (consumers) and their attributes (products). What I'd like is to have each consumer (i) look for a product that satisfies all their needs and…
lomper
  • 379
  • 1
  • 12
1
vote
1 answer

Persistent error of 'NOBODY' in wall collision procedure in simple car driving model in Netlogo

I am developing a model of simple car driving simulation in NetLogo. However, I am facing one major and minor problem. The procedures of the model are following: There must be a car generated in the center of the world with "size 3". Car can move…
1
vote
1 answer

Repast: how to count the total number of agents satisfying the specific condition

Each agent has a private boolean variable "Happy?". how to count the agents with [Happy? = True]? Is there a direct method available in repast? Or I have iterate through all agents and count them individually? Update: I have tried the global…
Jack
  • 1,339
  • 1
  • 12
  • 31
1
vote
1 answer

Netlogo: variable sometimes list sometimes number, results in error

I have a reporter that works fine when I run it but mistakingly when I add a condition to it. All my turtles have two three dimensional vectors called var_aand var_b. When I run this for my whole world there's no problem: to-report turtle-bounds…
lomper
  • 379
  • 1
  • 12
1
vote
1 answer

NetLogo, mapping an array of multidimensional variables

I need to estimate the mean value in a network for each dimension of a 3-dimension variable (var_1) . The code I've written doesn't quite do the trick: set avg-network map mean ([var_1] of turtles) What this does is calculating the average for…
lomper
  • 379
  • 1
  • 12
1
vote
1 answer

How to manage 3D arrays in agent-based models with R?

I am building an agent-based model with R but I have memory issues by trying to work with large 3D arrays. In the 3D arrays, the first dimension corresponds to the time (from 1 to 3650 days), the second dimension defines the properties of…
Nell
  • 559
  • 4
  • 20
1
vote
1 answer

Assigning patch values from raster data in NetLogo

I am attempting to assign values to patches in NetLogo based upon raster values: 0, 1, and 2. These patches need only relate to the values of my raster, which does display properly using a greyscale, and then 'paint' themselves the colors blue,…
1
vote
1 answer

Writing an if statement depending on an attribute of an agent to command agents of a different agentset

I am trying to make an agentset do something, if an agent(of a different agentset) has a particular shape. Here, if the shape of a particular ghost (say Ghost 1) is circle, then all rabbits are supposed to move forward 1. (<-This is the intended…
1
vote
0 answers

NetLogo model about production location decision yields towards exponential growth

I have created a model with which I'm trying to replicate the automation-induced phenomenon of reshoring production. 1. One particular issue I have is that the capital of the firms grow exponentially which makes the simulation collapse at one point…
user11277648
  • 53
  • 1
  • 5
1
vote
1 answer

How to code an IF command with 2 conditions in NetLogo?

My turtles are firms and they have a turtles-own which is a profit varying from firm to firm, as well as offshored? and reshored? which is either true or false. There is something not right about the code. I struggle with combining the IF and the…