Closed FFroehlich closed 9 months ago
I'm afraid this example doesn't run: TypeError: Model.simulate() missing 2 required positional arguments: 'y0' and 'ym'
.
For something like this, would you be able to write a fairly short (10 lines?) MWE demonstrating the sort of behaviour you're after?
The implementation of Newtons method doesn't actually implement line search and any implementation is bound to run into the same problems as https://github.com/patrick-kidger/diffrax/issues/368, so avoiding non-finite values in the first place is the way to go.
Running into
NaN
values during rootfinding in optimistixs errors rather than decreasing step size. This should probably also be fixed in lineax, which does not appear to check inputs (vector, and potentially operators) for non-finiteness.Can be reproduced using the following code:
produces