which works really well.
The issue is, however, that I get a couple allocations whenever I call this. Is there any way to reduce these by e.g. initalizing the problem once and then updating it later?
The functions f and g stay constant over time, although their arguments bla change over time.
Okay, one more thing: It seems to be not as trivial to set the Jacobian by hand (I cannot resort to AD). I found this post but unfortunately NonlinearSolve.jl still tries to compute the Jacobian using AD.