Computational Model Library

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 ( and, and one system agent ( 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.

Peer reviewed BAM: The Bottom-up Adaptive Macroeconomics Model

Alejandro Platas López | Published Tue Jan 14 17:04:32 2020



Modeling an economy with stable macro signals, that works as a benchmark for studying the effects of the agent activities, e.g. extortion, at the service of the elaboration of public policies..

The model aims at reproducing the evolution of the land-use in an agricultural territory at the plot scale. It enables to simulate the affectation of land-use, the crop rotation and technical operations for each plot of the different farms of the territory. It allows as well for crop farms to simulate the daily state of plots (sowed, plowed, harvested, biomass indicator). The model is used as an input for the water pollution model allowing to determine the flow of nitrate, phosphorus and suspended matter in the territory according to the landscape configuration.

Peer reviewed Organizational behavior in the hierarchy model

Smarzhevskiy Ivan | Published Tue Jun 18 10:33:33 2019 | Last modified Wed Jul 31 09:27:47 2019

In a two-level hierarchical structure (consisting of the positions of managers and operators), persons holding these positions have a certain performance and the value of their own (personal perception in this, simplified, version of the model) perception of each other. The value of the perception of each other by agents is defined as a random variable that has a normal distribution (distribution parameters are set by the control elements of the interface).
In the world of the model, which is the space of perceptions, agents implement two strategies: rapprochement with agents that perceive positively and distance from agents that perceive negatively (both can be implemented, one of these strategies, or neither, the other strategy, which makes the agent stationary). Strategies are implemented in relation to those agents that are in the radius of perception (PerRadius).
The manager (Head) forms a team of agents. The performance of the group (the sum of the individual productivities of subordinates, weighted by the distance from the leader) varies depending on the position of the agents in space and the values of their individual productivities. Individual productivities, in the current version of the model, are set as a random variable distributed evenly on a numerical segment from 0 to 100. The manager forms the team 1) from agents that are in (organizational) radius (Op_Radius), 2) among agents that the manager perceives positively and / or negatively (both can be implemented, one of the specified rules, or neither, which means the refusal of the command formation).
Agents can (with a certain probability, given by the variable PrbltyOfDecisn%), in case of a negative perception of the manager, leave his group permanently.
It is possible in the model to change on the fly radii values, update the perception value across the entire population and the perception of an individual agent by its neighbors within the perception radius, and the probability values for a subordinate to make a decision about leaving the group.
You can also change the set of strategies for moving agents and strategies for recruiting a team manager. It is possible to add a randomness factor to the movement of agents (Stoch_Motion_Speed, the default is set to 0, that is, there are no random movements).

MERCURY extension: population

Tom Brughmans | Published Thu May 23 06:28:44 2019

This model is an extended version of the original MERCURY model ( ) . It allows for experiments to be performed in which empirically informed population sizes of sites are included, that allow for the scaling of the number of tableware traders with the population of settlements, and for hypothesised production centres of four tablewares to be used in experiments.

Experiments performed with this population extension and substantive interpretations derived from them are published in:

Hanson, J.W. & T. Brughmans. In press. Settlement scale and economic networks in the Roman Empire, in T. Brughmans & A.I. Wilson (ed.) Simulating Roman Economies. Theories, Methods and Computational Models. Oxford: Oxford University Press.

The code shared here accompanies the paper at It simulates the effects of various economic trade scenarios on the phenomenon of the ‘disappearing middle’ in the Scottish beef and dairy farming industries. The ‘disappearing middle’ is a situation in which there is a simultaneous observed decline in medium-sized enterprises and rise in the number of small and large-scale enterprises.

Leptospirosis is a neglected, bacterial zoonosis with worldwide distribution, primarily a disease of poverty. More than 200 pathogenic serovars of Leptospira bacteria exist, and a variety of species may act as reservoirs for these serovars. Human infection is the result of direct or indirect contact with Leptospira bacteria in the urine of infected animal hosts, primarily livestock, dogs, and rodents. There is increasing evidence that dogs and dog-adapted serovar Canicola play an important role in the burden of leptospirosis in humans in marginalized urban communities. What is needed is a more thorough understanding of the transmission dynamics of Leptospira in these marginalized urban communities, specifically the relative importance of dogs and rodents in the transmission of Leptospira to humans. This understanding will be vital for identifying meaningful intervention strategies.
One of the main objectives of MHMSLeptoDy is to elucidate transmission dynamics of host-adapted Leptospira strains in multi-host system. The model can also be used to evaluate alternate interventions aimed at reducing human infection risk in small-scale communities like urban slums.

Agent-based model for centralized student admission process

Connie Wang Bin-Tzong Chi Shu-Heng Chen | Published Wed Nov 4 20:41:02 2015 | Last modified Wed Mar 6 00:49:36 2019

This model is to match students and schools using real-world student admission mechanisms. The mechanisms in this model are serial dictatorship, deferred acceptance, the Boston mechanism, Chinese Parallel, and the Taipei mechanism.

An Agent-Based School Choice Matching Model

Connie Wang Weikai Chen Shu-Heng Chen | Published Sun Feb 1 13:19:48 2015 | Last modified Wed Mar 6 00:49:06 2019

This model is to simulate and compare the admission effects of 3 school matching mechanisms, serial dictatorship, Boston mechanism, and Chinese Parallel, under different settings of information released.

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.