The figures below are the result of R-NSGA-II algorithm in solving DTLZ2 problem with 3 objectives. The green rhomboids represent the reference points, (0.2 0.5 0.6) and (0.7 0.8 0.5).
the result in Figure 1 looks good. However, I do not know what is wrong with the Inverted generational distance (IGD) curve.
To calculate the IGD values I have used this Matlab code.
maxGen = 200;
for gen =1:maxGen
Distance = min(pdist2(PF,popObj),[],2);
IGD_values(gen) = mean(Distance);
end