Optim.jl, showing trace

You can pass a “callback” fonction that will be called at each iteration, I think you’ll have access to more things in there, see this example :