How to extract convergence status in Optim.jl?

I ran several optimization problems with different models, but some didn’t seem to calculate the result but spit out some random results. So, I would like to know how to extract the status of the ‘optimized’ results, but I cannot know quickly. I know if we just call the object of the ‘optimize’, then it shows the status, but I would like to call it and assign it to a data frame column. For example, if the code for calling the status of success or failure is status, I would expect to call the result is

Object = optimize(function(x),x,LBFGS(); autodiff = :forward
result = Object.status

Is this possible? Can someone help with this?


1 Like

Checked! Thanks a lot!

1 Like