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

New solvers #3

Open
5 tasks
patrick-kidger opened this issue Oct 3, 2023 · 0 comments
Open
5 tasks

New solvers #3

patrick-kidger opened this issue Oct 3, 2023 · 0 comments
Labels
feature New feature

Comments

@patrick-kidger
Copy link
Owner

  • Anderson acceleration
  • LBFGS
  • Affine

Powell's (unconstrained) derivative free optimisers:

  • UOBYQA
  • NEWUOA

On an affine solvers: such systems can be handled with a single linear solve. JAX can detect affine functions via

import jax
import jax.interpreters.partial_eval as pe

def is_affine(f, *args, **kwargs):
    jaxpr = jax.make_jaxpr(jax.jacfwd(f))(*args, **kwargs)
    _, used_inputs = pe.dce_jaxpr(jaxpr.jaxpr, [True] * len(jaxpr.out_avals))
    return all(not x for x in used_inputs)
@patrick-kidger patrick-kidger added the feature New feature label Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant