Applied Economics Teaching Resources

an AAEA Journal

Agricultural and Applied Economics Association

Teaching and Educational Methods

Using NetLogo to Build an Agent-Based Model for Teaching Purposes at the Graduate Student Level

Bryan Collins(a) and Chyi-Lyi (Kathleen) Liang(b)
(a)State University of New York at Oneonta, (b)North Carolina Agricultural and Technical State University

JEL Codes: JEL Codes: C0, D0, E0
Keywords: Agent-based model, NetLogo, system analysis

Publish Date: December 4, 2024

View Full Article (PDF)

Abstract

Scholars and educators in agricultural economics face changing paradigms moving toward system-wide studies. Complex issues often involve quantitative and qualitative approaches, and it is difficult to access or acquire user-friendly tools that integrate both approaches. Agent-based modeling (ABM) offers a unique supplement to more conventional system-wide modeling frameworks, such as supply chain models, circular economy models, or coupled human and natural system models. The purpose of this paper is to show educators and graduate students about how agent-based models can be used in a graduate program curriculum. The paper shares some insight about the concept and sample applications of ABM, a popular analytic tool to study system-behavior-decision consequences through the interactions of entities. We use an example of simulating a buyer-grower market interaction for poultry products to demonstrate step-by-step strategies of using the NetLogo program to create an agent-based model. The benefits of using agent-based models include flexibilities of generating micro-level assumptions to approximate macro-level activities and outcomes, and the comprehensive integration between quantitative and qualitative analyses. The challenges are at the beginning phase to comprehend the scope and scale of analysis, define proper agents and behavioral characteristics, and generate meaningful interactions among agents in a logical manner.

About the Authors: Bryan Collins is a Visiting Assistant Professor at State University of New York at Oneonta (Corresponding author email: blcollins1@ncat.edu). Chyi-Lyi (Kathleen) Liang is the W.K. Kellogg Distinguished Professor of Sustainable Agriculture at North Carolina Agricultural and Technical State University.

Acknowledgments: This work is supported by USDA Sustainable Agriculture Systems grant no. 2020-69012-31823.

Copyright is governed under Creative Commons CC BY-NC-SA

References

Abar, S., G.K. Theodoropoulos, P. Lemarinier, and G.M. O’Hare. 2017. “Agent Based Modelling and Simulation Tools: A Review of the State-of-Art Software.” Computer Science Review 24:13–33.

Adamski, M., J. Kuzniacka, and N. Milczewska. 2017. “Preferences of Consumers for Choosing Poultry Meat.” Polish Journal of  Natural Science 32(2):261–271.

Axtell, R.L., and J.D. Farmer. 2022. “Agent-Based Modeling in Economics and Finance: Past, Present, and Future.” INET Oxford Working Paper No. 2022-10 (Working paper).

Baker, J., and U. Wilensky. 2017. “NetLogo Bidding Market Model.” Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston IL. http://ccl.northwestern.edu/netlogo/models/BiddingMarket.

Balmann, A. 1997. “Farm-Based Modelling of Regional Structural Change: A Cellular Automata Approach.” European Review of Agricultural Economics 24(1):85–108.

Bankes, S.C. 2002. “Agent-Based Modeling: A Revolution?” Proceedings of the National Academy of Sciences 99(suppl_3):7199–7200.

Berger, T. 2001. “Agent‐Based Spatial Models Applied to Agriculture: A Simulation Tool for Technology Diffusion, Resource Use Changes and Policy Analysis.” Agricultural Economics 25(2–3):245–260.

Bisin, A. 2024. “Book Review of Modeling Social Behavior: Mathematical and Agent-Based Models of Social Dynamics and Cultural Evolution by Paul E. Smaldino.” Journal of Economic Literature.

Bonabeau, E. 2002. “Agent-Based Modeling: Methods and Techniques for Simulating Human Systems.” Proceedings of the National Academy of Sciences 99(suppl_3):7280–7287.

Brady, M., K. Kellermann, C. Sahrbacher, and L. Jelinek. 2009. “Impacts of Decoupled Agricultural Support on Farm Structure, Biodiversity and Landscape Mosaic: Some EU Results.” Journal of Agricultural Economics 60(3):563–585.

