-
-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Order of sensitivites #1886
Comments
Some further information: Placing a debug on line 241 of solution.py (end of |
…vities #1886 added fix within processed variable
Describe the bug
The order of sensitivities seems to not align correctly when there are multiple sensitivities. The example below shows the sensitivity of terminal voltage SPM to D_n in two cases. Case 1 where only D_n is an input and Case 2 where D_n and b_n (negative electrolyte bruggeman coefficient) are inputs. In Case 2, it appears that the sensitivites of the terminal voltage w.r.t D_n and b_n have been switched. Seems likely a switching of order in either the building of the sensitivity rhs or when extracting from casadi.
To Reproduce
Expected behaviour
The sensitivity of terminal voltage w.r.t D_n should be independent of the number of other inputs.
Screenshots
Plot generated by above example.
The text was updated successfully, but these errors were encountered: