Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reuse of constant parts of Jacobians
Purpose - A Jacobian can have constant parts, meaning equations that are independent of the seed vector. These equations only need to be evaluated once per Jacobian evaluation. How to use - Use new debug flag `symJacConstantSplit` to generate Jacobians with separated constant part. This will also use PostOptModule removeSimpleEquations in function optimizeJacobianMatrix. Changes - Added SparsePatternCref type in BackendDAE.mo. - Split equation system for jacobian in first with all directional derivative equations and additional systems for constant equations, which are independente of seed variables and therefore constant. - Added constantEqns in SimCode.JAC_COLUMN to strore constant part of Jacobian. - Adapted C code generation to generate constant equations. - Evaluate constant equations bevor evaluating directional derivativs for Jacobian. - Added debug flags symJacConstantSplit. - Updated testsuite due to changed logs. - Added testcase for reuse constant parts of Jacobian.
- Loading branch information
1 parent
065a64f
commit 5aea5c3
Showing
28 changed files
with
1,614 additions
and
1,346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.