-
-
Notifications
You must be signed in to change notification settings - Fork 217
fix: handle derivatives of time-dependent parameters #3493
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
base: master
Are you sure you want to change the base?
fix: handle derivatives of time-dependent parameters #3493
Conversation
But also test that the derivative of say a datainterpolation is non-zero still. |
Was this found to be okay / safe? |
Not completely. We don't always want the derivative of a discrete parameter to be zero. One such example is CoSimulation FMUs. The spec enables getting derivatives of outputs, and sometimes MTK needs this information (e.g. if the output of an FMU is in an equation that pantelides differentiates). I think the solution is to allow |
4d7bb2f
to
105dd72
Compare
@@ -2,7 +2,7 @@ using ModelingToolkit, OrdinaryDiffEq, Test | |||
using ModelingToolkit: t_nounits as t, D_nounits as D | |||
|
|||
sts = @variables x1(t) x2(t) x3(t) x4(t) | |||
params = @parameters u1(t) u2(t) u3(t) u4(t) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hehe
Close #3480