-
Notifications
You must be signed in to change notification settings - Fork 94
Description
Is there any plan to introduce support for Differential-Algebraic Equation (DAE) models in future FMI 3.0 updates for Model Exchange FMUs? Specifically, would future versions expose residuals of nonlinear systems of equations for algebraic variables from an FMU instead of solving them internally? We found some issues talking about this, but the approaches are mainly interested in model simulation and not optimization.
Handling Constraints in ModelExchange #144
Handling ODE with constraints (drift elimination for index reduced DAE) #1651
Why this matters?
- Many complex models contain internal algebraic loops, which require solving nonlinear systems at each simulation step.
- Currently, FMUs often solve these equations internally, which can increase execution time when used in optimization loops.
- If residuals of these nonlinear equations could be exposed instead of solved inside the FMU, external solvers (such as IPOPT/SNOPT) could handle them as constraints, potentially leading to better convergence and faster execution in optimization workflows.
- Since these residuals will be solved externally, the FMU should be able to differentiate them and provide the necessary Jacobians required by the external solver
Are there any ongoing discussions or plans for enabling residuals in FMI for DAE models? If not, would this be considered as a potential feature request? The model in the following issue can serve as a test example for this feature
ME-FMU - correct calling sequence to repeatedly set states, inputs and obtain derivatives #2030