Skip to content

Multiobjective Evolutionary Algorithm Based on Decomposition (MOEA/D)

A decomposition method for problems with several objectives.

MOEAD

MOEAD(*, neighbors=20, decomposition='tchebycheff', theta=5.0, crossover=None, mutation=None, space='encoded', operators=None, update='steady', max_archive=None, **kwargs)

Multiobjective Evolutionary Algorithm Based on Decomposition (MOEA/D).

MOEA/D turns the problem into N scalar subproblems, one per weight vector, and keeps one solution for each. The weight vectors are the Das and Dennis lattice on the unit simplex, and each subproblem has a neighborhood: the T subproblems with the closest weight vectors (itself included). Each iteration visits the subproblems in order. For subproblem i it picks two different neighbors at random, crosses their solutions to one child and mutates it, evaluates the child, updates the ideal point z (the best value of each objective found so far), and then the child replaces the solution of every neighbor j whose subproblem it solves at least as well.

Parameters

  • pop_size: the number of subproblems wanted (default 100). The weights are the largest Das and Dennis lattice with at most pop_size points, so the population may be smaller: for 3 objectives, 100 gives 91 subproblems and 300 gives 300. For 2 objectives every size is exact.
  • neighbors: T, the size of each neighborhood (default 20). It is reduced to the number of subproblems when larger.
  • decomposition: "tchebycheff" (the default, used in the paper's continuous tests), "weighted_sum" (reaches only the convex parts of a front) or "pbi" (penalty-based boundary intersection).
  • theta: the penalty factor of "pbi" (default 5).
  • crossover: ypea.operators.Crossover or None. The default (None) is the paper's simulated binary crossover with index 20 and rate 1, SBX(prob=1.0).
  • mutation: ypea.operators.Mutation or None. The default (None) is the paper's polynomial mutation with index 20 and rate 1/n, PolynomialMutation().
  • space, operators: native operators, as in NSGAII
  • update: "steady" or "generational" "steady" (the default) follows the paper: each child is evaluated on its own and updates the population before the next child is bred, so a vectorized objective or an executor gives no speed up. "generational" breeds all N children of an iteration from the population at its start and evaluates them in one call, then applies their updates in subproblem order. This variant suits costly or parallel objectives.
  • max_archive: largest size of Result.front. None (default) keeps every non-dominated solution.

The paper's external population EP is not kept, because every run already keeps the exact archive of non-dominated solutions (Result.front). The objectives are used as they are (no normalization), with each objective turned into minimization first.

Constraints. A child is compared with a neighbor's solution by the problem's own rule, applied to the subproblem values: with Deb's feasibility rules the smaller total violation wins and equal violations compare the subproblem values, and with constraints="penalty" the values g + penalty * violation are compared. The child replaces the solution when it is at least as good (the paper's "less than or equal"). The ideal point uses every evaluated solution, feasible or not.

Reference: Q. Zhang and H. Li (2007), MOEA/D: A multiobjective evolutionary algorithm based on decomposition, IEEE Transactions on Evolutionary Computation 11(6), 712 to 731. I. Das and J. E. Dennis (1998), Normal-boundary intersection, SIAM Journal on Optimization 8(3), for the weight vectors.

Example

import ypea
from ypea.benchmarks import pareto_front, zdt1
from ypea.indicators import igd

problem = ypea.Problem(
    ypea.Real("x", shape=30, lb=0, ub=1),
    lambda sol: zdt1(sol.x),
    vectorized=True,
    n_obj=2,
    name="zdt1",
)

alg = ypea.MOEAD(max_nfe=10_000)
result = alg.solve(problem, seed=1)

true_front = pareto_front("zdt1", 500)
score = igd(result.front.obj_values, true_front)
print(len(result.front), score)
316 0.031274973995839034

Differs from Python: MATLAB draws its own random numbers, so the front size and IGD differ from Python's.

problem = ypea.Problem( ...
    vars=ypea.Real("x", shape=30, lb=0, ub=1), ...
    objective=@(sol) ypea.benchmarks.zdt1(sol.x), ...
    vectorized=true, ...
    n_obj=2, ...
    name="zdt1");

alg = ypea.MOEAD(max_nfe=10000);
result = alg.solve(problem, seed=1);

true_front = ypea.benchmarks.pareto_front("zdt1", 500);
score = ypea.indicators.igd(result.front.obj_values, true_front);
fprintf("%d %.17g\n", length(result.front), score)
347 0.011238029873319001

Front on ZDT1

Front found by MOEA/D on ZDT1
MOEA/D with default settings on ZDT1 with 10 variables, 10 000 evaluations (seed 1), a separate run from the example above. Each dot is one solution of result.front, and the dashed line is the true front.