Overview

The Random Walk model is simple model intended as introduction to coding a Repast4Py simulation. The model consists of a number of agents moving at random around a two-dimensional grid and logging the aggregate and agent-level colocation counts. Each iteration of the model:

  1. All the agents (walkers) choose a random direction and move one unit in that direction.

  2. All the agents count the number of other agents they meet at their current location by determining the number of colocated agents at their grid locations.

  3. The sum, minimum, and maxiumum number of agents met are calculated across all process ranks, and these values are logged as the total, minimum, and maximum meet values.

See Tutorial 1 in the Repast4Py User’s Guide for a complete explanation of the Random Walk model.