Closed Thyra closed 1 year ago
Set store_trace
to true
in Options
. See, here https://wildart.github.io/Evolutionary.jl/stable/tutorial/#General-options
Ha! I'm surprised I didn't think of that myself, thank you. Would you consider adding that to the end of this paragraph to make it more clear? Something like "In order to extend trace record, you need to override trace! function providing specialize function behavior on one of specific parameters and set store_trace
to true
"
I've been trying to add additional information to the trace because I have a quite computationally heavy optimization and would like to save the best minimizer every X iterations rather than just at the end (and risk losing everything if the optimization does not finish). I've tried following the example in the documentation but it seems my new
trace!
function is not even being called! Neither when I define it asEvolutionary.trace!
rather than justtrace!
. I am using Julia version 1.8.3 and Evolutionary v0.11.1. Might also just me being very new to Julia, but here is a minimal (non-)working example: