def g(self, x):
        g1 = x[0] + x[1] -2.0
        g2 = 6.0 -x[0] -x[1]
        g3 = 2.0 -x[1] +x[0]
        g4 = 1.0 -x[0] +3.0*x[1]
        g5 = 4.0 -(x[2]-3)**2 -x[3]
        g6 = (x[4]-3)**2 +x[5] -4.0
        if g1 >= 0 and g2 >= 0 and g3 >= 0 and g4 >= 0 and g5 >= 0 and g6 >= 0:
            return True,array([0.,0.])
        return False,array([g1,g2,g3,g4,g5,g6])
dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/functions/multiobjective.py/ConstOsy.g/original