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
@variables t X(t)
@parameters p d
u0 = [X =>1.0]
ps = [p =>1.0, d =>0.2]
dprob =DiscreteProblem(u0, (0.0, 1.0), ps) # Works
dprob =DiscreteProblem(u0, 1.0, ps) # ERROR: MethodError: no method matching DiscreteProblem(::Vector{Pair{Num, Float64}}, ::Float64, ::Vector{Pair{Num, Float64}})
I think this works for all other problem types, but apparently not for DiscretProblems (and I am not sure what then happens if you provide these to JumpProblems).
The text was updated successfully, but these errors were encountered:
MWE:
I think this works for all other problem types, but apparently not for
DiscretProblem
s (and I am not sure what then happens if you provide these toJumpProblem
s).The text was updated successfully, but these errors were encountered: