Skip to content
Prev 171536 / 398503 Next

Tracing gradient during optimization

It looks like you found a solution, but if you find yourself in this situation again using optim, then one approach is to modify your function that you are optimizing (or write a wrapper for it) to produce the tracing information for you.