As we can see in this formula, Am(n) is constant. rho(n) and s(n) are variables,they are vectors of (1,N).This is a convex problem,but I can’t express it correctly in CVX syntax.

Oh,I got it! maybe I can solve it by converting this expression.It can be converted to

log(s(n)+rho(n)*A(m,n))-log(s(n))

the first half of this expression is concave. the second half of this expression we can use Taylor expansion to find its upper bound.
what do you think of this solution? thank you much ,Sir!

You can try whatever you want. But rather than ad hoc Taylor Series or Successive Convex Approximation /Difference of Convex (Concave), you may be better offer using a non-convex solver, for instance, under YALMIP.

If your ad hoc approach doesn’t work well, you’re own your own.

On the other hand, if the formulation at Cvx DCP error:%{real affine} .* {convex} is what you really want, that is a convex optimization problem which can be entered in CVX.