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

Agent-based and individual-based modeling (Railsback and Grimm, 2019) NetLogo Business Model

I am trying to learn agent-based modeling with this book, but I'm having troubles implementing the model from chapter 10. There has already been posted a question about this model, but a second edition of the book has since been released and I think…
0
votes
1 answer

RuntimeException: Cannot put: [0][0][0] is occupied in Anylogic

I have RackStore block to store agents where the cells are chosen explicitly with the help of a function. I am getting this error when I run the simulation. Here,cells were assigned to all four agents that entered the block, but I think it throws…
0
votes
1 answer

how to create a link only if a link doesn't already exist in netlogo

I'm a Netlogo neophyte learning by doing, and hoping someone can help me solve what appears as a simple enough operation: At each tick, and for each turtle X, I want to create or strengthen an undirected link to each other turtle Y lying within…
miaafr
  • 21
  • 3
0
votes
2 answers

Sum of times doesn't add up to the duration of the simulation

I have an industrial simulation with 2 agent types, operators and machines. Each agent type has statecharts controlling different aspects of their logic, like production, idle, etc. And while entering and exiting each single one of the states of the…
Ismail
  • 3
  • 3
0
votes
1 answer

Netlogo: How to create links to turtle's two immediate neighbours?

I want to ask all turtles to link with their two immediate neighbors. Below is my code, but all of them are wrong. ask turtles [ create-links-with n-of 2 other turtles] ;; should link with 2 immediate neighbours rather than 2 random turtles ask…
Kaiden
  • 1
  • 1
0
votes
1 answer

How to customize the pedwait attractor choice in AnyLogic?

I want to model the pedestrians to sit based on the social distance. There are 10 attractors inside the node to represent the seats (1st to 10th). Each attractor will separated by 0.5 m. If the social distancing rule is 1m, the pedestrian will empty…
aurora
  • 21
  • 1
  • 2
0
votes
1 answer

Create links to n turtles first based on attribute then random

I have a population of turtles where I would like them to create a random number of links to other turtles based on a 'bias' (a value from 1 to 5) I've given them. Now, if there aren't enough turtles with the same 'bias' then I would like them to…
0
votes
1 answer

Priority based queue in Anylogic

I am using a priority based queue to pick agents from a pallet rack. Priority of agents can be 0 or 1. If there are 10 agents in palletRack, I want to pick all the agents having priority=1 first. My problem in the current flowchart is: Agents with…
0
votes
1 answer

Can resources carry multiple agents in Anylogic?

In the below image I am using AGV as resources to carry Containers(agents) in the rackStore and rack Pick blocks. By default, one AGV carries only one agent; Is it possible to set agent carrying capacity of resources such that it can carry multiple…
0
votes
1 answer

SEIS Disease Model Help in NetLogo - infected individuals do not become susceptible again?

I'm developing a simple NetLogo disease model that has 4 compartments: S - susceptible individuals E - Exposed individuals I - Infected individuals S - Recovered individuals that become susceptible again (i.e. there is no immunity). My simulation…
0
votes
1 answer

How to measure a set of attributes of individual agents in Behaviour Space?

So far, all the experiments I have run using Behaviour Space have been to either record global variables or the average values of agent variables across different agentsets. However, I need to measure a set of attributes (violence, entitativity,…
0
votes
1 answer

How do I use enter and exit blocks in Anylogic for transferring agents across agent types and their respective flow diagrams?

I am currently working on a simulation model of a battery swapping station. So, In my model I have declared charger as an agent type with its own parameter and a flow diagram and the "main" has 2 flow diagrams (total 3). I have 2 sets of enter and…
0
votes
1 answer

Pallets should wait in the rack to be picked up by another agent Truck instead of getting destroyed with Sink block

Here is the scenario I'm trying to model. A population of agent Container is generated at a unloading dock, it carried to storage area 1 where it is placed randomly in pallet racks. Then, it is carried to storage area 2 where the containers are…
0
votes
1 answer

Generate a random date within a given range in anylogic

I have an agent Container, which has a parameter departure_date. I want to generate random future dates for this parameter. The date should be between current date and next 30 days. How can I achieve this? Thank you in advance.
0
votes
1 answer

Generic modeling of an energy supply chain with Anylogic

I have been working with Anylogic for about 6 months now and my goal is to model a generic energy supply chain for an energy demand (e.g. storm and heat for a house). As a result I want to evaluate how suitable the components in the energy supply…
Immi1990
  • 17
  • 3