<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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]