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

Modify `Optim.Options`

Open thchr opened this issue 7 months ago • 2 comments

I had hoped to be able to change an individual option in Optim.Option, inheriting all other options, but could not find a way. Is it already implemented?

I.e., something like

o = Optim.Options(; f_abstol = 1e-4, g_abstol=1e-3)
modified_o = Optim.Options(o; show_trace = true) # now with f_abstol = 1e-4, g_abstol=1e-3, show_trace = true

thchr avatar Jun 06 '25 13:06 thchr

It is not possible, but may be a good idea to implement. Would you be up for giving it a go?

pkofod avatar Jun 08 '25 12:06 pkofod

Sure; PR'd in #1172.

thchr avatar Jun 09 '25 19:06 thchr

Fixed by #1172.

thchr avatar Aug 24 '25 08:08 thchr