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

callback argument support for Metaheuristics

Open Richert opened this issue 2 years ago • 0 comments

Providing the cb keyword argument to a GalacticOptim.solve call that uses an optimizer from the Metaheuristics.jl package currently yields the warning 'Callback argument is currently not used by Metaheuristics.AbstractAlgorithm' and is ignored. However, Metaheuristics.optimize provides a keyword argument logger that could easily be used to provide any callback function to Metaheuristics optimizers that merely serve the purpose of visualizing the current status of the optimization process.

I thus suggest to provide the cb value to logger and display a warning instead that warns the user that Metaheuristics only supports callback functions for visualization purposes at the moment.

Richert avatar Mar 09 '22 19:03 Richert