In pymoo
, the following termination criteria exist for single objective optimization (docs):
termination = SingleObjectiveDefaultTermination(
x_tol=1e-8,
cv_tol=1e-6,
f_tol=1e-6,
nth_gen=5,
n_last=20,
n_max_gen=1000,
n_max_evals=100000
)
However, I want to stop the algorithm not when some f_tol
has been reached, but rather when some f_treshold
has been reached. So once my best fitness value reaches this value, I want the iteration to stop. However, there does not seem to be an option for this. Are there any work-arounds?