anyoptimization / pymoo

NSGA2, NSGA3, R-NSGA3, MOEAD, Genetic Algorithms (GA), Differential Evolution (DE), CMAES, PSO
https://pymoo.org
Apache License 2.0
2.23k stars 381 forks source link

Question: what is the second array returned by pymoo.problems.get_problem('osy') #588

Closed zollen closed 5 months ago

zollen commented 5 months ago

Hi,

I am not clear about the second array returned by the get_problem('osy')?? What is it?

from pymoo.problems import get_problem
problem = get_problem("osy")
res = problem.evaluate(X)
print(res[0])   # two columns of results of the osy objective functions
print(res[1])   # what is this???
blankjul commented 5 months ago

These are the constraint values (becaues the problem is constrained).