Cvx maximization problem

You use a non-convex solver. And that probably is the case for your other question, Disciplined convex programming error: Cannot perform the operation: {complex affine} .* {log-affine} . So not CVX. You might be able to use YALMIP.

The only non-convex problems which can be handled in CVX are those for which the only non-convexity is binary or integer constraints on the variables.