Matlab code to emulate greedy/random agent behaviors in an multi-agent system.