def es_testeiteracoes(n): result = es(fitness=rastrigin, bounds_min=-5.12, bounds_max=5.12, mu=20, lambda_=5, dimension=n, sigma_init=20, maxiter=10000) return result
def es_teste20s(n): result = es(fitness=rastrigin, bounds_min=-5.12, bounds_max=5.12, mu=20, lambda_=5, dimension=n, sigma_init=20, max_execution_time=20) return result