ModelingToolkit: A Composable Graph Transformation System For Equation-Based Modeling

dc.contributor.authorMa, Yingbo
dc.contributor.authorGowda, Shashi
dc.contributor.authorAnantharaman, Ranjan
dc.contributor.authorLaughman, Chris
dc.contributor.authorShah, Viral
dc.contributor.authorRackauckas, Chris
dc.date.accessioned2021-03-26T16:16:05Z
dc.date.available2021-03-26T16:16:05Z
dc.description.abstractGetting good performance out of numerical equation solvers requires that the user has provided stable and efficient functions representing their model. However, users should not be trusted to write good code. In this manuscript we describe ModelingToolkit (MTK), a symbolic equation-based modeling system which allows for composable transformations to generate stable, efficient, and parallelized model implementations. MTK blurs the lines of traditional symbolic computing by acting directly on a user's numerical code. We show the ability to apply graph algorithms for automatically parallelizing and performing index reduction on code written for differential-algebraic equation (DAE) solvers, "fixing" the performance and stability of the model without requiring any changes to on the user's part. We demonstrate how composable model transformations can be combined with automated data-driven surrogate generation techniques, allowing machine learning methods to generate accelerated approximate models within an acausal modeling framework. These reduced models are shown to outperform the Dymola Modelica compiler on an HVAC model by 590x at 3\% error. Together, this demonstrates MTK as a system for bringing the latest research in graph transformations directly to modeling applications.en_US
dc.description.sponsorshipThe information, data, or work presented herein was funded in part by the Advanced Research Projects Agency-Energy (ARPA-E), U.S. Department of Energy, under Award Number DE-AR0001222 and NSF grants OAC-1835443 and IIP-1938400. We additionally thank Simon Frost of Microsoft Research Studies in Pandemic Preparedness for helping fund this work. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or any agency thereof.en_US
dc.description.urihttps://arxiv.org/abs/2103.05244en_US
dc.format.extent11 pagesen_US
dc.genrejournal articles preprintsen_US
dc.identifierdoi:10.13016/m2sfqq-rvpo
dc.identifier.citationYingbo Ma, Shashi Gowda, Ranjan Anantharaman, Chris Laughman, Viral Shah, Chris Rackauckas, ModelingToolkit: A Composable Graph Transformation System For Equation-Based Modeling, https://arxiv.org/abs/2103.05244en_US
dc.identifier.urihttp://hdl.handle.net/11603/21224
dc.language.isoen_USen_US
dc.relation.isAvailableAtThe University of Maryland, Baltimore County (UMBC)
dc.relation.ispartofUMBC Mathematics Department Collection
dc.relation.ispartofUMBC Student Collection
dc.rightsThis item is likely protected under Title 17 of the U.S. Copyright Law. Unless on a Creative Commons license, for uses protected by Copyright Law, contact the copyright holder or the author.
dc.rightsAttribution-NonCommercial-NoDerivatives 4.0 International*
dc.rights.urihttps://creativecommons.org/licenses/by-nc-nd/4.0/*
dc.titleModelingToolkit: A Composable Graph Transformation System For Equation-Based Modelingen_US
dc.typeTexten_US

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
2103.05244.pdf
Size:
628.83 KB
Format:
Adobe Portable Document Format
Description:

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
2.56 KB
Format:
Item-specific license agreed upon to submission
Description: