{"title":"用于高效事件检测的微分代数方程的稀疏因果化","authors":"Christoph Hoger","doi":"10.1109/EUROSIM.2013.69","DOIUrl":null,"url":null,"abstract":"Models written in multidomain simulation languages like Modelica describe hybrid systems of differential and algebraic equations (hybrid DAEs). Algebraic events are an integral part of those models. Their detection in general requires numerical root-finding. This method can be optimized. We show that state-of-the art simulators force unnecessary evaluations during root-finding: The calculation of a residual function is always preceded by the solution of the complete DAE for the active time step. Models are usually composed of hierarchical elements. Therefore, it is quite common, that not the whole DAE needs to be computed for a single event function, although some dependencies exist. By the application of the well known method of causalisation those dependencies can be detected. We show how a subset of the solution algorithm, called a sparse causalisation can be derived from a usual causalisation for a given event variable. When solving the sparse causalisation, the event variable is computed correctly, i.e. it holds the same result as after a complete solution. Depending on the internal structure of the model, the application of sparse causalisation can significantly reduce the amount of work necessary to detect an event.","PeriodicalId":386945,"journal":{"name":"2013 8th EUROSIM Congress on Modelling and Simulation","volume":"76 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2013-09-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":"{\"title\":\"Sparse Causalisation of Differential Algebraic Equations for Efficient Event Detection\",\"authors\":\"Christoph Hoger\",\"doi\":\"10.1109/EUROSIM.2013.69\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Models written in multidomain simulation languages like Modelica describe hybrid systems of differential and algebraic equations (hybrid DAEs). Algebraic events are an integral part of those models. Their detection in general requires numerical root-finding. This method can be optimized. We show that state-of-the art simulators force unnecessary evaluations during root-finding: The calculation of a residual function is always preceded by the solution of the complete DAE for the active time step. Models are usually composed of hierarchical elements. Therefore, it is quite common, that not the whole DAE needs to be computed for a single event function, although some dependencies exist. By the application of the well known method of causalisation those dependencies can be detected. We show how a subset of the solution algorithm, called a sparse causalisation can be derived from a usual causalisation for a given event variable. When solving the sparse causalisation, the event variable is computed correctly, i.e. it holds the same result as after a complete solution. Depending on the internal structure of the model, the application of sparse causalisation can significantly reduce the amount of work necessary to detect an event.\",\"PeriodicalId\":386945,\"journal\":{\"name\":\"2013 8th EUROSIM Congress on Modelling and Simulation\",\"volume\":\"76 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2013-09-10\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"2\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2013 8th EUROSIM Congress on Modelling and Simulation\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/EUROSIM.2013.69\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2013 8th EUROSIM Congress on Modelling and Simulation","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/EUROSIM.2013.69","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Sparse Causalisation of Differential Algebraic Equations for Efficient Event Detection
Models written in multidomain simulation languages like Modelica describe hybrid systems of differential and algebraic equations (hybrid DAEs). Algebraic events are an integral part of those models. Their detection in general requires numerical root-finding. This method can be optimized. We show that state-of-the art simulators force unnecessary evaluations during root-finding: The calculation of a residual function is always preceded by the solution of the complete DAE for the active time step. Models are usually composed of hierarchical elements. Therefore, it is quite common, that not the whole DAE needs to be computed for a single event function, although some dependencies exist. By the application of the well known method of causalisation those dependencies can be detected. We show how a subset of the solution algorithm, called a sparse causalisation can be derived from a usual causalisation for a given event variable. When solving the sparse causalisation, the event variable is computed correctly, i.e. it holds the same result as after a complete solution. Depending on the internal structure of the model, the application of sparse causalisation can significantly reduce the amount of work necessary to detect an event.