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

Levenberg Marquardt with box constraints? #607

Open
N9-Tails opened this issue Aug 22, 2024 · 2 comments
Open

Levenberg Marquardt with box constraints? #607

N9-Tails opened this issue Aug 22, 2024 · 2 comments

Comments

@N9-Tails
Copy link

Hello. I am wondering if there is any workarounds in the library to support box constraints during the Levenberg Marquardt optimization. Any guidance would help tremendously. Thanks in advance!

@mblondel
Copy link
Collaborator

You could try a change of variable, min f(x) s.t. L <= x <= U <-> min f(min(max(x, L), U)), potentially replacing min and max with soft approximations.

@Joshuaalbert
Copy link

As a suggesting, you can use these constraints to/from unit interval. It's faster than using something like sigmoid. https://github.com/Joshuaalbert/jaxns/blob/main/jaxns/internals/constraint_bijections.py#L11

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