BDI agents
This tutorial develops a gold-miner model in five stages. It starts with the environment and adds BDI reasoning, social relations and information sharing, emotions and personality, then laws, obligations, norms and enforcement. The corresponding models are in the BDI extension's tutorial folder.
The BDI (Belief–Desire–Intention) approach represents what an agent believes, what it wants to achieve and what it has chosen to do. GAMA's simple_bdi architecture provides these cognitive states and lets a model define perceptions, rules and plans. The tutorial's second stage gives a concrete example; the BEN architecture recipe and its research references provide further context.
If agent-based modeling or GAML is new to you, start with the predator–prey tutorial.
Model​
The model places gold mines and a market in a square environment. Miners discover mines, collect gold and return to the market. Later stages extend this model so miners can form social links and exchange mine information, use emotions and personality settings, and respond to normative rules.
Steps​
- Create the environment: define the mine and market species and initialize them.
- Add BDI miners: use beliefs, desires, intentions, perceptions, rules and plans to search for and sell gold.
- Add social relations: create social links and share known mine locations with positively liked miners.
- Add emotions and personality: enable the emotion and personality features and use joy as a condition for requesting information sharing.
- Add norms and enforcement: define a law that creates a work obligation, a norm for fulfilling it, and enforcement actions for miners and a police agent.