Skip to main content

< Back to Article

Covasim: An agent-based model of COVID-19 dynamics and interventions

Fig 5

Illustration of the standard object-oriented approach for implementing agent-based models (top), where each agent is a separate object, compared with the approach used in Covasim (bottom), where agents are represented as slices through a set of state arrays. Dots (…) represent omitted entries. In practice, each agent has several dozen states, and there are typically hundreds of thousands of agents.

Fig 5