I’ve been trying to solve this problem using cvx but I get this error:

Disciplined convex programming error:

Invalid quadratic form(s): not a square.

The given problem is concave in nature. But I’m not sure how to define the function as cvx doesn’t take log functions.