Hello,
I used both NSGA-II and SPEA2 to solve a multiobjective optimisation problem with 2 objectives. I seem to get better solutions using SPEA2. I would like to measure the diversity of the solutions in the Pareto front for both algorithms. I didn't record the final population, but recorded the hypervolume and pareto front at each generation. I don't know the true Pareto front, I used a slightly worse point as a reference point to calculate the hypervolume. Can I use the deap.benchmarks.tools.diversity(first_front, first, last) to measure the diversity of the pareto front at the final generation; what is the first and last? Here is one example of my Pareto front, is the first item 173.384071,100.0 and the last
is 2.611496,7.00?
173.384071,100.0
45.082696,80.0
34.562327,79.0
24.557862,68.0
14.550288,50.0
13.726517,33.0
13.479549,24.0
13.439238,23.0
13.430936,22.0
13.409498,20.0
9.029356,19.0
7.88063,18.0
2.611496,7.00
Thanks for your help.