CS300b – Agent Modeling
Reynolds came up with the three rules that describe the decision-making mechanism of each bird (or boid) within the flock:
Boids is an example of an Agent-based Model.
[…] a model is an abstract or physical structure that can potentially represent a real-world phenomenon.
Formal models offer advantages over verbal descriptions:
“All models are wrong, but some are useful.”
Box, George E. P.; Norman R. Draper (1987). Empirical Model-Building and Response Surfaces, p. 424, Wiley. ISBN 0471810339.
“[…] the apparent stupidity of a model can be a strength. By focusing only on some key aspects of a real-world system (i.e.,those aspects instantiated in the model), we can investigate how such a system would work if, in principle, we really could ignore everything we are ignoring.”
Paul Smaldino (page 8)
Fine-grained models:
Coarse-grained models:
Choose the level of detail appropriate for your research question.
Advantages
Disadvantages
\[ \frac{dS}{dt} = -\beta SI\] \[ \frac{dI}{dt} = \beta SI - \gamma I\] \[ \frac{dR}{dt} = \gamma I\]
\[ S(t+1) = S(t) - \beta S(t)I(t)\] \[ I(t+1) = I(t) + \beta S(t)I(t) - \gamma I(t)\] \[ R(t+1) = R(t) + \gamma I(t)\]
set
for changing the value of a variableif
and ifelse
commands for that.