You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I was wondering if there are any ways to display to the terminal the information during the optimization (something like a verbosity clause, e.g. the message you'd get when running pygmo: https://esa.github.io/pygmo2/tutorials/nlopt_basics.html?highlight=verbosity).
It could also maybe be the option to include a user-defined callback function called at each iteration, where the function can access the status of the algorithm or something.
Apologies if I just missed it, but I couldn't find it in the documentation/examples...
Thanks!
The text was updated successfully, but these errors were encountered:
f, bounds, _ = Metaheuristics.TestProblems.get_problem(:discus);
# show information on the optimization process when debug=true
my_options =Options(debug=true)
# optimize and get results
result =optimize(f, bounds, ECA(options=my_options))
Example 2
Besides, you can pass a logger function to optimize.
f, bounds, _ = Metaheuristics.TestProblems.get_problem(:discus);
# logger function is called each iterationmy_logger(status) =println("Iteration: ", status.iteration, " | f calls: ", nfes(status), " | Min: ", minimum(status))
result =optimize(f, bounds, ECA(); logger = my_logger)
Hi,
I was wondering if there are any ways to display to the terminal the information during the optimization (something like a verbosity clause, e.g. the message you'd get when running pygmo: https://esa.github.io/pygmo2/tutorials/nlopt_basics.html?highlight=verbosity).
It could also maybe be the option to include a user-defined callback function called at each iteration, where the function can access the status of the algorithm or something.
Apologies if I just missed it, but I couldn't find it in the documentation/examples...
Thanks!
The text was updated successfully, but these errors were encountered: