AGE-MOEA2: Adaptive Geometry Estimation based MOEA#
Example#
[1]:
from pymoo.algorithms.moo.age2 import AGEMOEA2
from pymoo.problems import get_problem
from pymoo.optimize import minimize
from pymoo.visualization.scatter import Scatter
problem = get_problem("zdt1")
algorithm = AGEMOEA2(pop_size=100)
res = minimize(problem,
algorithm,
('n_gen', 80),
seed=1,
verbose=False)
plot = Scatter()
plot.add(problem.pareto_front(), plot_type="line", color="black", alpha=0.7)
plot.add(res.F, facecolor="none", edgecolor="red")
plot.show()
[1]:
<pymoo.visualization.scatter.Scatter at 0x71bfa25a82d0>
API#
- class pymoo.algorithms.moo.age2.AGEMOEA2(self, pop_size=100, sampling=FloatRandomSampling(), selection=TournamentSelection(func_comp=binary_tournament), crossover=SBX(prob=0.9, eta=15), mutation=PM(eta=20), eliminate_duplicates=True, n_offsprings=None, output=MultiObjectiveOutput(), **kwargs)[source]
Initialize the AGEMOEA2 algorithm.
Adapted from: Panichella, A. (2022). An Improved Pareto Front Modeling Algorithm for Large-scale Many-Objective Optimization. Proceedings of the 2022 Genetic and Evolutionary Computation Conference (GECCO 2022). https://doi.org/10.1145/3512290.3528732
@author: Annibale Panichella
- Parameters:
pop_size – int The population sized used by the algorithm.
sampling –
Sampling,Population,numpy.arrayThe sampling process defines the initial set of solutions which are the starting point of the optimization algorithm. Here, you have three different options by passing(i) A
Samplingimplementation which is an implementation of a random sampling method.(ii) A
Populationobject containing the variables to be evaluated initially OR already evaluated solutions (F needs to be set in this case).(iii) Pass a two dimensional
numpy.arraywith (n_individuals, n_var) which contains the variable space values for each individual.selection –
SelectionThis object defines the mating selection to be used. In an evolutionary algorithm each generation parents need to be selected to produce new offsprings using different recombination and mutation operators. Different strategies for selecting parents are possible e.g. selecting them just randomly, only in the neighborhood, using a tournament selection to introduce some selection pressure, …crossover –
CrossoverThe crossover has the purpose of create offsprings during the evolution. After the mating selection the parents are passed to the crossover operator which will dependent on the implementation create a different number of offsprings.mutation –
MutationSome genetic algorithms rely only on the mutation operation. However, it has shown that increases the performance to perform a mutation after creating the offsprings through crossover as well. Usually the mutation operator needs to be initialized with a probability to be executed. Having a high probability of mutation will most of the time increase the diversity in the population.eliminate_duplicates – bool The genetic algorithm implementation has a built in feature that eliminates duplicates after merging the parent and the offspring population. If there are duplicates with respect to the current population or in the offsprings itself they are removed and the mating process is repeated to fill up the offsprings until the desired number of unique offsprings is met.
n_offsprings – int (default: None) Number of offspring that are created through mating. By default n_offsprings=None which sets the number of offsprings equal to the population size. By setting n_offsprings=1 a, so called, steady-state version of an algorithm can be achieved.
output – Display output used to report progress during the run.
**kwargs – Additional keyword arguments forwarded to the base genetic algorithm.
Acknowledgement#
The AGE-MOEA2 implementation in pymoo was contributed by Annibale Panichella.
Thank you for the contribution — pymoo grows through community contributions like this one.