Open djbower opened 1 month ago
Optimistix does support this! It looks like you're probably running into a known issue when using an old version of Equinox and a new version of JAX. Upgrading to the latest version of Equinox (by coincidence I've also just released v0.11.8, give it a try!) should probably resolve this.
Indeed it was an easy fix - I'm running with equinox 0.11.8 and Jax 0.4.33 and all works as expected now. Interestingly, with Jax 0.4.34 I ran into a different error.
For JAX 0.4.34 -- I've just ran into an issue here myself; possibly it's the same one! I've got a possible fix for Optimistix in https://github.com/patrick-kidger/optimistix/pull/87 and for Lineax in https://github.com/patrick-kidger/lineax/pull/111 .
(For reference, Optimistix depends on both Lineax and Equinox, which is why I'm mentioning them here.)
Can you give those a try and see if those fix things for you? If so, great, and I'll do a release! If not I'd love to have a MWE.
I just wanted to confirm that Optimistix supports nested root finders? I'm getting a ValueError related to closure:
If so, I'll spend more time trying to figure out the problem.