You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interestingly, a defaults to 0 in the initialization system:
julia> prob.f.initializeprob.f.sys
Model sys with 1 equations
Unknowns (1):x(t) [defaults to a]
Parameters (2):
a [defaults to 0.0]
t
This is because schedule.dummy_sub contains D(x) => a and as a result it sets the default value for a to be the default dummy derivative guess. I'm confused as to why this happens.
For example,
the exact solution to the
initialization_eqs
isx(0) = -1
. If we show the trace, you can see that it begins with an initial value ofx(0) = 0
When we change the guess for
x(t)
to a Float64, i.e.,@variables x(t) [guess = -1.0]
, it respects the guess:cc: @AayushSabharwal
The text was updated successfully, but these errors were encountered: