NLsolve.jl icon indicating copy to clipboard operation
NLsolve.jl copied to clipboard

Control Over Jacobian Updates and Caching

Open ChrisRackauckas opened this issue 8 years ago • 4 comments

https://github.com/JuliaNLSolvers/NLsolve.jl/blob/master/src/newton.jl#L116

The Jacobian is repeatedly used in \ but it's not factorized, making this a lot more expensive.

ChrisRackauckas avatar Aug 03 '17 14:08 ChrisRackauckas

But the jacobian gets updated every iteration?

KristofferC avatar Aug 03 '17 14:08 KristofferC

But the jacobian gets updated every iteration?

Where? I didn't see the line for that. I was looking for it because I wanted to see how to control that behavior but didn't see it at all.

ChrisRackauckas avatar Aug 03 '17 14:08 ChrisRackauckas

https://github.com/JuliaNLSolvers/NLsolve.jl/blob/master/src/newton.jl#L110

KristofferC avatar Aug 03 '17 14:08 KristofferC

Oh 👍. Then the question changes to allowing for a user callback for controlling when it should update, i.e. allowing for quasi-Newton methods. Also being able to take the (factorized) Jacobian in as well.

ChrisRackauckas avatar Aug 03 '17 14:08 ChrisRackauckas