-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
Renaming discrete variables during structural simplification (plus refactoring tearing_reassemble
)
#3379
base: master
Are you sure you want to change the base?
Conversation
…of lowest-order variable
@AayushSabharwal @ChrisRackauckas this one is ready to review |
I think this looks fine, but I'm not entirely sure what makes this required? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall the refactor is great for code quality. However, since it's aimed at code quality I've been picky about wanting docstrings for everything. In addition, some parts are not clear or seem to have bugs which need to be fixed. It would also be great to get tests to make sure symbolic indexing works properly for both Shift(t, -1)(x)
and x_{k-1}
form of variables.
This should be good to merge. |
This PR does two things:
Shift(t, 1)(Shift(t, -1)(x(t))
. This PR changes it to follow the ODE convention of creating a dummy variablex_{t-1}
, such that the equation isShift(t, 1)(x_{t-1}(t))
tearing_reassemble
has been chunked a bit. Have added some comments toSystemStructure
andTearingState
as well