The argument of inv_pos
must be concave or affine. Youra is not.
help inv_pos
inv_pos Reciprocal of a positive quantity.
inv_pos(X) returns 1./X if X is positive, and +Inf otherwise.
X must be real.For matrices and N-D arrays, the function is applied to each element. Disciplined convex programming information: inv_pos is convex and nonincreasing; therefore, when used in CVX specifications, its argument must be concave (or affine).
I don’t know whether your problem can be reformulated, because you don’t show how g1
and g2
are to be used. Perhaps l1
and l2
can be multiplied out to be in the numerator of an inequality? Perhaps not.