Constraints do not follow DCP rules in CVXPY

后端 未结 1 1664
梦谈多话
梦谈多话 2021-01-07 04:40

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.

相关标签:
1条回答
  • 2021-01-07 04:57

    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.

    0 讨论(0)
提交回复
热议问题