Open CloudyDory opened 1 year ago
This is a very good comparison. This demonstrates that we need more accurate Exponential numerical methods for integrating such complex dynamics.
Welcome contributions.
For the question, can this be a reason that favors Runge-Kutta methods over other methods?
RK methods are usually more computationally expensive than the Exponential Euler method. We still recommend the exp euler.
Here are the recommandations of numerical solver on NEURON forum. Does BrainPy have something similar to NEURON's "cnexp" solver?
Thanks for this information. I have googled and did not find any information about what are cnexp
and derivimplicit
methods.
But i found two tutorials which may be useful in the future for us for developing such two numerical methods:
This may be less of an issue and more of a discussion. In BrainPy's documention on numerical solvers, it is mentioned that
This gives me the impression that Exponential Euler methods are better than the Runge-Kutta methods. However, I have checked how each numerical solver of the Hodgkin-Huxley model behaves under different integration timesteps, and I find a different result.
As we can see, the Runge-Kutta methods are quite stable with respect to the choice of
dt
. Yes, they do fail earlier than the Exponential Euler methods whendt
gets larger; but when they work, they seems to be more robust against the change indt
. I know that other simulation software, such as NEURON, also recommands against the Runge-Kutta methods. But can this be a reason that favors Runge-Kutta methods over other methods?I am using BrainPy 2.4.5. The full simulation code is attached below: