-
Notifications
You must be signed in to change notification settings - Fork 38
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
linearize!(model, analytic=true, ... #122
Comments
Yes, I know. There are also other situations where analytic=true does not work. I spent some time on it, but did not find a solution. I have documented this in the description of linearize (analytic=true might not work) and used analytic=false (numeric linearization) as a default - which should always work. A workaround is to perform linearization numerically with Double64, which should give an even higher precision as analytic linearization with Float64.
|
below my proposal for Modification of file
|
I tried to linearize a simple electrical system and received an error message when using option
analytic=true
linearize!(model, analytic=false, ...
==> OKsimulate!(...
==> OKThe problem occurs when
getDerivatives!
is called fromForwardDiff.Jacobian
, then_leq_mode.residual_value
is set to:which can not be handled by function
LinearEquationsIteration
.generated function getDerivatives!
versions
"Modia" version = "0.5.0"
"ModiaBase" version = "0.7.5"
"ModiaLang" version = "0.8.1"
Julia: Version 1.5.3 (2020-11-09)
platform: LINUX x86_64
###PS:
After reading your paper from the ongoing MODELICA conference, I had a better understanding but couldn't resolve it.
The text was updated successfully, but these errors were encountered: