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

Automatic calculation of resting state #1064

Open
romainbrette opened this issue Apr 2, 2019 · 0 comments · May be fixed by #1174
Open

Automatic calculation of resting state #1064

romainbrette opened this issue Apr 2, 2019 · 0 comments · May be fixed by #1174

Comments

@romainbrette
Copy link
Member

I think we discussed that at some point, but can't remember the discussion. It would be nice to have a way to automatically calculate the resting state of a model, ie, X such that f(X)=0, where dX/dt=f(X). This would be particularly useful for HH-type equations, and for model fitting.

A trivial idea is simply to run the model with a large dt. A better idea is to use a root finding algorithm, which would conceptually amount to running the model with a different state updater. For example, the secant method. The only technical difficulty here is that the method uses the previous two time steps. This could be solved for example by duplicating the variables, and having the state updater make a copy of one set to the other. Alternatively, we use any gradient-free method from scipy.optimize, with the function f (that might actually be simpler).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 participant