Closed rleegates closed 4 years ago
That's not the intended behavior, no. I can try to look into it.
But some code to go by would be nice :)
Okay, I got it.
...imho, it's the static line-search.
It's because the value is already checked in the line search, yes. So the cheapest thing is to only calculate the Jacobian next time around (I mean given the current setup). I've changed it here https://github.com/JuliaNLSolvers/NLsolve.jl/pull/243 you can try that branch
As the title suggests, using method newton, no linesearch. I could search the code for where this occurs, if needed. Since in my case requesting only f and then only j at the same x from fj is less efficient than requesting both simultaneously, this generates significant overhead. With fj! generating some debugging output, I get:
Is there some reason why this is the intended behavior?