Open
Description
MWE:
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 DiscretProblem
s (and I am not sure what then happens if you provide these to JumpProblem
s).
Activity