Carsey, T.M., and J.J. Harden. 2015. “Can You Repeat That Please?: Using Monte Carlo Simulation in Graduate Quantitative Research Methods Classes.” Journal of Political Science Education 11(1):94–107.

Chai, S.J., D. Cole, A. Nisler, and B.E. Mahon. 2017. “Poultry: The Most Common Food in Outbreaks with Known Pathogens, United States, 1998–2012.” Epidemiology & Infection 145(2):316–325.

Chiacchio, F., M. Pennisi, G. Russo, S. Motta, and F. Pappalardo. 2014. “Agent-Based Modeling of the Immune System: NetLogo, a Promising Framework.” BioMed Research International 2014:907171.

Choe, J. 2023. “Outlook for Livestock and Poultry in 2022,” February 23. Washington DC: U.S. Department of Agriculture, 99th Annual Agricultural Outlook Forum. https://www.usda.gov/sites/default/files/documents/2023AOF-livestock-poultry-outlook.pdf.

Cuevas, E. 2020. “An Agent-Based Model to Evaluate the COVID-19 Transmission Risks in Facilities.” Computers in Biology and Medicine 121:103827.

Dalle Nogare, D., and A.B. Chitnis. 2020. “NetLogo Agent-Based Models as Tools for Understanding the Self-Organization of Cell Fate, Morphogenesis and Collective Migration of the Zebrafish Posterior Lateral Line Primordium.” Seminars in Cell & Developmental Biology 100:186–198.

De Marchi, S., and S.E. Page. 2014. “Agent-Based Models.” Annual Review of Political Science 17:1–20.

Delcea, C., L.A. Cotfas, and R. Paun. 2018. “Agent-Based Evaluation of the Airplane Boarding Strategies’ Efficiency and Sustainability.” Sustainability 10(6):1879.

Devarajan, S., and S. Robinson. 2002. “The Impact of AGE Models on Policy.” Paper presented at the Conference on Frontiers in Applied General Equilibrium Modeling, Yale University, New Haven CT, April 5–6.

Eger, L., L. Komárková, D. Egerová, and M. Mičík. 2021. “The Effect of COVID-19 on Consumer Shopping Behaviour: Generational Cohort Perspective.” Journal of Retailing and Consumer Services 61:102542.

Elkamel, M., A. Valencia, W. Zhang, Q.P. Zheng, and N.B. Chang. 2023. “Multi-Agent Modeling for Linking a Green Transportation System with an Urban Agriculture Network in a Food-Energy-Water Nexus.” Sustainable Cities and Society 89:104354.

Epstein, J.M. 2012. Generative Social Science: Studies in Agent-Based Computational Modeling. Princeton NJ: Princeton University Press.

Fatha, L., and R. Ayoubi. 2023. “A Revisit to the Role of Gender, Age, Subjective and Objective Knowledge in Consumers’ Attitudes Toward Organic Food.” Journal of Strategic Marketing 31(3):499–515.

Fezzi, C., and I.J. Bateman. 2011. “Structural Agricultural Land Use Modeling for Spatial Agro‐Environmental Policy Analysis.” American Journal of Agricultural Economics 93(4):1168–1188.

Freeman, T., J. Nolan, and R. Schoney. 2009. “An Agent‐Based Simulation Model of Structural Change in Canadian Prairie Agriculture, 1960–2000.” Canadian Journal of Agricultural Economics/Revue canadienne d'agroeconomie 57(4):537–554.

Fresco, L.O., F. Geerling-Eiff, A.C. Hoes, L. van Wassenaer, K.J. Poppe, and J.G. van der Vorst. 2021. “Sustainable Food Systems: Do Agricultural Economists Have a Role?” European Review of Agricultural Economics 48(4):694–718.

Gebrehiwot, A.A., L. Hashemi-Beni, L.A. Kurkalova, C.L. Liang, and M.K. Jha. 2022. “Using ABM to Study the Potential of Land Use Change for Mitigation of Food Deserts.” Sustainability 14(15):9715. https://doi.org/10.3390/su14159715

Gilbert, N. 2019. Agent-Based Models. Thousand Oaks CA: Sage Publications.

Happe, K., H. Schnicke, C. Sahrbacher, and K. Kellermann. 2009. “Will They Stay or Will They Go? Simulating the Dynamics of Single‐Holder Farms in a Dualistic Farm Structure in Slovakia.” Canadian Journal of Agricultural Economics/Revue canadienne d'agroeconomie 57(4):497–511.

