-
-
Notifications
You must be signed in to change notification settings - Fork 216
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
AutoSwitch algorithm become a bit too sensitive #2569
Comments
One possibility of what's going on here is that the stiffness calculation takes into account the dt which at the start of the solve may not be settled in to the correct value. |
Maybe forcing the solver to take a few non-stiff steps before starting the check could make sense, so it "gets into the flow" a bit and then asks "okay, is it better to make the switch given what I have seen in a few steps?" Since indeed with the initial |
What computer are you running this on? I'm seeing fairly different timings from you. Specifically, I'm seeing similar times for
|
Also using sparsity to make the jacobian generation faster as discussed in https://docs.sciml.ai/DiffEqDocs/stable/tutorials/advanced_ode_example/#Choosing-Jacobian-Types seems to help a decent amount.
|
a HP omen16 laptop with i7-14650HX, RAM=16GB. I also run the code in my desktops([email protected] RAM=16GB), the results are quite the same. https://www.amazon.com/HP-Display-i7-14650HX-Dedicated-16-ae0100nr/dp/B0D1575NN4 |
Wow! I will try this later, 😀 |
When solving the same ODE (a 100-dimensional strongly slow-fast system, where the non-smooth component is approximated using hyperbolic tangent function ) problem using DifferentialEquations.jl , I noticed that ODE solving is fast on [email protected] but significantly slower on later versions
Here are the test results:
[email protected]:
[email protected]:
Here is the code, the ODE
ODE_SOC_PO
and initial stateu0
can be found in the attachment.Desktop.zip
https://discourse.julialang.org/t/ode-solving-is-fast-on-differentialequation-7-9-0-but-significantly-slower-on-later-versions/124377/11
The text was updated successfully, but these errors were encountered: