Project-Platypus / Platypus

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

Handling of constraints with single-objective CMAES #150

Closed m-balesdent closed 1 year ago

m-balesdent commented 4 years ago

Hi,

I try to solve contrained single-objective optimization with CMAES and the results I obtain look quite strange.

Regarding line #1235 of algorithms.py, it seems that contraints are not handled in the sort mechanims of cma to select the parents.

"self.population = sorted(self.population, key=lambda x : x.objectives[0])"

Am I wrong? Is there any constraint handling mechanism I missed in the analysis of the code?

Thanks!

Mathieu

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.