Our mission is to help computational modelers develop, document, and share their computational models in accordance with community standards and good open science and software engineering practices. Model authors can publish their model source code in the Computational Model Library with narrative documentation as well as metadata that supports open science and emerging norms that facilitate software citation, computational reproducibility / frictionless reuse, and interoperability. Model authors can also request private peer review of their computational models. Models that pass peer review receive a DOI once published.
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 feel free to contact us if you have any questions or concerns about publishing your model(s) in the Computational Model Library.
Displaying 10 of 34 results foraging clear search
patch_choice_enhanced.nlogox is an agent-based model (ABM) implementing the patch choice model from optimal foraging theory (OFT) in a multi-agent simulation environment. It extends the classical single-forager, equation-based Marginal Value Theorem (MVT) formulation to support multiple competing foragers, demographic processes, bounded memory, and stochastic resource dynamics on a spatially heterogeneous landscape.
An agent-based model of one colony of the Florida harvester ant, Pogonomyrmex badius, from the day a mated queen lands to the death of the colony. It runs in a web browser and, unchanged, headless in Node for replicate studies.
What the ants do: a claustral queen digs her own shaft and raises the first workers on her reserves; workers dig the nest under local rules, with no ant holding a plan; a one-way, age-based division of labour set by the season of birth, which no shortage reverses; trunk-trail foraging with site fidelity and recruitment; seed storage, opening and germination in the chambers, which is what feeds the larvae; daily weather from the climate normals of the study site, with drought years; nuptial flights after heavy rain; corpse removal; alarm at a disturbance on the foraging ground; and annual nest relocation, in which the store and then the brood are carried along the trail to a new nest the colony digs.
Every value in the model is tagged as measured in this species, borrowed from another ant, or invented, with its source, in a single parameter file. The model is deterministic: one seeded stream per system and a fixed one-minute timestep, so a seed reproduces a run bit for bit in the browser and in Node, which a test pins. A study writes a methods report listing the invented values the results rest on and the acceptance tests the model fails.
…
This NetLogo model simulates the movement and foraging behavior of 20 bird species (classified as urban avoiders or utilizers) across a 20×20m grid landscape representing southern Bogotá, Colombia. Agents follow an optimal foraging strategy (90% of the time) or move randomly (10%), gaining energy from land-cover-dependent food sources and dying if energy falls below their basal metabolic rate. The model compares two landscape scenarios — current land cover (2016) and a proposed scenario incorporating the ‘Media Luna del Sur’ ecological corridor from Bogotá’s 2022–2035 Land Use Plan (POT) — to evaluate whether the proposed green infrastructure improves functional connectivity for avian biodiversity across the urban matrix. Outputs include cumulative patch visitation counts, exported as raster files, used to generate connectivity heatmaps.
This agent-based model simulates the interactions between smallholder farming households, land-use dynamics, and ecosystem services in a rural landscape of Eastern Madagascar. It explores how alternative agricultural practices —shifting agriculture, rice cultivation, and agroforestry—combined with varying levels of forest protection, influence food production, food security, dietary diversity, and forest biodiversity over time. The landscape is represented as a grid of spatially explicit patches characterized by land use, ecological attributes, and regeneration dynamics. Agents make yearly decisions on land management based on demographic pressures, agricultural returns, and institutional constraints. Crop yields are affected by stochastic biotic and abiotic disruptions, modulated by local ecosystem regulation functions. The model additionally represents foraging as a secondary food source and pressure on biodiversity. The model supports the analysis of long-term trade-offs between agricultural productivity, human nutrition, and conservation under different policy and land-use scenarios.
AgModel is an agent-based model of the forager-farmer transition. The model consists of a single software agent that, conceptually, can be thought of as a single hunter-gather community (i.e., a co-residential group that shares in subsistence activities and decision making). The agent has several characteristics, including a population of human foragers, intrinsic birth and death rates, an annual total energy need, and an available amount of foraging labor. The model assumes a central-place foraging strategy in a fixed territory for a two-resource economy: cereal grains and prey animals. The territory has a fixed number of patches, and a starting number of prey. While the model is not spatially explicit, it does assume some spatiality of resources by including search times.
Demographic and environmental components of the simulation occur and are updated at an annual temporal resolution, but foraging decisions are “event” based so that many such decisions will be made in each year. Thus, each new year, the foraging agent must undertake a series of optimal foraging decisions based on its current knowledge of the availability of cereals and prey animals. Other resources are not accounted for in the model directly, but can be assumed for by adjusting the total number of required annual energy intake that the foraging agent uses to calculate its cereal and prey animal foraging decisions. The agent proceeds to balance the net benefits of the chance of finding, processing, and consuming a prey animal, versus that of finding a cereal patch, and processing and consuming that cereal. These decisions continue until the annual kcal target is reached (balanced on the current human population). If the agent consumes all available resources in a given year, it may “starve”. Starvation will affect birth and death rates, as will foraging success, and so the population will increase or decrease according to a probabilistic function (perturbed by some stochasticity) and the agent’s foraging success or failure. The agent is also constrained by labor caps, set by the modeler at model initialization. If the agent expends its yearly budget of person-hours for hunting or foraging, then the agent can no longer do those activities that year, and it may starve.
Foragers choose to either expend their annual labor budget either hunting prey animals or harvesting cereal patches. If the agent chooses to harvest prey animals, they will expend energy searching for and processing prey animals. prey animals search times are density dependent, and the number of prey animals per encounter and handling times can be altered in the model parameterization (e.g. to increase the payoff per encounter). Prey animal populations are also subject to intrinsic birth and death rates with the addition of additional deaths caused by human predation. A small amount of prey animals may “migrate” into the territory each year. This prevents prey animals populations from complete decimation, but also may be used to model increased distances of logistic mobility (or, perhaps, even residential mobility within a larger territory).
…
Many archaeological assemblages from the Iberian Peninsula dated to the Last Glacial Maximum contain large quantities of European rabbit (Oryctolagus cuniculus) remains with an anthropic origin. Ethnographic and historic studies report that rabbits may be mass-collected through warren-based harvesting involving the collaborative participation of several persons.
We propose and implement an Agent-Based Model grounded in the Optimal Foraging Theory and the Diet Breadth Model to examine how different warren-based hunting strategies influence the resulting human diets.
…
Non-traditional tools and mediums can provide unique methodological and interpretive opportunities for archaeologists. In this case, the Unreal Engine (UE), which is typically used for games and media, has provided a powerful tool for non-programmers to engage with 3D visualization and programming as never before. UE has a low cost of entry for researchers as it is free to download and has user-friendly “blueprint” tools that are visual and easily extendable. Traditional maritime mobility in the Salish Sea is examined using an agent-based model developed in blueprints. Focusing on the sea canoe travel of the Straits Salish northwestern Washington State and southwest British Columbia. This simulation integrates GIS data to assess travel time between Coast Salish archaeological village locations and archaeologically represented resource gathering areas. Transportation speeds informed by ethnographic data were used to examine travel times for short forays and longer inter-village journeys. The results found that short forays tended to half day to full day trips when accounting for resource gathering activities. Similarly, many locations in the Salish Sea were accessible in long journeys within two to three days, assuming fair travel conditions. While overall transportation costs to reach sites may be low, models such as these highlight the variability in transport risk and cost. The integration of these types of tools, traditionally used for entertainment, can increase the accessibility of modeling approaches to researchers, be expanded to digital storytelling, including aiding in the teaching of traditional ecological knowledge and placenames, and can have wide applications beyond maritime archaeology.
This is v0.01 of a UE5.2.1 agent based model.
Many archaeological assemblages from the Iberian Peninsula dated to the Last Glacial Maximum contain large quantities of European rabbit (Oryctolagus cuniculus) remains with an anthropic origin. Ethnographic and historic studies report that rabbits may be mass-collected through warren-based harvesting involving the collaborative participation of several persons.
We propose and implement an Agent-Based Model grounded in the Optimal Foraging Theory and the Diet Breadth Model to examine how different warren-based hunting strategies influence the resulting human diets.
Particularly, this model is developed to test the following hypothesis: What if an age and/or gender-based division of labor was adopted, in which adult men focus on large prey hunting, and women, elders and children exploit warrens?
…
Zooarchaeological evidences indicate that rabbit hunting became prevalent during the Upper Palaeolithic in the Iberian Peninsula.
The purpose of the ABM is to test if warren hunting using nets as a collective strategy can explain the introduction of rabbits in the human diet in the Iberian Peninsula during this period. It is analyzed whether this hunting strategy has an impact on human diet breadth by affecting the relative abundance of other main taxa in the dietary spectrum.
Model validity is measured by comparing simulated diet breadth to the observed diet breadth in the zooarchaeological record.
The agent-based model is explicitly grounded on the Diet Breadth Model (DBM), from the Optimal Foraging Theory (OFT).
…
The western honey bee Apis mellifera is the most important pollinator in the world. The biggest threat to managed honey bees is the ectoparasitic mite Varroa destructor and the viruses DWV (Deformed Wing Virus) and APV (Acute Paralysis Virus) it transmits. Untreated honey bee colonies are expected to die within one to three years. This led to the development of strategies for beekeepers to control the Varroa mite in honey bee colonies and ensure the health and survival of their bee colonies, so called Good Beekeeping Practice. The aim of the extension of BEEHAVE was to represent the Good Beekeeping Practice of Varroa control in Germany. The relevant measures within the Varroa control strategies are drone brood removal as a Varroa trap and the treatment of bee colonies with organic acaricides (formic and oxalic acid) to kill the mites. This extension improves BEEHAVE and builds a bridge between beekeepers in practice and in the modelling world. It vastly contributes to the future use of BEEHAVE in beekeeping education in Germany.
Displaying 10 of 34 results foraging clear search