(self, x, theta=0.01)
return theta * x[1] + x[0]
ridge like linear function with one linear constraint
ridge like linear function with one linear constraint
ridge like linear function with one linear constraint
def lincon(self, x, theta=0.01):
        """ridge like linear function with one linear constraint"""
        if x[0] < 0:
            return np.NaN
        return theta * x[1] + x[0]
def lincon ( self , x , theta = 0.01 ) : if x [ 0 ] < 0 : return np . NaN return theta * x [ 1 ] + x [ 0 ]