Modelica2Pyomo: a tool to translate Modelica models intoPyomo optimization models
Francesco Casella, Matteo Luigi De Pascali, Lorenz T. Biegler, Emanuele Martelli
Tasks involving Modelica models often do not simply investigate the dynamic behavior of a system, but rather want to characterize also possible optimal control strategies according to suitable criteria. Unfortunately, since Modelica does not support out-of-the-box optimization features, users are often forced to use other tools to code again the system model for optimization studies. For this reason, the authors present Modelica2Pyomo, an open-source tool to translate Modelica models into Pyomo optimization programs, leveraging on their flat Base Modelica representation. This work illustrates the main features of Modelica2Pyomo, including automatic variables and constraints normalization, expressions manipulation and initialization via Modelica simulation results. To demonstrate the capabilities of this framework, two examples are showcased, including an industrial relevant open-loop optimal control problem of a solid-oxide fuel cell.
Simulation and Optimization
202