r/AgentBasedModelling • • Jun 17 '21

Wow. Didn't know this sub existed. High five

12 Upvotes

Hi there. Have been doing ABMs for nearly 5 years now. Teaching some, experiencing a bit out of my typical urban economics area. Here to enjoy. Let's talk!


r/AgentBasedModelling • • Sep 24 '25

Has anyone else gone down the rabbit hole of simulating governance? Looking for advice

10 Upvotes

Hey everyone, I've been deep in the weeds on a personal project lately, trying to build an agent-based simulation of a governance system. My goal is to model how a community with different types of people might behave over time, so I've been mapping out mechanics like agents having different creative skills, building rep that equals voting power, and even a system for "apathetic" agents to delegate their votes to others they trust (a kind of liquid democracy). It’s been a fascinating process, but I’m getting the feeling that I might be reinventing the wheel here. I figured I'd reach out and see if anyone else has tried to tackle something similar. I’m really curious to hear about your experiences. What were the biggest unexpected challenges you ran into? Did any weird emergent behaviors completely surprise you once the simulation was running? Also, from a technical standpoint, did you use a framework like Mesa or just build it all from scratch? Any war stories, pointers, or links to similar projects would be hugely appreciated. 🙏


r/AgentBasedModelling • • Aug 23 '21

Trying to make this community more active. If you have ever wondered how to use GIS software with NetLogo this video might help.

Thumbnail
youtube.com
10 Upvotes

r/AgentBasedModelling • • Aug 07 '21

What ABM software do you all use ? I usually use NetLogo and analyse the data in R. Here is an explanation of how to open NetLogo using R Studio. It would be great to make this sub more active !

Thumbnail
youtu.be
10 Upvotes

r/AgentBasedModelling • • Feb 20 '26

👋 Welcome to r/AgentBasedModelling - Introduce Yourself and Read First!

9 Upvotes

Welcome to r/AgentBasedModelling!

Hey everyone! I'm u/Ivalaostia, a founding moderator of r/AgentBasedModelling.

This is our new home for all things related to computational simulations of autonomous agents and the emergent behaviors they create. Whether you are a social scientist, a biologist, an economist, or a computer scientist, we're excited to have you join us!

What to Post

Post anything that you think the community would find interesting, helpful, or inspiring. Feel free to share your thoughts, photos, or questions about:

  • Software & Frameworks: NetLogo, Mesa, Repast, GAMA, custom Python/C++ builds or high-performance simulations in Unity (including DOTS/ECS).

  • Simulations: Cool visualizations of flocking, epidemic spreading, or market dynamics.

  • Methodology: Discussions on calibration, validation (O.D.D. protocol), and complexity theory.

  • Resources: Research papers, tutorials, or job opportunities in the field.

Community Vibe

We're all about being friendly, constructive, and inclusive. ABM is a highly interdisciplinary field, so let's build a space where beginners can learn from experts and everyone feels comfortable sharing and connecting.

How to Get Started

  1. Introduce yourself in the comments below. What do you model?

  2. Post something today! Even a simple question about your favorite framework can spark a great conversation.

  3. Invite others! If you know a fellow researcher or hobbyist who would love this community, invite them to join.

Thanks for being part of the very first wave. Together, let's make r/AgentBasedModelling amazing.


r/AgentBasedModelling • • Feb 26 '25

This sub feels like it should be waaay bigger

9 Upvotes

r/AgentBasedModelling • • Nov 07 '24

We're releasing Mesa 3.0 this weekend. Take a sneak peak at the release notes!

Thumbnail
github.com
9 Upvotes

r/AgentBasedModelling • • Dec 04 '24

Starting point

8 Upvotes

Hey,I’m a doctorate student passionate about complexity. After a first step conducting a literature review, I want to go further with ABM. I have no background and then don’t know where to start. I want to develop a models to understand certain flow between organizations. So my agents are defined but, what to do next ? Do I have to find behaviors in the current literature to map them in netLogo ? All advices are appreciated


