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

Not to use breed but deal with two types of turtles

I have two sets of agents: retailerA and retailerB. Previously, I used breed to create them, but as I wanted to create a random network in which it was asking all the turtles and randomly choosing some to be connected, I decided it is better to keep…
user710
  • 161
  • 2
  • 12
0
votes
1 answer

Netlogo increase turtle number by tick

I am trying to build a model where turtle move one patch per tick with random movement. I am looking for a solution to increase the number of turtle per tick based on the percentage. For ex. In the beginning there are 7 turtles, by each tick they…
Avi
  • 1
0
votes
1 answer

Anylogic - sending message from seize to agent in DES-ABM model

In a hybrid DES-ABM model I've been building in Anylogic 8, I'm struggling with sending messages. In main, there are several clinics, and within these clinics the process modeling library is used to model within clinic processes. Once the…
mivandev
  • 321
  • 2
  • 14
0
votes
3 answers

AnyLogic: Improving computational performance of a network model

I'm working with an agent-based model of an epidemic. The idea is that individual agents make decisions based on what they observe in their networks (distance-based). I have several functions within each agent that dynamically update counts of…
0
votes
2 answers

AnyLogic: Calculating the sum of all values in a collection

I have an agent-based simulation where I have a collection called collection_dailyInfection which has the numbers of new infections that arise on a daily basis. The collection looks a bit like this: Day 1: 0 Day 2: 3 Day 4: 3 Day 5: 6 Day 6:…
0
votes
2 answers

Counts at a specific time step in AnyLogic

I'm trying to run a standard SIR agent-based model where agents transition from 'Susceptible' to 'Infected', and from 'Infected' to 'Recovered'. I'm now interested in calculating the instantaneous incidence, i.e. the number of agents who transition…
user3qpu
  • 67
  • 1
  • 10
0
votes
2 answers

Comparing two objects in anylogic

I am building a model with anylogic. Here is the code: victim = null; for (People p : main.people){ //když je dostatečně daleko if((distanceTo(p, METER)) < fightDistance){ if( randomTrue( fightProbability ) && !p.equals(victim)…
T.Nosek
  • 65
  • 11
0
votes
1 answer

Preferential attachment: assigning edges with a certain probability

I'm trying to create a preferential attachment network with a tunable gamma parameter in Netlogo. I've posted a more general question here, but I have the feeling that I do not fully understand the mechanisms behind the preferential attachment model…
ELC
  • 41
  • 5
0
votes
1 answer

n-of or one-of turtles is not working as expected when working with turtles individually

I have 200 turtles which represent producers. Each turtle, has 2 variables (sales of 2 prodcuts) and they are compared to let the prodcuer know which product was the most popular, so the turtle's color changes to the color representing that…
user710
  • 161
  • 2
  • 12
0
votes
1 answer

Netlogo: Creating Hierarchical (tree) network with correct number of nodes

I'm trying to create a 'Hierarchical' or 'Tree' network structure with a parameter expansion rate. At first, one node is placed at the top, and each node in the network is connected to a number of nodes below him equal to expansion rate. Currently…
ELC
  • 41
  • 5
0
votes
1 answer

Randomly populate numpy array with integers such that integers are grouped into larger contiguous blocks

I'm trying to create an agent-based model in Python. For the environment, I have been using a numpy array of MxN size. Each pixel represents a patch of land. I would like to assign each patch of land an owner such that the larger blocks that are…
Chris
  • 13
  • 3
0
votes
1 answer

Anylogic: Creating unidirectional connections to specific agents based on shortest distance

I am new to Anylogic, and would like to perform the following task. I have several types of immobile agents on a GIS environment and would like to connect them by a network. The condition for the connections is as follows: Let agent type A has 4…
0
votes
1 answer

Move agents using another agent in Anylogic

How can I do that in a simple way? I have a number of packages inside a node. I want to move those packages to another node using the agent Forklift.
Leo
  • 1
  • 2
0
votes
2 answers

set one breed's variable to another breed in Netlogo

I read other questions similar to mine, but I still cannot figure out what to do regarding my model. Let me explain. I have two breeds. breed [distributers distributer] breed [suppliers supplier] distributers-own [dproductASales] suppliers-own…
Naha
  • 15
  • 4
0
votes
1 answer

assign a variable to agents' statistics

I have a population of agents as employees. They have a salary which has a formula to be calculated, so I defined it as dynamic variable, "salary". I want to know the average of the salaries, so I went to the statistics and defined: Name:…
user710
  • 161
  • 2
  • 12