Agent-based model is a computer code representing how many heterogeneous adaptive economic agents – households, firms, farmers, governmental institutions – make decisions and interact with each other and their environment according to different behavioral rules.