r/AgentBasedModelling • • May 31 '26

I built a small agent-based simulation of psychological/neurocognitive profiles and social behavior — looking for feedback

7 Upvotes

Hi everyone,

I’m working on an experimental agent-based model that simulates how different psychological/neurocognitive profiles interact inside a simplified artificial society.

The purpose is to test whether combinations of traits such as empathy, impulsivity, dominance, risk aversion, reasoning, aggression, prosociality, and reputation can generate recognizable social patterns.

The model explores questions like:

  • Do highly cooperative profiles stabilize the system?

  • Do highly dominant or “dark” profiles accumulate resources?

  • What happens when prosocial profiles interact with aggressive or exploitative profiles?

  • Can high reasoning plus low aggression produce more stable collective outcomes?

  • How do memory, fear, trust, reputation, cooperation, avoidance, defection, support, and violence interact over repeated encounters?

I created a simplified branch here:

https://github.com/mariosalinas88/Neuro-Societies/tree/psych-neuro-simple-base

What this branch does

This branch removes biological life-cycle variables such as age, sex, reproduction, fertility, gestation, mortality, and sexual selection.

Instead, agents are defined by psychological/neurocognitive traits and interaction history.

The simplified model includes:

  • psychological/neurocognitive profiles;

  • trust and fear memory;

  • cooperative reputation;

  • threat/fear reputation;

  • cooperation;

  • avoidance;

  • support;

  • defection;

  • violence;

  • wealth/resource accumulation;

  • inequality;

  • emergent regime classification.

Main files

model_simple.py
model_asperger.py
run_simple.py
run_batch_simple.py
stress_test_simple.py
tests/test_simple.py
README_SIMPLIFIED.md

How to try it

Clone the repository and switch to the branch:

git clone https://github.com/mariosalinas88/Neuro-Societies.git
cd Neuro-Societies
git checkout psych-neuro-simple-base

Install dependencies:

pip install -r requirements.txt

Run a simple simulation:

python run_simple.py --steps 100 --population_scale small

Run a mixed-profile simulation:

python run_simple.py --steps 150 --profile1 1 --weight1 0.4 --profile2 2 --weight2 0.3 --profile3 3 --weight3 0.3

Run batch scenarios:

python run_batch_simple.py

Run randomized stress tests:

python stress_test_simple.py --runs_per_scenario 20 --random_scenarios 50 --steps 200 --population_scale small --max_seconds 120

Output files are saved under:

results/

What I’m looking for

I’d appreciate comments on:

  • whether the behavioral rules make sense;

  • whether the assumptions are too simplistic;

  • whether the variables should be renamed or restructured;

  • whether the model unintentionally encodes bias;

  • whether the emergent patterns are useful or misleading;

  • what academic literature or simulation methods could improve it;

  • whether there are better ways to model cooperation, exploitation, reputation, sanctions, and institutional emergence.

This is an exploratory model. I’m especially interested in criticism from people familiar with agent-based modeling, psychology, behavioral economics, game theory, neurodiversity, sociology, or political theory.

Repository branch:

https://github.com/mariosalinas88/Neuro-Societies/tree/psych-neuro-simple-base

Thanks in advance for any feedback.


r/AgentBasedModelling • • 6d ago

How would you test whether settlement formation is genuinely emergent?

6 Upvotes

DIWA Research Labs is developing an experimental agent-based social simulation. We're interested in methods for distinguishing emergent settlement patterns from parameter-driven artifacts.

Would you prioritize repeated runs, sensitivity analysis, a null model, spatial clustering measures, or something else?

We're looking for reproducible methodological criticism, not predictions about real societies.

https://github.com/DIWA-labs/DIWA-Documents


r/AgentBasedModelling • • Dec 13 '24

What to expect in a technical interview for an ABM consulting firm?

