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

Creating bidirectional link between 2 agents with different type using parameter conditions

I have 2 agents of different type. [Person(type) owner(agent) 1(parameter) Carlink(connection)] [Vehicle(type) car(agent) 1(parameter) OwnerLink(connection)] I want to link them if parameter "1" of the owner is same to parameter "1" of the car. I'm…
Jeun Bee
  • 9
  • 3
0
votes
0 answers

NetLogo - Counting the number of turtles each turtle infects

I have a disease model that follows SEI dynamics (Susceptible-Exposed-Infected). I would like to count the number of turtles each turtle infects in my model (16 turtles in total with a counter for each). I would also like it to reset for each turtle…
0
votes
1 answer

comparing attributes of 2 different turtles breed

I have 2 turtles bread: globals [ max-applicant ] breed [ applicants applicant ] breed [ investors investor ] applicants-own [ ask-amount applied? industry country-of-origin funded? ] investors-own [ allowed-industries-list allowed-countries-list…
capiono
  • 2,875
  • 10
  • 40
  • 76
0
votes
1 answer

How to constrain agents to a specific GIS Region?

I currently have a two populations of agents. One for customers and one for service trucks. There are multiple customers and trucks and their initial location is being determined via an imported excel database with lat/long coordinates. I would like…
Logicky
  • 1
  • 1
0
votes
1 answer

How to Implement SIR Model in JAVA and Visualize it in Repast Simphony?

I've been given a Project to Code a SIR Model (Agent Based Modeling) from Scratch in JAVA and then Visualize the same through Repast Simphony using different Values of Beta and Gamma. I have setup Java, Eclipse and Repast Simphony but I don't know…
0
votes
1 answer

Error in Netlogo code once I turn on my boolean variable. Does anyone see the error?

I am trying to develop an agent-based model of a Rock-Paper-Scissors game but want to know how this dynamic shifts once spatial interactions are turned on (spatial-interactions? is my boolean variable). The model runs fine when the boolean switch is…
0
votes
0 answers

How can turtles move on a GIS road network based on distance?

I have two types of turtles: shoppers and shops. I want shoppers to go to the shop that is closest to them based on a real GIS road network. So, I need the shoppers to: calculate the distance between them and every shop using the gis road…
amik89
  • 11
  • 2
0
votes
1 answer

Why does this loop only record the movement of offender agents who move left and up?

I am writing code for a simplistic agent-based model. In this model, offenders "move" 6-8 cells in a randomly selected direction (options are 1=up, 2=right, 3=down, 4=left). This movement occurs on a 2D numpy array that is filled with the values 0,…
0
votes
1 answer

How to assign/tag a specific resource from the resource pool to an incoming agent?

I am working on a ticketing model framework, where we receive requests for user account creation in an SAP system. The request is an agent which is assigned to one resource from the resource pool. In other words, one request is handled by a specific…
Yash
  • 3
  • 3
0
votes
1 answer

How can I have different initial state for one agent type?

I'm working on an epidemic model. In this model, there are 2 types of susceptible states, S1 and S2. At the start of the model, I want there to be agents in S1 state as well as S2 state. For example, I have total 1000 agents at first, and I want…
0
votes
1 answer

Ask turtle "without" [blah?]

I have defined a blah? as a property of a turtle under turtles-own. now in the to go i want turtles with blah? property to do something and I want turtles without blah? property to do something slightly different. For example: ask turtles with…
0
votes
1 answer

How do I check if variables of two different turtle breeds match?

I am trying to move a turtle towards it's offspring based on a shared variable. In my initial code I ask a male (breed) that has a display, but not a bower, to establish a bower (different breed) by hatching. I use create-link-with myself to so that…
0
votes
1 answer

How to change the go botton into a Loop botton on netlogo

Change the ‘go’ button from looping infinitely (‘forever’) to running for 1000 ticks. How do I do that?
BigM
  • 11
  • 3
0
votes
1 answer

Is it possible to set "isobstacle" only for agents in the Storage?

I am trying to simulate a logistic center, where pallets are moved. I want the transporters from my fleet to move freely through the whole center and drive over storages, because the storages are just markings on the ground in reality. So I…
d.kru
  • 1
  • 1
0
votes
1 answer

In Anylogic, how to randomly select agents from a collection of collections

I am new to anylogic and am trying to build an agent-based model which randomly directs agents (vehicles) from a starting point (a Home location point on GIS map) to a selection of locations. I have 6 different sets of collections which have varying…