How to solve this problem?Cannot perform the operation: {real affine} .* {convex}

How have you proved the convexity of C2?

Perhaps Can CVX solve this kind of function {x-log(1+0.01*x/(x+1))} will help you for C2. I haven’t worked out whether modifications to handle the sum in the denominator inside the log work out. But the formulation in the link would work if there were not a sum in that denominator.