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
3
votes
1 answer

Implementing three functions at once into a Different Evolution Optimizer

I’ve installed the Differential Evolution (DE) Optimizer following the instructions on https://github.com/skarjoko/differential-evolution/blob/master/Main.java, and simply running the code in eclipse works fine and easily lets me optimize the…
3
votes
2 answers

patches-own a vector in netlogo

In the patches-own section at the start, can I index one of the variables over a breed, so it's a vector rather than a single variable? Specifically, I've got a breed called Developers (it's an ABM of house-building), and patches own a land-price,…
MikePB
  • 33
  • 4
3
votes
1 answer

Expected keyword error - Netlogo

I have this code from book Agent-based and individual based-modeling by Railsback chapter 16 but it doesn't work and I don't know why. I am new in NetLogo, the software shows "Expected keyword" in line 22. (create-packs) breed [dogs dog] breed…
Reyjhonny
  • 43
  • 6
3
votes
1 answer

NetLogo: comparing neighbors' values

during my model set up on innovation diffusion, another little programming issue occured to me in NetLogo. I would like to model that people more likely learn from people they are alike. Therfore the model considers an ability value that allocated…
Moritz
  • 55
  • 4
3
votes
1 answer

How to make a simulation of a dynamic behavior in Jason (Agentspeak)

I am beginner in Jason(Agentspeak), working on social simulation project using Multi-agent simulation in Jason. I just started Jason, so a beginner in this declarative type language. I want to simulate the people behavior that changes over time. //…
3
votes
1 answer

How to setup a list in netlogo with random values but with a constant sum?

I am fairly new to netlogo and modelling as a whole. I am now modelling the municipal solid waste system of the Netherlands and I need to be able to distribute a predetermined amount of waste-generated randomly among a breed (municipalities) within…
3
votes
1 answer

Use of __slots__ in an agent-based model written in Python

I am interested in building agent-based models of economic systems in Python. Typical model might have many thousands of agents (i.e., firms, consumers, etc). Typical firm agent class might look something like: class Firm(object): def…
davidrpugh
  • 4,363
  • 5
  • 32
  • 46
3
votes
2 answers

How to let the patches be unpassable by the turtles/agents? Gymnasium model. Codes provided but not working

Hi, I'm wondering if anyone knows the exact code to not let the patches enter the gymnasium. I closed all the gates labeled as red patches and the black patches are the walls. The problem here is that I tried these different codes yet the patches…
3
votes
1 answer

agent-based simulation of software engineering problems?

Has there been any agent-based simulation models built for investigating software engineering processes or problems? (e.g. collaboration in agile vs. traditional warefall, QA defect trends, open source project growth...etc)
wsb3383
  • 3,841
  • 12
  • 44
  • 59
3
votes
1 answer

Why can't an object use a method as an attribute in the Python package ComplexNetworkSim?

I'm trying to use the Python package ComplexNetworkSim, which inherits from networkx and SimPy, to simulate an agent-based model of how messages propagate within networks. Here is my code: from ComplexNetworkSim import NetworkSimulation,…
Andy McKenzie
  • 446
  • 4
  • 12
2
votes
1 answer

How to create links between turtles and patches?

I have the following code, which gives turtles property over patches. Does anyone know how to either create links between the turtle and its owned patches? Or, even better, to create a line that surrounds the patches that belong to the turtle? I…
lomper
  • 379
  • 1
  • 12
2
votes
3 answers

Agent-Based Modeling in Java - Animation Question

I'm creating an agent-based modeling program in Java. I'm trying to determine the best way to animate the agents. I've seen several examples that use a grid, allowing each agent to occupy only one cell at a time. I'm looking for something smoother,…
Peter
  • 4,021
  • 5
  • 37
  • 58
2
votes
1 answer

Netlogo pauses after plotting in Python, need to close plot to continue

My code pauses after plotting in python, and won't continue until I close the plot. I am using matplotlib for plotting. to plot-in-python (py:run "import matplotlib.pyplot as plt" "time = [0, 1, 2, 3]" "position = [0, 100,…
2
votes
1 answer

AnyLogic: Unreachable Target in Agent-Based-Simulation

I am building an airport model with passengers spawning, shopping/eating and departing. Most passengers rush to their GateArea (Polygonal Node) and wait there until they feel it is appropriate to engage in discretionary activities. When they think…
Jann
  • 23
  • 4
2
votes
1 answer

How to implement a rule-based decision maker for an agent-based model?

I have a hard time understanding how to combine a rule-based decision making approach for an agent in an agent-based model I try to develop. The interface of the agent is a very simple one. public interface IAgent { public string ID { get; } …
1 2
3
31 32