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

Updated the nelson ODE function, (made it nicer to look at) and added parameters #1109

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

Conversation

nnd389
Copy link

@nnd389 nnd389 commented Oct 25, 2024

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Here are the Nelson ODE updates! Feel free to take or leave any portion of these changes. I didn't find anywhere to add figures, but the plot that this code produces just shows a funky comparison of different algorithms. When I was searching for accurate, quick algorithms to use, I discovered that lsoda produces accurate results using the saveat parameter, but I'm still unsure as to why.
Thanks!

sol1 = solve(prob, Rodas5P())
sol2 = solve(prob, FBDF())
sol3 = solve(prob, lsoda())
sol4 = solve(prob, lsoda(), saveat = 1e10)
Copy link
Member

Choose a reason for hiding this comment

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

saveat does not change the accuracy of the solution. I'm curious, what are you trying to show with this part?

@nnd389
Copy link
Author

nnd389 commented Oct 25, 2024 via email

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.

2 participants