def g(self, x):
        if x[1] == 0.0:
            A = pi/2.0
        else:
            A = arctan(x[0]/x[1])
        g1 = x[1]**2 + x[0]**2 - 1.0 -0.1*cos(16.0*A)
        g2 = 0.5 -(x[1]-0.5)**2 -(x[0]-0.5)**2 
        if g1 >= 0 and g2 >= 0:
            return True,array([0.,0.])
        return False,array([g1,g2])
dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/functions/multiobjective.py/ConstTnk.g/swapped operands of `-`