Extracting gradients in optimization
Posted: Thu Feb 08, 2018 10:52 am
Hello!
I was wondering if it is possible to extract gradients when using the command "optimize()". For example storing them in an object during the subroutine which is to be optimized. Or at least get the last numerical gradients at the end of the optimization?
I have a multivariate distribution I would like to optimize, and it continously fails even though an optimum should exist. The gradients would help me analyse my problem.
I was wondering if it is possible to extract gradients when using the command "optimize()". For example storing them in an object during the subroutine which is to be optimized. Or at least get the last numerical gradients at the end of the optimization?
I have a multivariate distribution I would like to optimize, and it continously fails even though an optimum should exist. The gradients would help me analyse my problem.