Skip to content
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

Cannot create DiscreteProblem while providing tend only #719

Open
TorkelE opened this issue Jun 13, 2024 · 0 comments
Open

Cannot create DiscreteProblem while providing tend only #719

TorkelE opened this issue Jun 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TorkelE
Copy link
Member

TorkelE commented Jun 13, 2024

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 DiscretProblems (and I am not sure what then happens if you provide these to JumpProblems).

@TorkelE TorkelE added the bug Something isn't working label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant