I want to know how to trigger early stopping for scipy optimization algorithms like differential evolution, dual annealing, and basin hopping.
I know you can call a callback function that returns True or False, but, I wanted to know how to trigger the whole algorithm to stop when the fitness function converge to the same value for several itertaions. For instance, if the maxiter is set to 250, but the fitness function converged at 100 iterations, how do i trigger it to stop when it is no longer making any improvements?