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

How to write entity to entity interactions in ECS, namely Specs crate for Rust

I am planning to write some simulations using the Specs crate for Rust. The goal would be to have a few agents and to model their activity. So far working through the specs book example I have not seen a idiomatic way to assess the interaction of…
finnkauski
  • 169
  • 4
0
votes
1 answer

How can I find angle between two turtles(agents) in a network in netlogo simulator?

In a formation robots are linked with eachother,number of robots in a neighbourhood may vary. If one robot have 5 neighbours how can I find the angle of that one robot with its other neighbour?
0
votes
1 answer

NetLogo: Creating Variable from Distance to Specific Patch

I have an issue in Netlogo giving agents the variable with distance (in patches) to a chosen patch that is water. The agents are supposed to act according to their distance to water. I want the agent to find the closest patch that has water = true,…
0
votes
1 answer

Why can't I divide (or multiply) a numpy array of arrays by a scalar?

I am working on my first agent-based model (abm) in my life and I have to do operations on an array of arrays. Each agent of my model is an array with numbers that are added by the algorithm when certain conditions are met. Sometimes I have to…
Ged
  • 5
  • 1
0
votes
2 answers

AnyLogic method exceeding the byte limit error: how these methods are actually defined?

This is a follow-up question on this; regarding the error message as below: Description: The code of method _createPersistentElementsBP5_xjal() is exceeding the 65535 bytes limit. It basically says that the size of the code for the method…
Yashar Ahmadov
  • 1,616
  • 2
  • 10
  • 21
0
votes
1 answer

Why Anylogic stopDelay() function throws error when Delay block is empty?

I have an event with action delay.stopDelay(delay.get(0)); it works fine but when the delay block gets empty error shows up enter image description here
Aqeel Tariq
  • 315
  • 1
  • 8
0
votes
1 answer

Trying to find a way to keep agents to specific patches in net logo

I have created a world that has a blue side and green side with a border in the middle in which I have created two sets of agents one being blue-population and other being green-population, however I cant seem to keep the blue-population in the blue…
0
votes
1 answer

How work to with an array of arrays and how initialize multiple arrays in Numpy?

I have to write an ABM (agent-based model) project in Python and I need to initialize 50 agents which will each contain a different set of numbers. I cannot use a matrix of 50 rows because each agent (each row) can have a different quantity of…
0
votes
1 answer

Create collection of agents already in queue in Anylogic

I'm simulating abandonment by waiting customers in a queue environment. I'm assuming that a person will abandon a queue if they notice that people who were in the queue ahead of them have left the queue (amongst other things like their own time in…
DiaLaDia
  • 3
  • 3
0
votes
1 answer

Schedule the arrival of resources (ex. trucks) in Anylogic

I have a rackPick block where I am using Trucks as resources to pickup the agents. Is there any way to schedule the arrival of those resources? I want 2 trucks to arrive in a day. I didn't find any property in rackPick or resource Pool regarding…
0
votes
1 answer

Define distance between different areas in Anylogic

I have an Anylogic model where there are different storage areas (using Pallet racks) and waiting areas defined using rectangles. I want define distance between all these areas. Is there any way to do so in Analogic? Perhaps, by defining 1 small…
0
votes
1 answer

is it possible to copy the current state of the statechart from one agent to another?

I am trying to make a model to simulate the contagion of covid in public spaces using a mix between SEIR and pedestrian models. In another question I asked to use a static population. They suggested that before deleting the agent a copy be saved in…
NicolasA13
  • 15
  • 3
0
votes
1 answer

How can I use a static population of agents with a pedestrian model?

I am trying to make a model to simulate the contagion of covid in public spaces using a mix between SEIR and pedestrian models. and I was stuck when using my population of agents with the pedestrian library. Looking in the documentation about…
NicolasA13
  • 15
  • 3
0
votes
1 answer

how to find the nearest agent based on distance?

I am trying to make that when an agent is less than a specified distance from any other, they change color. But when I use getNearestAgent(this.getPopulation()) it gives me the Agent in the position 0 of the population list. I'm using an event to…
NicolasA13
  • 15
  • 3
0
votes
1 answer

In Anylogic How can I model truck that deliver orders to multiple clients

I'm creating a model based on the product delivery example provided by AnyLogic. In my own model, I want a truck to deliver multiple orders in one trip instead of one. My process diagram is shown below. Here, an order enters via the enter block and…
Yope
  • 43
  • 6