Gradient-based optimization when gradient is only a function of y = f(x)

It’s a bit easier to use the Optim.only_fg! wrapper:

3 Likes