Our mission is to help computational modelers at all levels engage in the establishment and adoption of community standards and good practices for developing and sharing computational models. Model authors can freely publish their model source code in the Computational Model Library alongside narrative documentation, open science metadata, and other emerging open science norms that facilitate software citation, reproducibility, interoperability, and reuse. Model authors can also request peer review of their computational models to receive a DOI.
All users of models published in the library must cite model authors when they use and benefit from their code.
Please check out our model publishing tutorial and contact us if you have any questions or concerns about publishing your model(s) in the Computational Model Library.
We also maintain a curated database of over 7500 publications of agent-based and individual based models with additional detailed metadata on availability of code and bibliometric information on the landscape of ABM/IBM publications that we welcome you to explore.
Displaying 10 of 34 results farming clear search
The SAFIRe model (Simulation of Agents for Fertility, Integrated Energy, Food Security, and Reforestation) is an agent-based model co-developed with rural communities in Senegal’s Groundnut Basin. Its purpose is to explore how local farming and pastoral practices affect the regeneration of Faidherbia albida trees, which are essential for maintaining soil fertility and supporting food security through improved millet production. The model supports collective reflection on how different social and ecological factors interact, particularly around firewood demand, livestock pressure, and agricultural intensification.
The model simulates a 100-hectare agricultural landscape where agents (farmers, shepherds, woodcutters, and supervisors) interact with trees, land parcels, and each other. It incorporates seasonality, crop rotation, tree growth and cutting, livestock feeding behaviors, and farmers’ engagement in sapling protection through Assisted Natural Regeneration (ANR). Two types of surveillance strategies are compared: community-led monitoring and delegated surveillance by forestry authorities. Farmer engagement evolves over time based on peer influence, meeting participation, and the success of visible tree regeneration efforts.
SAFIRe integrates participatory modeling (ComMod and ComExp) and a backcasting approach (ACARDI) to co-produce scenarios rooted in local aspirations. It was explored using the OpenMole platform, allowing stakeholders to test a wide range of future trajectories and analyze the sensitivity of key parameters (e.g., discussion frequency, time in fields). The model’s outcomes not only revealed unexpected insights—such as the hidden role of farmers in tree loss—but also led to real-world actions, including community nursery creation and behavioral shifts toward tree care. SAFIRe illustrates how agent-based modeling can become a tool for social learning and collective action in socio-ecological systems.
The purpose of this model is to analyze how different management strategies affect the wellbeing, sustainability and resilience of an extensive livestock system under scenarios of climate change and landscape configurations. For this purpose, it simulates one cattle farming system, in which agents (cattle) move through the space using resources (grass). Three farmer profiles are considered: 1) a subsistence farmer that emphasizes self-sufficiency and low costs with limited attention to herd management practices, 2) a commercial farmer focused on profit maximization through efficient production methods, and 3) an environmental farmer that prioritizes conservation of natural resources and animal welfare over profit maximization. These three farmer profiles share the same management strategies to adapt to climate and resource conditions, but differ in their goals and decision-making criteria for when, how, and whether to implement those strategies. This model is based on the SequiaBasalto model (Dieguez Cameroni et al. 2012, 2014, Bommel et al. 2014 and Morales et al. 2015), replicated in NetLogo by Soler-Navarro et al. (2023).
One year is 368 days. Seasons change every 92 days. Each step begins with the growth of grass as a function of climate and season. This is followed by updating the live weight of animals according to the grass height of their patch, and grass consumption, which is determined based on the updated live weight. Animals can be supplemented by the farmer in case of severe drought. After consumption, cows grow and reproduce, and a new grass height is calculated. This updated grass height value becomes the starting grass height for the next day. Cows then move to the next area with the highest grass height. After that, cattle prices are updated and cattle sales are held on the first day of fall. In the event of a severe drought, special sales are held. Finally, at the end of the day, the farm balance and the farmer’s effort are calculated.
3spire is an ABM where farming households make management decisions aimed at satisficing along the aspirational dimensions: food self-sufficiency, income, and leisure. Households decision outcomes depend on their social networks, knowledge, assets, household needs, past management, and climate/market trends
The model aims to simulate predator-prey relationships in an agricultural setting. The focus lies on avian communities and their effect on different pest organisms (here: pest birds, rodents, and arthropod pests). Since most case studies focused on the impact on arthropod pests (AP) alone, this model attempts to include effects on yield outcome. By incorporating three treatments with different factor levels (insectivorous bird species, falconry, nest box density) an experimental setup is given that allows for further statistical analysis to identify an optimal combination of the treatments.
In light of a global decline of birds, insects, and many other groups of organisms, alternative practices of pest management are heavily needed to reduce the input of pesticides. Avian pest control therefore poses an opportunity to bridge the disconnect between humans and nature by realizing ecosystem services and emphasizing sustainable social ecological systems.
Viable North Sea (ViNoS) is an Agent-based Model of the German North Sea Small-scale Fisheries in a Social-Ecological Systems framework focussing on the adaptive behaviour of fishers facing regulatory, economic, and resource changes. Small-scale fisheries are an important part both of the cultural perception of the German North Sea coast and of its fishing industry. These fisheries are typically family-run operations that use smaller boats and traditional fishing methods to catch a variety of bottom-dwelling species, including plaice, sole, and brown shrimp. Fisheries in the North Sea face area competition with other uses of the sea – long practiced ones like shipping, gas exploration and sand extractions, and currently increasing ones like marine protection and offshore wind farming. German authorities have just released a new maritime spatial plan implementing the need for 30% of protection areas demanded by the United Nations High Seas Treaty and aiming at up to 70 GW of offshore wind power generation by 2045. Fisheries in the North Sea also have to adjust to the northward migration of their established resources following the climate heating of the water. And they have to re-evaluate their economic balance by figuring in the foreseeable rise in oil price and the need for re-investing into their aged fleet.
The Land Use Competition in Drylands (LUCID) model is a stylized agent-based model of a smallholder farming system. Its main purpose is to illustrate how competition between pastoralism and crop cultivation can affect livelihoods of households, specifically their food security. In particular, the model analyzes whether the expansion of crop cultivation may contribute to a vicious circle where an increase in cultivated area leads to higher grazing pressure on the remaining pastureland, which in turn may cause forage shortages and livestock loss for households which are then forced to further expand their cultivated area in order to increase their food security. The model does not attempt to replicate a particular case study but to generate a general understanding of mechanisms and drivers of such vicious circles and to identify possible scenarios under which such circles may be prevented.
The model is inspired by observations of the Borana land use system in Southern Ethiopia. The climatic and ecological conditions of the Borana zone favor pastoralism, and traditionally livelihoods have been based mainly on livestock keeping. Recent years, however, have seen an advancement of crop cultivation as a coping strategy, e.g., to compensate the loss of livestock, even though crop yields are low on average and successful harvests are infrequent.
In the model, it is possible to evaluate patterns of individual (single household) as well as overall (across all households) consumption and food security, depending on a range of ecological, climatic and management parameters.
In the “World of Cows”, dairy farmers run their farms and interact with each other, the surrounding agricultural landscape, and the economic and political framework. The model serves as an exemplary case of an interdependent human-environment system.
With the model, users can analyze the influence of policies and markets on land use decisions of dairy farms. The land use decisions taken by farms determine the delivered ecosystem services on the landscape level. Users can choose a combination of five policy options and how strongly market prices fluctuate. Ideally, the choice of policy options fulfills the following three “political goals” 1) dairy farming stays economically viable, 2) the provision of ecosystem services is secured, and 3) government spending on subsidies is as low as possible.
The model has been designed for students to practice agent-based modeling and analyze the impacts of land use policies.
A model that representa farmers potential to adopt bio-fuels in Georgia
Large-scale land acquisitions (LSLAs) threaten smallholder livelihoods globally. Despite more than a decade of research on the LSLA phenomenon, it remains a challenge to identify governance conditions that may foster beneficial outcomes for both smallholders and investors. One potentially promising strategy toward this end is contract farming (CF), which more directly involves smallholder households in commodity production than conditions of acquisition and displacement.
To improve understanding of how CF may mediate the outcomes of LSLAs, we developed an agent-based model of smallholder livelihoods, which we used as a virtual laboratory to experiment on a range of hypothetical LSLA and CF implementation scenarios.
The model represents a community of smallholder households in a mixed crop-livestock system. Each agent farms their own land and manages a herd of livestock. Agents can also engage in off-farm employment, for which they earn a fixed wage and compete for a limited number of jobs. The principal model outputs include measures of household food security (representing access to a single, staple food crop) and agricultural production (of a single, staple food crop).
…
This is model that explores how a few farmers in a Chinese village, where all farmers are smallholders originally, reach optimal farming scale by transferring in farmland from other farmers in the context of urbanization and aging.
Displaying 10 of 34 results farming clear search