Project-Platypus / Platypus

A Free and Open Source Python Library for Multiobjective Optimization
GNU General Public License v3.0
565 stars 153 forks source link

How to get non-dominanted solutions for two objectives optimization (NSGAII) #105

Closed Abdul-2018 closed 1 year ago

Abdul-2018 commented 5 years ago

I tried ti filter the solutions (algorithm.result)to get only non-dominated using 'nondominated' and 'nondominated_sort' and every time I have one of these errors: NameError: name 'nondominated' is not defined NameError: name 'nondominated_sort' is not defined

when I use this line of code: nondominated_solutions = nondominated(algorithm.result) or nondominated_solutions = nondominated_sort(algorithm.result)

Can Anyone help me with getting non-dominanted solutions for two objectives optimization (NSGAII)? Thanks

apoorvreddy commented 5 years ago
from platypus.core import nondominated_sort

should work ?

github-actions[bot] commented 1 year ago

This issue is stale and will be closed soon. If you feel this issue is still relevant, please comment to keep it active. Please also consider working on a fix and submitting a PR.