CitationsAdd new citationList by: CiterankMap Link[3] Compositional modeling with stock and flow diagrams
Author: John Baez, Xiaoyan Li, Sophie Libkind, Nathaniel Osgood, Evan Patterson Publication date: 31 July 2023 Publication info: arXiv:2205.08373 [cs.LO] Cited by: David Price 9:15 PM 14 November 2023 GMT Citerank: (1) 679855Nathaniel OsgoodNathaniel D. Osgood is a Professor in the Department of Computer Science and Associate Faculty in the Department of Community Health & Epidemiology at the University of Saskatchewan.10019D3ABAB URL: DOI: https://doi.org/10.48550/arXiv.2205.08373
| Excerpt / Summary [arXiv, 31 July 2023]
Stock and flow diagrams are widely used in epidemiology to model the dynamics of populations. Although tools already exist for building these diagrams and simulating the systems they describe, we have created a new package called StockFlow, part of the AlgebraicJulia ecosystem, which uses ideas from category theory to overcome notable limitations of existing software. Compositionality is provided by the theory of decorated cospans: stock and flow diagrams can be composed to form larger ones in an intuitive way formalized by the operad of undirected wiring diagrams. Our approach also cleanly separates the syntax of stock and flow diagrams from the semantics they can be assigned. We consider semantics in ordinary differential equations, although others are possible. As an example, we explain code in StockFlow that implements a simplified version of a COVID-19 model used in Canada. |
|