Agent-Based Modeling

This class is taught in English as part of the Master SIED of the University Nice Sophia Antipolis.

Academic Year 2019-2020

II semester, 3 ECTS.

Previous Editions: 2018-2019.

Instructor: Prof. Andrea G. B. Tettamanzi.


This course will provide a friendly introduction to the fascinating field of agent-based modeling. We will study how to use agent-based modeling to understand and examine a wide range of complex problems related to Economics and beyond. We will also see how to build a model from the ground up using the Python programming langage and how to analyze its results.


This course consists of 7 units of approximately 3 hours each, mixing lectures and hands-on sessions.

Class Schedule

Unit # Date Subject
1 Thursday, January 16, 2020, 16:00-19:00 Introduction
Building a Simple Model:
Mesa Installation
2 Thursday, January 30, 2020, 16:00-19:00 A crash course on OOP in Python
Hands-on session:
Mesa Tutorial
3 Thursday, February 13, 2020, 16:00-19:00 Creating Agent-Based Models
Hands-on session:
The El Farol Bar Problem
4 Thursday, February 27, 2020, 16:00-19:00 Hands-on session:
The El Farol Bar Problem (continued)
This is a sketch of implementation
5 Thursday, March 12, 2020, 16:00-19:00 Designing an Agent-Based Model and Analyzing its results
Testing Carlo Cipolla's Laws of Human Stupidity with Agent-Based Modeling
6 Thursday, March 26, 2020, 16:00-19:00 The ODD Protocol
Applying the ODD Protocol to the ABM of Carlo Cipolla's Laws of Human Stupidity
7 Thursday, April 9, 2020, 16:00-18:00 Hands-on session:
Testing Carlo Cipolla's Laws of Human Stupidity with Agent-Based Modeling (continued)
Link to the paper


To ensure teaching continuity during the COVID19 lockdown, the last class will take place on Zoom. Please watch out for an invitation, to be sent to you by e-mail.

The due date for the project is May 10, 2020.



The slides used in class may be downloaded by clicking on the title of the corresponding unit.

On-Line Resources

The official Web site of the Mesa Agent-Based Modeling Framework.


Grading is based on

Last Updated on April 9, 2020