fcampelo / MOEADr

R package MOEADr, a modular implementation of the Multiobjective Evolutionary Algorithm with Decomposition (MOEA/D) framework
20 stars 7 forks source link

Size of Decomposition Matrix on "writing-functions for moeadr" #4

Closed caranha closed 7 years ago

caranha commented 7 years ago

So, looking at the documentation at "writing functions", I noticed that the return value for Decomposition Strategies states that:

the function must output a _N x m_ matrix of weights, with _N_ the population size and _m_ the number of objectives.

This is not true for SLD, MSLD, or Uniform, both in the paper, and in the code. For all these three, "N" is he number of sub problems calculated by the decomposition method based on the user parameters, which (I guess) should be <= population size, but not necessarily equal to population size.

Is the documentation wrong, or the code wrong?

fcampelo commented 7 years ago

The documentation is incorrect: where you read "population size" please replace by "number of subproblems" (which may or may not be equal to the population size, although it usually is).

I'll correct the documentation right away.

Cheers