How to deal with the "Cannot perform the operation: {positive constant} ./ {real affine}"


as the paper said, the problem is just convex and can be solved through CVX. But the cost function has the term “-log2(1+Pn/t)” ,the CVX cannot perform the operation: {positive constant} ./ {real affine},I hope someone can help me ,thanks guys.

log(1+P/t) = 1/P*(rel_entr(P+t,t) + rel_entr(t,P+t))

You will need to divide by log(2) because you are dealing with log2.

thanks a lot, it’s very helpful