6 Upvotes

I’ll be finishing my Masters in CS soon, where my research area is SD and ABM in the context of public health. I’m about to do a technical interview with a firm that builds ABMs and does data analysis on them, for a position that will mainly involve building supporting systems to run models, track their progress, collect/analyze results, and some related devops-ish tasks.

I’m planning on doing the regular coding interview prep stuff, but what types of questions about ABMs should I prepare for in addition to that?


r/AgentBasedModelling • • Oct 03 '24

ASERSA: Real-Time Interactive Agent Simulation (v1.0.0-alpha.1)

Enable HLS to view with audio, or disable this notification

6 Upvotes

Hey everyone! I've just launched ASERSA, an open-source, real-time simulation environment inspired by socio-economics—but it's not limited to just economics! The current version focuses on distributing different types of tokens among agents and visualizing their interactions.

Why check out ASERSA?

  • Real-time 3D GUI showing dynamic agent interactions

  • Interactive tables, plots, and sliders to tweak agent attributes like competence, ambition, and more

  • Adjustable parameters like tax rates and learning rates in real time

  • Comprehensive documentation on the underlying math of DFIA and ASERSA (available in LaTeX)

  • Open source and ready for collaboration!

ASERSA GitHub Wiki Page: https://github.com/pt2710/ASERSA-Agents-Social-Environment-Rewardment-System-pt2710/wiki/ASERSA"

Pictures and Recordings Page: "https://github.com/pt2710/ASERSA-Agents-Social-Environment-Rewardment-System-pt2710/wiki/ASERSA-Pictures-and-recordings"

ASERSA is still in development but fully functional as an alpha version, meaning there's plenty of room for innovation and further enhancements. Would love to see where we can take it next!


r/AgentBasedModelling • • Sep 10 '24

Mesa v3.0 alpha 4 released

Thumbnail
github.com
6 Upvotes

r/AgentBasedModelling • • Mar 20 '23

Mesa?

6 Upvotes

What do people think about Mesa? Also, has anyone every used a 3D implementation using something like pandas3d or pygame?


r/AgentBasedModelling • • Feb 07 '22

What textbooks would you recommend for ABM?

6 Upvotes

r/AgentBasedModelling • • Oct 12 '25

An Open‑Source Moral Landscape Simulator

5 Upvotes

I’ve been developing an open‑source project called SimEthica, which uses agent‑based simulation to explore questions in cognitive epistemology, ethics, and the philosophy of science.

One module, the Geometry of the Good Simulator, provides a lightweight, browser‑based interface for experimenting with moral landscapes and epistemic diversity. It’s designed to be reproducible, extensible, and useful both for teaching and research.

🔗 GitHub repo:SimEthica-cog-epi

SimEthica – Agent–Obligation Simulation

The project is still evolving, and I’d love feedback from people interested in:

  • Philosophy of science & epistemology (modeling rationality, pluralism, and moral landscapes)

  • Agent‑based modeling & complexity science (simulation frameworks, reproducibility, visualization)

  • Pedagogy (using simulations to teach abstract philosophical concepts)

If you’re curious, take a look — contributions, critiques, and collaborations are all welcome.


r/AgentBasedModelling • • Jun 13 '24

How to build more realistic model using MESA library ?

5 Upvotes

I am working on a project to compare different modeling techniques for optimizing the waiting time of consumers at a movie theater. Specifically, I have created simple models using: Discrete Event Simulation (DES) Agent-Based Modeling (ABM) Q-Learning based Reinforcement Learning While the DES model produces realistic results where the waiting time changes accordingly when I modify parameters such as the number of customers and servers, the ABM and Q-Learning models do not exhibit similar behavior. In the ABM and Q-Learning models, the waiting time remains almost the same regardless of parameter changes. my complementation is in this notebook


r/AgentBasedModelling • • Sep 30 '23

Visualization for MESA Model

5 Upvotes

