4 Hands-On I: Building an Agent-Based Model in Anylogic

Wade McDonald
DOI: https://doi.org/10.1093/jas/skad281.089
2023-11-06
Journal of Animal Science
Abstract:Abstract Livestock farming systems (LFS) have detrimental effects on the environment, associated mainly with feed production, enteric methane and emissions from manure. LFS are complex because they are structured by multiple interactions between biological and human-controlled processes, at various organizational levels. Their behavior and the extent to which feeding strategies can mitigate this environmental burden is not always easily predictable. Dynamic mechanistic models of LFS can simulate the effects of feeding strategies on both animal performance and the associated excretion of nutrients. These models are useful tools to produce the life cycle inventories needed in the second step of a life cycle assessment. In the pig-fattening unit, the effects of multiphase group feeding depend largely on the variability of growth potential among pigs and the farmer has decisions that can target either the group of pigs or each individual (e.g., when choosing pigs to deliver to slaughterhouse). Therefore, simulating the growth trajectory of each individual pig and events like deliveries to slaughterhouse makes it possible to estimate the response of the pig population rather than the average pig to feeding strategies. Individual-based models (IBM) are particularly adequate because they make it possible to simulate each individual and to build the response of the population from the aggregation of individuals. Agent-based models are IBM that rely on self-governing agents made of properties, behavioral rules and resources that allow each agent to make decisions upon the occurrence of an event, which can be triggered randomly or not. This hands-on will focus on a specific example dedicated to the simulation of the response (growth, nitrogen excretion and subsequent gaseous emissions from manure) of a population of fattening pigs to a multiphase feeding strategy. In a first step, we will develop a simplified individual-based model of a pig-fattening pen including pigs and the farmer as agents. In a second step, we will improve this model by introducing interactions between these agents. For both steps, we will work with python language using pre-developed jupyter notebooks.
agriculture, dairy & animal science
What problem does this paper attempt to address?