Skip to content

error for hybrid continuous/discrete systems #2765

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

Merged
merged 3 commits into from
Jun 8, 2024
Merged

Conversation

baggepinnen
Copy link
Contributor

This PR detects hybrid continuous/discrete systems and throws an error indicating that they are not yet supported by the default MTK compiler, indicating that JuliaSimCompiler is currently required for correctness.
The tests are also deactivated.

@ChrisRackauckas
Copy link
Member

@test_nowarn solve(prob, Tsit5(); kwargshandle = KeywordArgSilent)

@mtkbuild sys = ODESystem(eqs, t; parameter_dependencies = [kq => 2kp],
discrete_events = [[0.5] => [kp ~ 2.0]])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought directly defined events were fine? What's the issue here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The equations used here are still clocked, this test adds a manually defined discrete event in addition to the clocked system

@ChrisRackauckas
Copy link
Member

Handle the typos first.

@ChrisRackauckas ChrisRackauckas merged commit 352e86e into master Jun 8, 2024
21 of 25 checks passed
@ChrisRackauckas ChrisRackauckas deleted the no_clocks branch June 8, 2024 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants