Computational Model Library

Displaying 10 of 81 results Python clear

The MML is a hybrid modeling environment that couples an agent-based model of small-holder agropastoral households and a cellular landscape evolution model that simulates changes in erosion/deposition, soils, and vegetation.

In this agent-based model, agents decide to adopt a new product according to a utility function that depends on two kinds of social influences. First, there is a local influence exerted on an agent by her closest neighbors that have already adopted, and also by herself if she feels the product suits her personal needs. Second, there is a global influence which leads agents to adopt when they become aware of emerging trends happening in the system. For this, we endow agents with a reflexive capacity that allows them to recognize a trend, even if they can not perceive a significant change in their neighborhood.

Results reveal the appearance of slowdown periods along the adoption rate curve, in contrast with the classic stylized bell-shaped behavior. Results also show that network structure plays an important role in the effect of reflexivity: while some structures (e.g., scale-free networks) may amplify it, others (e.g., small-world structure) weaken such an effect.

Ornstein-Uhlenbeck Pandemic package

Peter Cotton | Published Friday, April 24, 2020 | Last modified Friday, May 08, 2020

Pandemic (pip install pandemic)

An agent model in which commuting, compliance, testing and contagion parameters drive infection in a population of thousands of millions. Agents follow Ornstein-Uhlenbeck processes in the plane and collisions drive transmission. Results are stored at SwarmPrediction.com for further analysis, and can be retrieved by anyone.

This is a very simple simulation that in a special case can be shown to be approximated by a compartmental model with time varying infection rate.

This model is programmed in Python 3.6. We model how different consensus protocols and trade network topologies affect the performance of a blockchain system. The model consists of multiple trader and miner agents (Trader.py and Tx.py), and one system agent (System.py). We investigated three consensus protocols, namely proof-of-work (PoW), proof-of-stake (PoS), and delegated proof-of-stake (DPoS). We also examined three common trade network topologies: random, small-world, and scale-free. To reproduce our results, you may need to create some databases using, e.g., MySQL; or read and write some CSV files as model configurations.

The purpose of this model is explore how “friend-of-friend” link recommendations, which are commonly used on social networking sites, impact online social network structure. Specifically, this model generates online social networks, by connecting individuals based upon varying proportions of a) connections from the real world and b) link recommendations. Links formed by recommendation mimic mutual connection, or friend-of-friend algorithms. Generated networks can then be analyzed, by the included scripts, to assess the influence that different proportions of link recommendations have on network properties, specifically: clustering, modularity, path length, eccentricity, diameter, and degree distribution.

A Balance Model of Opinion Hyperpolarization

Simon Schweighofer Frank Schweitzer David Garcia Simon Schweighofer | Published Tuesday, December 17, 2019 | Last modified Tuesday, December 17, 2019

Contains python3 code to replicate the opinion dynamics model from our (so far unpublished) JASSS sumbission “A Balance Model of Opinion Hyperpolarization”. The main function is run_model(), which returns a dictionary object containing various outcome metrics.

FNNR-ABM

Judy Mak | Published Thursday, February 28, 2019 | Last modified Saturday, December 07, 2019

FNNR-ABM is an agent-based model that simulates human activity, Guizhou snub-nosed monkey movement, and GTGP-enrolled land parcel conversion in the Fanjingshan National Nature Reserve in Guizhou, China.

Quick-start guide:
1. Install Python and set environmental path variables.
2. Install the mesa, matplotlib (optional), and pyshp (optional) Python libraries.
3. Configure fnnr_config_file.py.

We present an agent-based model for the sharing economy, in the short-time accommodations market, where peers participating as suppliers and demanders follow simple decision rules about sharing market participation, according to their heterogeneous characteristics. We consider the sharing economy mainly as a peer-to-peer market where the access is preferred to ownership, excluding professional agents using sharing platforms as Airbnb to promote their business.

This is code repository for the paper “Homophily as a process generating social networks: insights from Social Distance Attachment model”.
It provides all information, code and data necessary to replicate all the simulations and analyses presented in the paper.
This document contains the overall instruction as well as description of the content of the repository.
Details regarding particular stages are documented within source files as comments.

Simulation Software for Random-Subset Voting with Borda, approval, plurality and Condorcet.

Displaying 10 of 81 results Python clear

This website uses cookies and Google Analytics to help us track user engagement and improve our site. If you'd like to know more information about what data we collect and why, please see our data privacy policy. If you continue to use this site, you consent to our use of cookies.
Accept