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
using ModelingToolkit: t_nounits as t, D_nounits as D
@variablesY(t)
# give `p` a guess and a default, which tells initialization you want to# solve for it@parameters d p = Y [guess =1.0]
eqs = [D(Y) ~ p - d*Y]
@mtkbuild osys =ODESystem(eqs, t)
u0 = [Y =>1.0]
p = [d =>0.2]
oprob =ODEProblem(osys, u0, (0.0, 1.0), p)
oprob[osys.Y] # correct
oprob.ps[osys.p] # should be 1.0
Already reported, but just for keeping track of it. A guess is provided for p. However, its values is entirely wrong. If no guess is provided the correct value is found.
The text was updated successfully, but these errors were encountered:
Already reported, but just for keeping track of it. A guess is provided for
p
. However, its values is entirely wrong. If no guess is provided the correct value is found.The text was updated successfully, but these errors were encountered: