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

Is it possible to realize some stop condition? #11

Open
oradzhabov opened this issue Dec 10, 2021 · 2 comments
Open

Is it possible to realize some stop condition? #11

oradzhabov opened this issue Dec 10, 2021 · 2 comments

Comments

@oradzhabov
Copy link

It looks like yours solution is fastest in Python ODE tasks.

In solve_ivp() we have events which allow to implement stop condition during ODE process solving.
Is it possible to find/implement something similar in NumbaLSODA?

It could be useful if I dont know real parameter's range of integration but know where it should be stopped during entire integration process.

Thanks.

@Nicholaswogan
Copy link
Owner

Nope. The code does not have any build-in event finding. It would be possible to implement, but I think it would be a lot of work. The best way might be to re-write solve_ivp in C++: https://github.com/scipy/scipy/blob/master/scipy/integrate/_ivp/ivp.py#L156

@GenerelSchwerz
Copy link

Not that it means much coming from a random, but I'd love to see support on this. Just food for thought. 👍

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

No branches or pull requests

3 participants