There exist many papers that explain the social force model and its application for modelling pedestrian dynamics. None of these papers, however, explains how to implement the social force model in order to use it for systems simulation studies. In this paper we propose a design pattern (reusable template) that supports the implementation of the social force model within an artificial lab to run experiments for human centric systems. It allows considering not only people but also static and moveable markups. We demonstrate how to implement the design pattern in two commonly used agent-based modelling packages, Repast Simphony and AnyLogic. For this we use an illustrative example from the Adaptive Architecture domain. Both packages require a slightly different implementation strategy, due to the API constraints they provide. Overall, we found that the design pattern provides very helpful guidance when working on the individual solutions for the different packages.
[1]
Dirk Helbing,et al.
Simulating dynamical features of escape panic
,
2000,
Nature.
[2]
Seungho Lee,et al.
An integrated pedestrian behavior model based on Extended Decision Field Theory and Social Force model
,
2010,
Proceedings of the 2010 Winter Simulation Conference.
[3]
Hugues Bersini,et al.
UML for ABM
,
2012,
J. Artif. Soc. Soc. Simul..
[4]
Helbing,et al.
Social force model for pedestrian dynamics.
,
1995,
Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics.
[5]
Daniele Fontanelli,et al.
Walking Ahead: The Headed Social Force Model
,
2017,
PloS one.