esa / pagmo2

A C++ platform to perform parallel computations of optimisation tasks (global and local) via the asynchronous generalized island model.
https://esa.github.io/pagmo2/
GNU General Public License v3.0
808 stars 160 forks source link

gaco bugfix: throw if ker < 2 #491

Closed Sceki closed 2 years ago

Sceki commented 2 years ago

Bugfix for issue #490: gaco should throw if ker size is < 2

bluescarni commented 2 years ago

Thanks for the PR! Could you add a small test to check the new m_ker < 2 throwing condition?