Disciplined convex programming error:
Invalid quadratic form(s): not a square.
maximize P1G+(hrP1hdP2)/(hrP1+hdP2+1)
Question: This is a concave function. Why can’t we solve it directly?

You are right. The objective function is not concave. Through the calculation of Hessian matrix, the positive and negative of the matrix are uncertain. Is there any good way to turn it into a convex optimization problem?