如何用遗传算法实现多目标非线性规划?我不太明白非线性约束条件怎么写?
比如:min f = x*x-sqrt(y)+y
约束条件为:

x+y < 12;
sqrt(x)-y <= 8
x > 0
y > 0
如何构造罚函数?