agent-based SIR model simulating the spread of an epidemic on a population