Skip to content

Conversation

@dreivmeister
Copy link
Contributor

Purpose

Introduces jacobianSymbolicAdjoint in the NB which generates equations to efficiently evaluate the ODE Jacobian row-wise and not column-wise i.e. compute y = J^T * x and not y = J * x.
This is needed for example in FMI 3.0 (https://fmi-standard.org/docs/3.0/#partial-derivatives).
The current focus is on robust support for scalar models.

Approach

The main changes were done in NBDifferentiate.mo and NBJacobian.mo where NBDifferentiate contains an implementation of reverse-mode AD done symbolically on the Strong Components.

@dreivmeister dreivmeister marked this pull request as draft November 7, 2025 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

COMP/OMC/New Backend Issues and pull requests related to the new backend.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants