I want to solve this problem using CVXPY but I don\'t know why I get the following error message:
DCPError: Problem does not follow DCP rules.
Your utility function:
cvx.log(h_k_1) + cvx.log(h_k_2)
is not convex.
These rules might be able to tell you what you can sub in your solution.