Skip to content

add option to set state priority as argument to structural_simplify #2048

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

baggepinnen
Copy link
Contributor

Copy link
Member

@YingboMa YingboMa left a comment

Choose a reason for hiding this comment

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

Still needs tests.

@baggepinnen
Copy link
Contributor Author

I added the system from https://discourse.julialang.org/t/why-is-modelingtoolkit-simplifying-this-way/96872 as test, but the fix in this PR does not actually help, the problem appears to have occurred already in the alias-elimination step, and state priorities are not considered until tearing.

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.

Set state priority from outside of component definition
2 participants