I still can’t solve this problem, Can anyone give me some advice?
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).
Thank you for your reply. You help me a lot！
I would do
in the objective. It is likely to be more efficient.