Stock and flow diagrams are already an important tool in epidemiology, but category theory lets us go further and treat these diagrams as mathematical entities in their own right. In this chapter we use communicable disease models created with our software, StockFlow.jl, to explain the benefits of the categorical approach. We first explain the category of stock-flow diagrams and note the clear separation between the syntax of these diagrams and their semantics, demonstrating three examples of semantics already implemented in the software: ODEs, causal loop diagrams, and system structure diagrams. We then turn to two methods for building large stock-flow diagrams from smaller ones in a modular fashion: composition and stratification. Finally, we introduce the open-source ModelCollab software for diagram-based collaborative modeling. The graphical user interface of this web-based software lets modelers take advantage of the ideas discussed here without any knowledge of their categorical foundations.
翻译:股量和流程图已经是流行病学的一个重要工具, 但分类理论允许我们更进一步, 并将这些图表本身作为数学实体对待。 在本章中, 我们使用由软件StockFlow.jl 创建的传染性疾病模型来解释绝对方法的好处。 我们首先解释股票流程图的类别, 并注意这些图表的语法与其语义的清晰区分, 展示软件中已经应用的语义的三个例子 : ODEs、 因果循环图和系统结构图 。 然后我们用两种方法, 以模块方式从小的软件中构建大型股量流图: 构成和分层。 最后, 我们引入了基于图表的协作模型的开源模型软件 。 这个基于网络的软件的图形用户界面让模型利用这里讨论的理念, 而不了解它们绝对的基础 。