simulation codes for multi-agent systems