-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
structural_simplify for io system can lead to input derivatives in RHS #3078
Comments
Are you sure your model is correct? If you manually simplify the This error typically occurs when the model is actually differentiating the input, and if that's the case, it cannot be represented on statespace form. |
Thanks for the input! I was able to change my model by applying a common simplification... I need to investigate further why this was happening... |
Describe the bug 🐞
In certain cases,
structural_simplify(sys, (in, out))
can lead to derivatives of the input showing up in the rhs of the simplified system.Expected behavior
Never have derivatives of inputs in the equations.
Minimal Reproducible Example 👇
I have an MWE, which I constructed by stripping as many parameters, states, and equations from a much larger system. I don't know if it has a meaningful physical interpretation anymore, but still, it shows that tearing gets rid of the differential equation
Dt(ψ_d) ~ I_d + V_d
even though this leads to derivatives of inputs.Output⚠️
The output shows a differential of an input in the rhs.
Environment (please complete the following information):
using Pkg; Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()
The text was updated successfully, but these errors were encountered: