The below picture shows my objective func and constrains. X is a matrics of size (2xN) yi is a (2x1) scalar vector. I defined the objective function without a problem. But I faced issue with defining the constrain hij.