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

Anylogic: How to you make a random agent move to from state to another?

I want to randomly select a person (agent) that is in state1 and instruct this random agent to move to state2. I also want to change the random agent's var1(variable) value to "true". I think that I should use randomWhere(population,condition) to…
Jeun Bee
  • 9
  • 3
0
votes
2 answers

How can we count agents in a statechart based on their fill color in AnyLogic?

I am modelling an Agent based model in AnyLogic. I am trying to count the number of agents in a statechart with similer fill color as the agents will be assigned different fill colors as they enter different states using the setFillColor() command.…
0
votes
1 answer

When generate a network of 500 nodes, the behavior space went wrong and how can I solve it?

I use the NW extension to generate small-world networks and make an experiment in behaviour space to control the . In the experiment, I set ["nb-nodes" 50 100 500] (nb-nodes: the number of nodes). Everything goes well until n = 500. CPU usage is too…
yy w
  • 65
  • 7
0
votes
2 answers

NullPointerException for List variable in Anylogic

I am trying to model peer influence for churn situations. Agents will send messages to their peers depending on different conditions. I have also created a List called MessagesReceived to store received messages.(The number of these messages may be…
0
votes
1 answer

Anylogic How to queue and process received messages by agents

--This post has been edited as @Benjamin has suggested in his answer I am trying to model peer influence for churn situations. Agents will send messages to their peers depending on different conditions. I have also created a List called…
0
votes
1 answer

Track collection in Anylogic

I'm building a pedestrian model using Anylogic. I have set my agents move in several groups between S2/S3/S4 and S1 (the movement direction is indicated by the blue two-way arrow in the figure). Background picture for problem statement I have build…
0
votes
2 answers

Is there a way to optimize my for loops or use another function so it runs quicker?

I'm writing a agent-based model for phytoplankton. Right now it is fairly basic and includes functions for growth, uptake of a resource ("S" in the code), division, mortality, and a function to keep track of the total extracellular resource…
0
votes
1 answer

Anylogic: How to add a variable on agent based on a parameter of its upper agent?

EX: I have a population people with agent type Person with a parameter wrist_size. In the agent type Person I've created another population =watches, agent type =Watch. Now I want to create a variable in the lower agent type that will be based on…
Jeun Bee
  • 9
  • 3
0
votes
0 answers

Anylogic: How to send msg from an agent to n number of connected agents(different agent type from sender) that are on a specific state?

I'm trying to send message "Buy" from owner1 (agent) to n number of random connected staff[] (agent) [ via employee (link) ] that are on waiting (state). Note that owner1 and staff[] are from different agent type and population. I'm using this for…
Jeun Bee
  • 9
  • 3
0
votes
0 answers

AgentPy and GIS

I am planning on developing an agent-based model with AgentPy, but I would like to include a GIS extension. Generally, I would like to have the agents move from one polygon to another. Does anyone know how to add a GIS extension to AgentPy? Or are…
Katie
  • 1
  • 1
0
votes
0 answers

how to visualize agent behavior in anylogic sample model?

I'm currently learning how to build evacuation model from this model: https://cloud.anylogic.com/model/90677dc1-15c5-4bb9-917e-7f6547feceb7?mode=SETTINGS However, I've been wondering. If I want to improve this model, how do I show the agent…
xxffaw
  • 1
  • 1
0
votes
1 answer

Anylogic error during discrete event "execution class cannot be cast"

I was trying to do a simulation of distribution center model using the tips from anylogic to our own, cause they work in similar ways but diferent products and warehouses, plus i just started with this program so i tried to fix every posible error…
0
votes
3 answers

Generating Agents of Same Type with Different Colors by Uniform Distribution - AnyLogic

Hello there, I am trying to add a source that generates agents with different colors that are randomly populated based on a non-uniform distribution. For example, I'd like to see this source generates 50% of the agents having orange or 10% of them…
0
votes
1 answer

how to calculate common friends of two nodes?

Suppose that the more common friends two nodes have, the more closely they are related. I want to find the closest link-neighbor of a node. But it's difficult for me to find the common friends between one random nodes and its link-neighbors. I wrote…
yy w
  • 65
  • 7
0
votes
1 answer

DataUpdater and ActiveObject classes are not supported in AnyLogic 8

I want to study and customize agent-based model in AnyLogic which was developed about 10 years ago in AnyLogic 6.6 (version). The model is opening in AnyLogic 8.7.12, but can not be compiled correctly. There are some errors occurring because of such…