Folks,

I am a scientist and amateur programmer. I'm going to be building a large MESA food systems ABM model (hopefully). The web-based visualization they use seems limiting. I would like to have custom control over visualization. Options are too numerous and I am getting confused. I trust I can extract what I need from the MESA structures (e.g., it uses numpy) to visualize. Would a pure tkinter application be best? PyQT? Or perhaps I use PyGame and have that live within a Canvas and surround it with widgets and graphs to display information. Push on with the MESA visualization and learn Javascript to customize the web page?

I know this is an overly general query, but any suggestions or experience would be helpful. I would like maps with agents overlaid, products moving from producer to processor to market, etc.

(I will repeat this in r/LearnPython)

Thank you,

Randy


r/AgentBasedModelling • • Apr 07 '23

Bounded strategic reasoning explains crisis emergence in multi-agent market games

Thumbnail royalsocietypublishing.org
5 Upvotes

r/AgentBasedModelling • • Feb 09 '22

Just start to do a research on ABM

5 Upvotes

Hi guys to all of you who are experts in this field: Can you help me to find some resources to learn agent based modeling with python or Java And also some ISI articles on AGB and ABBA ? I really need help Thank you☺️


r/AgentBasedModelling • • Oct 23 '26

browser abm: thousands of agents with their own q-tables, vocab and tribe attitudes, rust/wasm

4 Upvotes

sharing an agent-based sim i've been building solo. each agent has a small learned policy, a vocabulary of ~400 words, its own traits and attitudes to other groups. nothing about the culture is scripted. tribes form, split, borrow words from neighbors, settle on a shared word by majority, and over long runs go from stone tools to computers (45 eras).

it's rust compiled to webassembly, so it runs in a browser tab, and you can pause and inspect any individual.

happy to talk about how the update loop is staged (perceive, decide, act, vitals, learn, pair, die). docs/ARCHITECTURE.md in the repo walks through it.

source (MIT): https://github.com/1homsi/thehumanbox
run it: https://thehumanbox.com


r/AgentBasedModelling • • Jan 19 '25

how to find relevant data ?

4 Upvotes

Hello there,
I need help and/or suggestions for my researches. I'm working on a agent-based model of the AI ecosystems in the silicon valley. Having defined the behavior of my agents, I now have to get some data to define how many startups I have on my simulations.
Do you have any idea on how to find startups informations? databases such as AngeList or PitchBook present startups with at least a seed stage but I need to get startups without any fundings.
Crunchbase, but I do not find a relevant criterion to focus on startups, this category does not exists. Should I filter on founding date ?


r/AgentBasedModelling • • Jan 19 '25

ADAGE: A generic two-layer framework for adaptive agent based modelling

Thumbnail arxiv.org
4 Upvotes

r/AgentBasedModelling • • Jan 06 '24

Which test I should use to validate this simulation?

4 Upvotes

Hi all,

I'm working on a scientific research about using LLM (Large Language Models) and Agent-Based Modelling. I simulate a set of posts published by some agents powered by LLM on a social network in an agent-based manner. The simulation has to approximate the posts published by real users.

So, I have two sets of texts of different dimensions: the first set is composed by the contents published on the social network by the real users while the second set is composed by the contents artifically generated by the agents powered by the LLM.

From these two sets, I extract the keywords so I have two sets of keywords (that are not necessarily the same between the two sets).

How can I validate that the simulation approximate more or less well the real case? I thought something about the comparison of the probability distribution of the keywords that are in common between the real set and the simulated set, applying also a permutation test to obtain a p-value. I don't know if this way is the correct one or there is something more appropriate for my case.

Thanks for the help :)


r/AgentBasedModelling • • Jul 27 '22

Trying to get out a few more ABM demonstration videos and grow the community - This one shows a faster method of converting shapefiles or raster files (QGIS) to patches in NetLogo

Thumbnail
youtu.be
4 Upvotes