CVXPY: how to use "log"

It’s up to you to formulate a convex optimization problem. If your problem is non-convex, I recommend you use a non-convex solver, which can not be done from CVX.