Function Inlining in Modelica Models

Autor: Martina Maggio, Alessandro Vittorio Papadopoulos, Johan Åkesson, Francesco Casella
Rok vydání: 2012
Předmět:
Zdroj: IFAC Proceedings Volumes. 45:1091-1094
ISSN: 1474-6670
DOI: 10.3182/20120215-3-at-3016.00193
Popis: The equation-based Modelica language allows the modeller to specify custom functions. The body of a function is an algorithm that contains procedural code to be executed when the function is called. This language feature is useful for many applications; however, the insertion of a function often prevent model optimizations that require the model to be formulated in purely declarative form by equations only. This paper discusses several non-trivial cases in which the function call and the corresponding algorithmic code can be transformed into an equivalent purely equation-based model, thus allowing further optimization. The inlining algorithms presented in the paper go well beyond the state of the art in commercial and open-source Modelica tools. (Less)
Databáze: OpenAIRE