-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Model linearization fails when no parameter is used #2400
Comments
The problem here is not the lack of parameters, it's the lack of inputs. If you are only after the state jacobian (the
A side note, |
Thanks for the tips @baggepinnen. However, given what you say, can you explain why the linearizarion works (understand does not error) if a dummy parameter is passed, even on a structurally simplified model? |
Probably a coincidence since the example is very small and simple. It will not work in general. |
@baggepinnen OK. Should there be some documentation or more explicit error in case of absence of input? Or a generic fallback returning empty B, C, D matrices ? |
I'll close this for now as the use case seems a bit different now with v9 |
Describe the bug 🐞
When attempting linearization of a MTK model without parameters, the
linearize
call fails withExpected behavior
Linearization of MTK models should work even in the absence of additional parameters
Minimal Reproducible Example 👇
parameter-less version of the example provided in https://discourse.julialang.org/t/differential-equation-with-periodic-orbit-can-diffeq-jl-determine-the-period/107982/8
Error & Stacktrace⚠️
Already provided
Environment (please complete the following information):
using Pkg; Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: