Add Radau method for stiff problems.#263
Open
pollycoder wants to merge 4 commits intortqichen:masterfrom
Open
Conversation
rtqichen
requested changes
Feb 13, 2025
Owner
rtqichen
left a comment
There was a problem hiding this comment.
Thanks! Left a small comment.
torchdiffeq/_impl/rk_common.py
Outdated
| ######################################################## | ||
| # Assertions # | ||
| ######################################################## | ||
| if (dt <= 0).any(): |
Owner
There was a problem hiding this comment.
Is this an important edge case? If it was for debugging, let's remove it.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a Radau solver to the library.
My research involves solving highly stiff problems that the existing solvers in the library are unable to handle effectively. Radau methods are well-suited for stiff ODEs due to their A-stability and high order, making them a valuable addition to our solver collection.
While the Radau solver successfully addresses the stiff problems encountered, its current implementation is slower compared to other solvers in the library. Performance optimization is planned as a next step to improve its speed and efficiency. Further investigation into optimization techniques and potentially exploring higher-order Radau methods are considered for future improvements.