fcampelo / DEMO

Differential Evolution for Multiobjective Optimization and its variants
27 stars 18 forks source link

Query regarding implementation of DTLZ test suit #6

Closed Mathi50 closed 2 years ago

Mathi50 commented 3 years ago

Dear Felipe,
I tried to implement DTLZ test problems using the following code,

https://github.com/fcampelo/DEMO/blob/master/Octave-Matlab/DTLZ/dtlz1.m

I could not run the code with 2 or 3 objectives with 3 variables. I am getting the error like,

Error using dtlz_1 (line 27) Using k = 5, it is required that the number of dimensions be n = (M - 1) + k = 10 in this case.

Can you help me to clear this?

Thank you, Chandana PhD student

AmirHosein-Ahf commented 2 years ago

It's because of the definition of the DTLZ functions. The NO of objectives and No of variables are not independent. It means that the 3Obj problem has 6 variables

fcampelo commented 2 years ago

Hi Chandana,

@AmirHosein-Ahf is right. Please check the explanation of the DTLZ functions, e.g., here: https://esa.github.io/pagmo2/docs/cpp/problems/dtlz.html ; or the original definitions here: https://link.springer.com/chapter/10.1007/1-84628-137-7_6.

Cheers, Felipe