Esempio n. 1
0
pop = GOMORS(problem=PROBLEM,
             dim=DIMENSION,
             size=POP_SIZE,
             n_objs=N_OBJS,
             max_generation=MAX_GENERATION,
             max_episode=MAX_EPISODE,
             reference=REF,
             minimize=MINIMIZE,
             stopping_rule=STOPPING_RULE,
             max_eval=MAX_EVAL,
             revolution=False)
pop.selection_fun = pop.compute_front
pop.mutation_fun = gaussian_mutator
pop.crossover_fun = multiroutine_crossover(
    routines=[nsga_crossover, random_crossover], ns=[1., 1.])
pop.embedded_ea = NSGA2
pop.mutaton_rate = MUTATION_RATE

# Parametrization
params_ea = {
    'u': MUTATION_U,
    'st': MUTATION_ST,
    'trial_method': 'lhs',
    'trial_criterion': 'cm'
}

kernel = CubicKernel
tail = LinearTail

params_surrogate = \
    {'kernel': kernel,
Esempio n. 2
0
pop = GOMORS(problem=PROBLEM,
             dim=DIMENSION,
             size=POP_SIZE,
             n_objs=N_OBJS,
             fitness_fun=PM_FUN,
             max_generation=MAX_GENERATION,
             max_episode=MAX_EPISODE,
             reference=REF,
             minimize=MINIMIZE,
             stopping_rule=STOPPING_RULE,
             max_eval=MAX_EVAL)
pop.selection_fun = pop.compute_front
pop.mutation_fun = gaussian_mutator
pop.crossover_fun = multiroutine_crossover(
    routines=[nsga_crossover, random_crossover], ns=[1., 2.])
pop.embedded_ea = MOEAD
pop.mutaton_rate = MUTATION_RATE

# Parametrization
params_ea = {
    'u': MUTATION_U,
    'st': MUTATION_ST,
    'trial_method': 'lhs',
    'trial_criterion': 'cm'
}

kernel = CubicKernel
tail = LinearTail

params_surrogate = \
    {'kernel': kernel,