Closed m-balesdent closed 2 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
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.
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