-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Remake does not update parametric initial conditions #648
Comments
Thanks for pointing this out. I should have phrased the reply in the linked issue a bit better. |
Ah ok, sorry for the misunderstanding I'll keep an eye on SciML/SymbolicIndexingInterface.jl#47 and can easily work around it using Thanks! |
This now works: julia> prob2 = remake(prob, u0 = Dict(), p = [x0 => 9.0], use_defaults = true)
ODEProblem with uType Vector{Float64} and tType Float64. In-place: true
timespan: (0.0, 10.0)
u0: 2-element Vector{Float64}:
9.0
0.0
|
That shouldn't be the case, dependencies should always be handled? |
That would be breaking. Prior to this |
I wouldn't call that breaking. It's a bug fix. I think it's clear that any user would expect |
So if the defaults also include constant values |
Also, I'm calling it breaking because MTK tests rely on this behavior of ignoring defaults. I think they'll also pass if we only ignore constant-valued defaults, but am not sure |
I think we'd ideally error if any given constraints cannot be satisfied. I'm not sure how easy that is to do though, but that would be the most ideal situation. |
Should |
No, just functions of other parameters. |
And if the user explicitly provides an alternate value (e.g. |
I'd prefer error yes |
Actually, it should act like the initialization stuff. So you always want to make sure the "current" equations are satisfied. Anything put into |
"Removing that equation" is modifying the system, which |
Remake still does not appear to update initial conditions that are dependent on parameters. Following up from this issue where supposedly this was fixed in #644
Would expect prob2.u0 = [9.0, 0.0]
The text was updated successfully, but these errors were encountered: