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

hello,it can not still solve the problem

@name-lym666 name-lym666 If you have an error, please show a complete reproducible problem, with all input data. Please copy and paste into your post using Preformatted text icon, rather than showing images of code.