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

How to get freq of consecutive items in list?

How can i get the freq of consecutive numbers in a list in Netlogo? For example, if my list is: list = [1 1 1 0 0 1 1 0 1 1 0 0 0 ] Then the output should look as follows: output = [3 2 2 1 2 3]
user9913522
0
votes
0 answers

AnyLogic: Return Name of Current Block

Hi I am using AnyLogic's Process Modelling Library. I have a DB named dbsewing06 that has a record of all the service delay times [ sewing (Name of Service) | sum_ct (Delay time) ] For a service, I use the following code to get Delay…
0
votes
1 answer

How to set a default color(turtle's color when its enter in the model) of turtle after it changes its color?

I write a line of code which is this ask turtles [if count other turtles in-radius 1 > 5 [set color white]] now when turtle has changed color to white, but after the certain amount of time this property is not true for that same turtle, it should…
user9913522
0
votes
0 answers

Unable to call a public function inside of another public function

(Edit: change suggested in the comments section now allows the desired behavior) I'm developing an agent-based simulation in C++, and so far I'm able to run 1 simulation and I transcribe the results manually. It consists of an Environment class with…
EloyRD
  • 304
  • 3
  • 12
0
votes
1 answer

Netlogo: How to include fixed distribution into a Network

I am struggling with developing of a Agent-based model for human migration. I created a network with different countries and calculated the reputation per country based on several parameters now I want to say that from the batch of the refugees in…
Juraj
  • 1
  • 2
0
votes
1 answer

agents arrival according to poisson process

I am trying to achieve agents arrival in my model according to a poisson process. I know from data that on average 230 agents arrive per day (or 9.583 agents/hr or 0.1597/minute). In the simulations, now I need to use this information to add agents.…
HT121
  • 431
  • 2
  • 6
  • 14
0
votes
1 answer

Changing initial conditions in agent-based voter model

How could I change the initial conditions in this voter model? There are agents with four opinions: negative confident, negative unsure, positive unsure, or positive confident. I'm not sure about the correct changes to make it work with setting…
inquirius
  • 3
  • 2
0
votes
1 answer

Add_people() function in Agent population and SD housing example of anylogic

I have tried to use add_people() in an event during running the Agent population and SD housing example of anylogic, in order to add more agents to the model during the simulation but I face this error. How can I solve this problem? [Exception…
Elnaz
  • 3
  • 1
0
votes
0 answers

How to allow multiple agents of same population to use statechart simultanously, but independent of eachother, in Anylogic 8 PLE

In my project, I am using a statechart inside a population of agents named 'vehicle'. There are 5 vehicles. All vehicles have same speed. There is one more agent named 'sender'. Now what happens in my project is, that sender sends different messages…
Murk
  • 75
  • 1
  • 8
0
votes
2 answers

How do I call a parent procedure's variable in netlogo

In netlogo I have a procedure that calls another procedure. How can I go about getting the value for example, I have two breeds of agents, a hub and a link. A hub has a local variable called 'budget' and I'm trying to modify its value. hubs-own [ …
David C
  • 3,659
  • 5
  • 34
  • 46
0
votes
1 answer

Reading newest rows from the updated database table : Anylogic 8

In my project I have to keep on inserting new rows in a table based on some logic. After this I want that each time an event is triggered, the rows of updated table should be fetched. But the Problem is that new rows aren't accessed. The table is…
Murk
  • 75
  • 1
  • 8
0
votes
1 answer

How to use a different distribution for rate transitions in a statechart?

I'd like to use a different distribution for defining the transition probabilities in the statechart of an agent. I know that AnyLogic uses the exponential distribution as the default distribution for rate triggered transitions, but on occasion…
mivandev
  • 321
  • 2
  • 14
0
votes
1 answer

Find the difference between two variables of the agents of two different breeds - Netlogo

I have 2 agent types, boys and girls. breed [boys boy] breed [girls girl] Each turtle has an age from a dataset. Also when an agent is a boy, its boy? is true, and if it is a girl, girl? is true. turtles-own [ age boy? …
user710
  • 161
  • 2
  • 12
0
votes
1 answer

Anylogic CompareRuns does not execute Main Agent

I am working on an agent-based model and now I'm trying to experiment with CompareRuns. when I execute the experiment, it should simulate the model several times and after each simulation, a dataset of sample data should be filled. there is also a…
0
votes
1 answer

Connect to nearest agent in collection

So I have several different agent types: Person, Factory, Hospital, Home, Doctor. Now, all of these agents except Person are connected through a network, while the initial population size of Person = 0. Now, when the model runs, Person agents will…
mivandev
  • 321
  • 2
  • 14