Hare, M., and P. Deadman. 2004. “Further Towards a Taxonomy of Agent-Based Simulation Models in Environmental Management.” Mathematics and Computers in Simulation 64(1):25–40.

Junior, C.J.C., and A.C. Garcia-Cintado. 2018. “Teaching DSGE Models to Undergraduates.” EconomíA 19(3):424–444.

Kamphuis, C.B., E.W. de Bekker-Grob, and F.J. van Lenthe. 2015. “Factors Affecting Food Choices of Older Adults from High    and Low Socioeconomic Groups: A Discrete Choice Experiment.” The American Journal of Clinical Nutrition 101(4):768–774.

Karavolias, J., M.J. Salois, K.T. Baker, and K. Watkins. 2018. “Raised Without Antibiotics: Impact on Animal Welfare and Implications for Food Policy.” Translational Animal Science 2(4):337–348.

Kerr, C.C., R.M. Stuart, D. Mistry, R.G. Abeysuriya, K. Rosenfeld, G.R. Hart, ... D.J. Klein. 2021. “Covasim: An Agent-Based Model of COVID-19 Dynamics and Interventions.” PLOS Computational Biology 17(7):e1009149.

Klügl, F., and A.L. Bazzan. 2012. “Agent-Based Modeling and Simulation.” AI Magazine 33(3):29–29.

Kowalska-Pyzalska, A. 2017. “Willingess to Pay for Green Energy: An Agent-Based Model in NetLogo Platform.” Presentation at the 2017 14th International Conference on the European Energy Market (EEM), Dresden, Germany, June 6–9.

Kremmydas, D., I.N. Athanasiadis, and S. Rozakis. 2018. “A Review of Agent Based Modeling for Agricultural Policy Evaluation.” Agricultural Systems 164:95–106.

Laato, S., A.N. Islam, A. Farooq, and A. Dhir. 2020. “Unusual Purchasing Behavior During the Early Stages of the COVID-19 Pandemic: The Stimulus-Organism-Response Approach.” Journal of Retailing and Consumer Services 57:102224.

Lai, Y., and C. Yue. 2020. “Consumer Willingness to Pay for Organic and Animal Welfare Product Attributes: Do Experimental Results Align with Market Data?” Journal of Agricultural and Resource Economics.

Liang, C., and Z. Plakias. 2022. “Chapter 86: Interdisciplinary System and Network Perspectives in Food and Agricultural Economics.” In C.B. Barrett and D.R. Just, eds. Handbook of Agricultural Economics. London: Elsevier, 4705–4779. https://doi.org/10.1016/bs.hesagr.2022.03.002.

Martínez Michel, L., P. H. Punter, and W.V. Wismer. 2011. “Perceptual Attributes of Poultry and Other Meat Products: A Repertory Grid Application.” Meat Science 87(4):349–355.

Mielke, R.R., M.W. Scerbo, K.T. Gaubatz, and G.S. Watson. 2009. “A Model for Multidisciplinary Graduate Education in Modelling and Simulation.” International Journal of Simulation and Process Modelling 5(1):3–13.

Miksch, F., B. Jahn, K.J. Espinosa, J., Chhatwal, U. Siebert, and N. Popper. 2019. “Why Should We Apply ABM for Decision Analysis for Infectious Diseases?—An Example for Dengue Interventions.” PloS one 14(8):e0221564.

Mohammadi, H., S. Saghaian, and F. Boccia. 2023. “Antibiotic-Free Poultry Meat Consumption and Its Determinants.” Foods 12(9):1776.

Monti, C., M. Pangallo, G. De Francisci Morales, and F. Bonchi. 2023. “On Learning Agent-Based Models from Data.” Scientific Reports 13:9268.

Muis, J. 2010. “Simulating Political Stability and Change in the Netherlands (1998–2002): An Agent-Based Model of Party Competition with Media Effects Empirically Tested.” Journal of Artificial Societies and Social Simulation 13(2):4.

Murphy, K. J., Ciuti, S., & Kane, A. (2020). An Introduction to Agent‐based Models as an Accessible Surrogate to Field‐based Research and Teaching. Ecology and Evolution10(22), 12482-12498.

