Stop conditions are necessary to ensure that the optimization terminates. These stop criteria can either simply allow a certain number of loops or depend on the convergence behavior of the optimization.