jMetal / jMetalPy

A framework for single/multi-objective optimization with metaheuristics
https://jmetal.github.io/jMetalPy/index.html
MIT License
498 stars 150 forks source link

There is a BUG in jmetal/util/observer.py (about IGD indicator). #115

Closed Amgroot-w closed 2 years ago

Amgroot-w commented 2 years ago

A bug occurred when I run "dynamic_nsgaii_solving_fda2.py", it said 'XA must be a 2-dimensional array.' I checked out the observer.py and found out that in line #169, when computing the IGD indicator using InvertedGenerationalDistance(), a list of solutions is passed as input parameter, instead of a numpy array. And I noticed that ajnebro, one of the contributor of jMetalPy changed this input parameter type on 17 Feb 2020, but maybe forgot to update the "observer.py".

benhid commented 2 years ago

Thank you @Amgroot-w,

You are right. I just updated the develop branch with a fix :-)