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

Optim.OptimizationState

Open nickbrady opened this issue 6 months ago • 3 comments

There seems to be some misalignment of the documentation with the Optim.OptimizationState: https://docs.sciml.ai/Optimization/stable/API/optimization_state/

The fields in OptimizationState in the documentation are listed as follows:

Fields

iter: current iteration
u: current solution
objective: current objective value
gradient: current gradient
hessian: current hessian
original: if the solver has its own state object then it is stored here

but using the following code:

using Optim
println(fieldnames(Optim.OptimizationState))

gives 1: iteration 2: value 3: g_norm 4: metadata

nickbrady avatar Aug 02 '24 17:08 nickbrady