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

How to create a dynamically updating list of class instances, satisfying a particular condition? (Python)

I want to create a list of class instances that automatically updates itself following a particular condition on the instance attributes. For example, I have a list of object of my custom class Person() and I want to be able to generate a list that…
Wilco
  • 429
  • 2
  • 5
  • 13
1
vote
3 answers

log4j error message in repast simphony - batch run

when starting my Repast Simphony Model in Batch run I get this error message: log4j:WARN No appenders could be found for logger (RLFA.society3.run.1.1). log4j:WARN Please initialize the log4j system properly. The answer here concerning log4j…
andy
  • 249
  • 3
  • 11
1
vote
1 answer

Anylogic reset resourcePool agent parameter each day

I'm modelling a call centre in AnyLogic. I have two agent types - calls, and call operators. Each call operator has a variable that tracks the number of calls that they have answered, however I want this number to reset each day. The number of…
1
vote
1 answer

How to create ghost agents based on agents from another rank in repast4py?

I am trying to create an OrderBook agent that can be shared across all ranks. I can share the agent using mpi4py send and receive operations. But based on the documentation here I am assuming self.context.synchronize(restore_orderbook) will create…
Vinay
  • 1,149
  • 3
  • 16
  • 28
1
vote
1 answer

Why does NetLogo not show 'x' values when using nw:load-graphml with a different breed?

I'm working on a NetLogo project where I'm using the nw:load-graphml function from the NW extension to load data from a GraphML file into my NetLogo model. When I use nw:set-context turtles routes and then call nw:load-graphml "orbis.graphml", my…
cconsta1
  • 737
  • 1
  • 6
  • 20
1
vote
1 answer

Error in NetLogo code: ASK expected input to be an agent or agentset

I am working on a NetLogo model where I have a list of customers and a set of restaurants. The goal is to make the customers go to the nearest restaurant at certain intervals. However, I'm encountering an error message that says ASK expected input…
1
vote
1 answer

How to set up turtles that initially occupy random positions to the left of pxcor = -15?

I am trying to set up my turtles in NetLogo so they are in random positions to the left of pxcor = -15. This is the code I have right now but it's not working: to setup-turtles create-turtles num-turtles ask turtles [ set shape "circle" …
Jessie
  • 11
  • 2
1
vote
2 answers

Number of resources seized based on individual agent parameter

There are two types of agents - large and small. So, I introduced parameter parIsLarge, which is boolean (true is large, false is small). Large agent requires a combination of two units of resources - resourceA and resourceB. Small agent requires…
Andrey
  • 11
  • 1
1
vote
2 answers

Can I use turtles in NetLogo to model non-agents?

I want to use "complex objects" in NetLogo, that have several attributes. These are not agents, so they do not "act" from the perspective of the model. A possible way would be to just use a list for these objects, where each index would be a…
bbkovacs
  • 13
  • 4
1
vote
0 answers

Unknown error in Repast: does not find some module?

I am launching a model that was created with an old version of repast (RepastSimphony 1.2.0) and I am trying to run it an the latest version of Repast. I have imported manually the scenarios files to the best of my abilities (I am a beginner with…
1
vote
1 answer

How to use a different visualization tool (Or a Java package) with anylogic instead of a chromedriver

I'm new to simulation modeling and I've been modeling a factory with some heavy 3D models. The functionality part of the simulation is fine but it struggles to render the model in the chromedriver since it's CPU rendered. Is there any way to make it…
M MO
  • 323
  • 4
  • 16
1
vote
1 answer

How can I add real world location to the agent based model in Netlogo?

I have a set of positive COVID-19 cases by district in a state. I want to use agent based modelling to make the infected cases move around the state and count the number of infected, number of healthy and number of immune. I have a set of code which…
1
vote
1 answer

Anylogic error "the constructor is undefined" in a resource pool

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, so the thing is when a truck came to our center we have to unload in a…
1
vote
0 answers

Unable to modify the attributes of objects in python

I'm facing trouble in modifying object attributes. The TeamAgent() objects have two attributes: neighbors and notneighbors. These are list-type attributes. These values are initialized based on a NetworkX graph declared as G. As an example, if node…
1
vote
2 answers

Attribute change with variable number of time steps

I would like to simulate individual changes in growth and mortality for a variable number of days. My dataframe is formatted as follows... import pandas as pd data = {'unique_id': ['2', '4', '5', '13'], 'length': ['27.7',…