예제 #1
0
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
예제 #2
0
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