esa / pygmo2

A Python platform to perform parallel computations of optimisation tasks (global and local) via the asynchronous generalized island model.
https://esa.github.io/pygmo2/
Mozilla Public License 2.0
450 stars 56 forks source link

NSPSO doesn't work correctly with integer variables #37

Closed Tomalwo closed 4 years ago

Tomalwo commented 4 years ago

In my tests, NSPSO doesn't appear to work correctly with integer variables:

After the first population, which works fine, subsequent populations have non-integer values even for "integer" variables.

The same is true for MOEA/D, but, according to the documentation, it doesn't handle integers. So perhaps the issue is not with the implementation of NSPO, but with the documentation?

Thanks! Thomas

PS: With NSGA-II, integer handling works fine, which is why I think that the issue isn't on my end.

darioizzo commented 4 years ago

Indded thanks for the report. In the docs the algortihm should be marked as M-U not M-U-I @bluescarni has a PR opened that may include this change maybe?

bluescarni commented 4 years ago

Thanks for the report, I'll fold the changes in #35 and esa/pagmo2#410.

bluescarni commented 4 years ago

Closing this as the docs have been update in both PRs.