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

Constraining output in ScipyRootFinding. #415

Open
sagarwal-atg opened this issue Mar 21, 2023 · 1 comment
Open

Constraining output in ScipyRootFinding. #415

sagarwal-atg opened this issue Mar 21, 2023 · 1 comment
Labels
question Further information is requested

Comments

@sagarwal-atg
Copy link

sagarwal-atg commented Mar 21, 2023

Hey,

I am using ScipyRootFinding to find the roots of a nonlinear system. I want to make sure the solution stays within some min_x and max_x.

Any advice or pointers? I checked the parameters for all solvers and nothing jumped out.

Thanks

@mblondel
Copy link
Collaborator

mblondel commented Apr 5, 2023

I don't think that's possible with ScipyRootFinding. So your root finding problem has a non-unique solution and you know that there exists a solution in [min_x, max_x]? One way would be to solve min_x ||f(x)||^2 s.t. x in [min_x, max_x] instead. We recently merged LBFGSB, which could be use for that pupose.

@mblondel mblondel added the question Further information is requested label Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants