### Is your feature request related to a problem? Please describe. During the optimization progress I'd like to monitor the improvement of the cost function. ### Describe the solution you'd like. Add the cost of the best candidate so far as a parameter to the callback. ### Describe alternatives you've considered. Print out or overwriting a global variable in the cost function. ### Additional context (e.g. screenshots, GIFs) _No response_