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
2 answers

Unity Navmesh Performance Issue

I am currently working on a fire evacuation project using Unity Engine navmesh component. However, when I increase the number of agents, the performance of evacuation decreases significantly. Some agents are waiting very long time to evacuate. Do…
1
vote
1 answer

Assign priority to 50% agents in anylogic

I want to assign priority to my agents and then queue them based on that. I have an agent Container which has two parameters carrier (which can be either Truck or Train) & priority (which is to be assigned with some value). 50% of agents where…
1
vote
1 answer

How to get the number of agents inside the node in AnyLogic?

I'm trying to get the number of pedestrian agents inside a polygonal node (e.g node1). I applied the method getnumberofadmittedagents() on the text value, node1.getnumberofadmittedagents() but it maintained 0 even when the agents are inside the…
aurora
  • 21
  • 1
  • 2
1
vote
1 answer

NetLogo consumer behaviour model

I'll give you a brief description of my model: turtles can be red or green, omnivores and vegetarian respectively two markets (blue squares): meat and substitutes (products that can be consumed instead of meat) market When I run the model I would…
TripleG
  • 21
  • 3
1
vote
1 answer

How to stop simulation run after specific time NOT tick

all. Regardless of what my model does, I want to stop the simulation after running for a specific time (real clock time). For example, stop after 5 or 10 or 15 minutes. I tried stopping it after 5 minutes using the…
1
vote
1 answer

NetLogo giving a name to a block of patches

I want to give the names "Meat Market" and "Substitutes Market" to the two blocks bottom left and top right. I tried to use ask market-patches [ set plabel "Meat Market"] ask market-patches1 [ set plabel "Substitutes Market"]but the results was…
TripleG
  • 21
  • 3
1
vote
1 answer

Looping specific portions of code without losing recorded variables

I'm trying to find a way to loop specific code blocks without losing any of the recorded attributes that were done inside the block. i.e. my code flows like this: setup environment (button) setup drivers (button) go: (button which incorporates the…
RMurray24
  • 21
  • 2
1
vote
1 answer

How do I change a variable at a predetermined rate and limit that loop by another variable?

I have been using Netlogo to try to develop a small conceptual model for a volunteer transportation pickup service. The whole concept is that every predetermined amount of time, the turtle agents are "assigned a trip". This is symbolised in the…
RMurray24
  • 21
  • 2
1
vote
1 answer

Average result of 50 Netlogo Simulation_Agent Based Simulation

I run an infectious disease spread model similar to "VIRUS" model in the model library changing the "infectiousness". I did 20 runs each for infectiousness values 98% , 95% , 93% and the Maximum infected count was 74.05 , 73 ,78.9 respectively.…
Lawan
  • 13
  • 3
1
vote
0 answers

NetLogo: use value of 'stock' in SDM as input for ABM

I made two simple models; one System Dynamics Model and one Agent Based Model in NetLogo. The SDM has a stock 'tourists' and its value depends on the in- and outflow. The value is re-calculated each tick. The tourists are sprouted in the ABM each…
1
vote
0 answers

How do I make a function be ran by a sensor/turtle give priority to sensors/turtles with the current highest energy first? Netlogo

this if my first time putting up a question here so I'm not too sure if I'm doing this right but here goes. I'm currently working on a project wherein I deploy sensors and each sensor is given an amount of energy and a flood will be started from a…
Syd23
  • 11
  • 1
1
vote
1 answer

Looping through agents in a queue

I'm new to Anylogic and Java, so I apologize in advance if this is a beginner question. I have one agent type that enters a queue (for example, called queue_X). I would like to loop through all the agents in the queue and perform some check on a…
bluechimp
  • 59
  • 5
1
vote
1 answer

How I can get the shortest distance from a line to an attractor in anylogic?

I want to get the shortest distance from a line to an attractor/point node in Anylogic. In all the available references, I found the function to calculate point to point distance. Is there any function/suggested way to calculate a line to point…
Tariq
  • 57
  • 6
1
vote
1 answer

Multi-agent reinforcement learning environment Public transport problem

For my Msc thesis I want to apply multi-agent RL to a bus control problem. The idea is that the busses operate on a given line, but without a timetable. The busses should have bus stops where passengers accumulate over time and pick them up, the…
1
vote
1 answer

Trying to set different colors on patches based on their coordinates

I want my patches to be have different attributes , and color, based on their coordinates. My end goal is to represent the gutwall with grey and the lumus with pink so i have used for loop to implement it in The userPatch def i=0 …
debixen
  • 11
  • 1