North Carolina Cooperative Extension. n.d. “Best Practices for Buying Meat Directly From Farmers.” https://www.ncat.edu/caes/cooperative-extension/covid-19/best-practices-for-buying-meat.php.

North Carolina Farm School. 2022. “NC Choices Meat Chicken Cost Breakout.” https://ncfarmschool.ces.ncsu.edu/wp-content/uploads/2016/08/NC-Choices-NC-Farm-School-Meat-Chicken-Info-graphic-Breakout.pdf?fwd=no.

Norton, G.W., J. Alwang, and W.A. Masters. 2021. Economics of Agricultural Development: World Food Systems and Resource Use. London: Routledge.

Oren, T.I., S.K. Numrich, A.M. Uhrmacher, L.F. Wilson, and E. Gelenbe. 2000. “Agent-Directed Simulation-Challenges to Meet Defense and Civilian Requirements.” 2000 Winter Simulation Conference Proceedings 2:1757–1762.

Pantano, E., G. Pizzi, D. Scarpi, and C. Dennis. 2020. “Competing During a Pandemic? Retailers’ Ups and Downs During the COVID-19 Outbreak.” Journal of Business Research 116:209–213.

Platow, M.J. 2012. “PhD Experience and Subsequent Outcomes: A Look at Self-Perceptions of Acquired Graduate Attributes and Supervisor Support.” Studies in Higher Education 37(1):103–118.

Schipmann-Schwarze, C., and U. Hamm. 2020. “Exploring Drivers and Barriers for Organic Poultry Consumption.” British Food Journal 122(12):3679–3693.

Shamil, M.S., F. Farheen, N. Ibtehaz, I.M. Khan, and M.S. Rahman. 2021. “An Agent-Based Modeling of COVID-19: Validation, Analysis, and Recommendations.” Cognitive Computation:1–12.

Shiflet, A.B., and G.W. Shiflet. 2014. “An Introduction to Agent-Based Modeling for Undergraduates.” Procedia Computer Science 29:1392–1402.

Silva, P.C., P.V. Batista, H.S. Lima, M.A. Alves, F.G. Guimarães, and R.C. Silva. 2020. “COVID-ABS: An Agent-Based Model of COVID-19 Epidemic to Simulate Health and Economic Effects of Social Distancing Interventions.” Chaos, Solitons &    Fractals 139:110088.

Singh, D., L. Padgham, and B. Logan. 2016. “Integrating BDI Agents with Agent-Based Simulation Platforms.” Autonomous Agents and Multi-Agent Systems 30:1050–1071.

Smaldino, P. 2023. Modeling Social Behavior: Mathematical and Agent-Based Models of Social Dynamics and Cultural Evolution. Princeton NJ: Princeton University Press.

Sun, Z., I. Lorscheid, J.D. Millington, S. Lauf, N.R. Magliocca, J. Groeneveld, ... C.M. Buchmann. 2016. “Simple or Complicated Agent-Based Models? A Complicated Issue.” Environmental Modelling & Software 86:56–67.

Tesfatsion, L., and K.L. Judd, eds. 2006. Handbook of Computational Economics: Agent-Based Computational Economics. London: Elsevier.

Tisue, S., and U. Wilensky. 2004. “Netlogo: A Simple Environment for Modeling Complexity.” International Conference on Complex Systems Proceedings 21:16–21.

U.S. Department of Agriculture, Economic Research Service. 2022. “Poultry Sector at a Glance.” https://www.ers.usda.gov/topics/animal-products/poultry-eggs/sector-at-a-glance/.

U.S. Department of Agriculture, National Agriculture Statistics Service. 2022. “Results from the 2021 Organic Survey.” NASS Highlights (2022-9), December. https://www.nass.usda.gov/Publications/Highlights/2022/2022_Organic_Highlights.pdf.

U.S. Department of Agriculture, National Agriculture Statistics Service. 2023. Poultry – Production and Value: 2022 Summary (1949-1573). Washington DC, April. https://downloads.usda.library.cornell.edu/usda-esmis/files/m039k491c/wm119387d/5138kw352/plva0423.pdf.

Van Dyke Parunak, H., R. Savit, and R.L. Riolo. 1998. “Agent-Based Modeling vs. Equation-Based Modeling: A Case Study and Users’ Guide.” Proceedings of the First International Workshop on Multi-Agent Systems and Agent-Based Simulation:10–25.

