Computational Model Library

The Social Identity Model of Protest Emergence (SIMPE), an agent-based model of national identity and protest mobilisations.

I developed this model for my PhD project, “Polarisation and Protest Mobilisation Around Secessionist Movements: an Agent-Based Model of Online and Offline Social Networks”, at the University of Glasgow (2019-2023).

The purpose of this model is to simulate protest emergence in a given country where there is an independence movement, fostering the self-categorisation process of national identification. In order to contextualised SIMPE, I have used Catalonia, where an ongoing secessionist movement since 2011 has been present, national identity has shown signs of polarisation, and where numerous mobilisations have taken place over the last decade. Data from the Catalan Centre of Opinion Studies (CEO) has been used to inform some of the model parameters.

The SIM-VOLATILE model is a technology adoption model at the population level. The technology, in this model, is called Volatile Fatty Acid Platform (VFAP) and it is in the frame of the circular economy. The technology is considered an emerging technology and it is in the optimization phase. Through the adoption of VFAP, waste-treatment plants will be able to convert organic waste into high-end products rather than focusing on the production of biogas. Moreover, there are three adoption/investment scenarios as the technology enables the production of polyhydroxyalkanoates (PHA), single-cell oils (SCO), and polyunsaturated fatty acids (PUFA). However, due to differences in the processing related to the products, waste-treatment plants need to choose one adoption scenario.

In this simulation, there are several parameters and variables. Agents are heterogeneous waste-treatment plants that face the problem of circular economy technology adoption. Since the technology is emerging, the adoption decision is associated with high risks. In this regard, first, agents evaluate the economic feasibility of the emerging technology for each product (investment scenarios). Second, they will check on the trend of adoption in their social environment (i.e. local pressure for each scenario). Third, they combine these two economic and social assessments with an environmental assessment which is their environmental decision-value (i.e. their status on green technology). This combination gives the agent an overall adaptability fitness value (detailed for each scenario). If this value is above a certain threshold, agents may decide to adopt the emerging technology, which is ultimately depending on their predominant adoption probabilities and market gaps.

Roman Amphora reuse

Tom Brughmans | Published Wed Aug 7 13:41:32 2019 | Last modified Wed Mar 15 12:28:00 2023

UPDATE in V1.1.0: missing input data files added; relative paths to input data files changed to “../data/FILENAME”

A model that allows for representing key theories of Roman amphora reuse, to explore the differences in the distribution of amphorae, re-used amphorae and their contents.

This model generates simulated distributions of prime-use amphorae, primeuse contents (e.g. olive oil) and reused amphorae. These simulated distributions will differ between experiments depending on the experiment’s variable settings representing the tested theory: variations in the probability of reuse, the supply volume, the probability of reuse at ports. What we are interested in teasing out is what the effect is of each theory on the simulated amphora distributions.

This model has been created with and for the researcher-farmers of the Muonde Trust (, a registered Zimbabwean non-governmental organization dedicated to fostering indigenous innovation. Model behaviors and parameters (mashandiro nemisiyano nedzimwe model) derive from a combination of literature review and the collected datasets from Muonde’s long-term (over 30 years) community-based research. The goals of this model are three-fold (muzvikamu zvitatu):
A) To represent three components of a Zimbabwean agro-pastoral system (crops, woodland grazing area, and livestock) along with their key interactions and feedbacks and some of the human management decisions that may affect these components and their interactions.
B) To assess how climate variation (implemented in several different ways) and human management may affect the sustainability of the system as measured by the continued provisioning of crops, livestock, and woodland grazing area.
C) To provide a discussion tool for the community and local leaders to explore different management strategies for the agro-pastoral system (hwaro/nzira yekudyidzana kwavanhu, zvipfuo nezvirimwa), particularly in the face of climate change.

Peer reviewed PolicySpace2: modeling markets and endogenous public policies

B Furtado | Published Thu Feb 25 13:21:22 2021 | Last modified Fri Jan 14 13:46:42 2022

Policymakers decide on alternative policies facing restricted budgets and uncertain future. Designing public policies is further difficult due to the need to decide on priorities and handle effects across policies. Housing policies, specifically, involve heterogeneous characteristics of properties themselves and the intricacy of housing markets and the spatial context of cities. We propose PolicySpace2 (PS2) as an adapted and extended version of the open source PolicySpace agent-based model. PS2 is a computer simulation that relies on empirically detailed spatial data to model real estate, along with labor, credit, and goods and services markets. Interaction among workers, firms, a bank, households and municipalities follow the literature benchmarks to integrate economic, spatial and transport scholarship. PS2 is applied to a comparison among three competing public policies aimed at reducing inequality and alleviating poverty: (a) house acquisition by the government and distribution to lower income households, (b) rental vouchers, and (c) monetary aid. Within the model context, the monetary aid, that is, smaller amounts of help for a larger number of households, makes the economy perform better in terms of production, consumption, reduction of inequality, and maintenance of financial duties. PS2 as such is also a framework that may be further adapted to a number of related research questions.

This project is based on a Jupyter Notebook that describes the stepwise implementation of the EWA model in bi-matrix ( 2×2 ) strategic-form games for the simulation of economic learning processes. The output is a dataset with the simulated values of Attractions, Experience, selected strategies, and payoffs gained for the desired number of rounds and periods. The notebook also includes exploratory data analysis over the simulated output based on equilibrium, strategy frequencies, and payoffs.

A spatio-temporal Agent Based Modeling (ABM) framework is developed to probabilistically predict farmers’ decisions in the context of climate-induced water scarcity under varying utility optimization functions. The proposed framework forecasts farmers’ behavior assuming varying utility functions. The framework allows decision makers to forecast the behavior of farmers through a user-friendly platform with clear output visualization. The functionality of the proposed ABM is illustrated in an agriculturally dominated plain along the Eastern Mediterranean coastline.

Study area GIS data available upon request to [email protected]

The HERB model simulates the retrofit behavior of homeowners in a neighborhood. The model initially parameterizes a neighborhood and households with technical factors such as energy standard, the availability of subsidies, and neighbors’ retrofit activity. Then, these factors are translated into psychological variables such as perceived comfort gain, worry about affording the retrofit, and perceiving the current energy standard of the home as wasteful. These psychological variables moderate the transition between four different stages of deciding to retrofit, as suggested by a behavioral model specific to household energy retrofitting identified based on a large population survey in Norway. The transition between all stages eventually leads to retrofitting, which affects both the household’s technical factors and friends and neighbors, bringing the model “full circle”. The model assumes that the energy standard of the buildings deteriorates over time, forcing households to retrofit regularly to maintain a certain energy standard.

Because experiment datafiles are about 15GB, they are available at

An agent model is presented that aims to capture the impact of cheap talk on collective action in a commons dilemma. The commons dilemma is represented as a spatially explicit renewable resource. Agent’s trust in others impacts the speed and harvesting rate, and trust is impacted by observed harvesting behavior and cheap talk. We calibrated the model using experimental data (DeCaro et al. 2021). The best fit to the data consists of a population with a small frequency of altruistic and selfish agents, and mostly conditional cooperative agents sensitive to inequality and cheap talk. This calibrated model provides an empirical test of the behavioral theory of collective action of Elinor Ostrom and Humanistic Rational Choice Theory.

Identity and meat eating behaviour

Jiaqi Ge | Published Thu Sep 29 16:51:47 2022

Using data from the British Social Attitude Survey, we develop an agent-based model to study the effect of social influence on the spread of meat-eating behaviour in the British population.

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.