Van Loo, E.J., V. Caputo, R.M. Nayga Jr, J.F. Meullenet, and S.C. Ricke. 2011. “Consumers’ Willingness to Pay for Organic Chicken Breast: Evidence from Choice Experiment.” Food Quality and Preference 22(7):603–613.

Vander Mey, B.J. 2004. “The Globalization of Food and How Americans Feel About It: Results of Two Surveys.” Journal of Food   Distribution Research 35(856-2016-57069):6–17.

Velasco-Muñoz, J.F., J.M.F. Mendoza, J.A. Aznar-Sánchez, and A. Gallego-Schmid. 2021. “Circular Economy Implementation in the Agricultural Sector: Definition, Strategies and Indicators.” Resources, Conservation and Recycling 170:105618.

Velasquez, C.G., K.S. Macklin, S. Kumar, M. Bailey, P.E. Ebner, H.F. Oliver, ... M. Singh. 2018. “Prevalence and Antimicrobial Resistance Patterns of Salmonella Isolated from Poultry Farms in Southeastern United States.” Poultry Science 97(6):2144–2152.

Wilensky, U. 1999. “NetLogo.” Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston IL. http://ccl.northwestern.edu/netlogo/.

Articles in this issue

Textbook Review of: Equilibrium Displacement Models: Theory, Applications, and Policy Analysis. By Gary W. Brester, Joseph A. Atwood, and Michael A. Boland
George Davis, Andrew Keller, Henry Kinnucan, Mike McCullough, Hikaru Hanawa Peterson, et al.

Reflecting on Using Reflection Exercises to Improve Student Learning and Teaching Effectiveness
Jaclyn D. Kropp

Innovate to Lead: Curriculum Innovations to Meet Students’ Needs in Applied Agricultural Economics and Agribusiness Programs
Rachna Tewari , Na Zuo, Maria Bampasidou, Anthony Delmond, Lijiao Hu, Tanner McCarty, et al.

Using NetLogo to Build an Agent-Based Model for Teaching Purposes at the Graduate Student Level
Bryan Collins and Chyi-Lyi (Kathleen) Liang

An Ignatian Pedagogical Approach to Fostering Conversations on BIPOC Farmland Ownership Through Film Screenings
Jacquelyn D. Wiersma-Mosley, Trey Malone, Logan G. Moss, and Wendell Scales Jr.

Expanding Undergraduate Research Experience: Opportunities, Challenges, and Lessons for the Future
April Athnos, Anna Josephson, Jeffrey D. Michler, and Lorin Rudin-Rush

Faculty Perspectives on Engaging Undergraduates in Agricultural and Applied Economics Research
John Lai, Jerrod Penn, and Misti Sharp

Integrating Agricultural Research into Undergraduate Work Integrated Learning (WIL) Courses
Risti Permani, Md Khairul Hidayatullah Basir, Kodrad Winarno, Bisakha Dewan, et.al

From Zero to Thesis in Two Years: A Curriculum Plan for Engaging Undergraduates in Honors Research
Caleb Stair, Xumin Zhang and Misti Sharp

Undergraduate Research Opportunities in an Applied Economics Program: Expanding Pathways for Economics Majors (and Beyond) at Land-Grant HBCUs
Huan Li, Lyubov Kurkalova, Scott Simkins and Shona Morgan

Undergraduate Research in the Andes: Overcoming Barriers to Developing-Country Farm-Household Focused Analysis

Undergraduate Applied Microeconomic Research with Demographic and Health Surveys
Seth R. Gitter, Chris M. Boyd, and Raissa Abbasi

Dare to Experiment: The Synergistic Relationship Between Undergraduate Research and Experimental Economics
Carl Nelson-Poteet , Lusi Xie, Kent D. Messer, and Leah H. Palm-Forster

Creating and Implementing Undergraduate Research Experiences: An Example for Analyzing the Size, Structure, and Performance of U.S. Food Manufacturing Industries
Yuliya V. Bolotova, Luke Juffer, Haylie Moore

Integrating Mixed Methods and Service-Learning in Undergraduate Education in Applied Research Methods: A Course Preparing Students to Address Complex Social Issues
David Conner

Engaging Students in Open Dialogue about Use of AI Tools in Economics Courses
Zoë Plakias