Cvx DCP error:positive constant./convex

Uncategorized
Apr 19, 2021
A

Hello everyone!This kind of problem happen in the following statement, i have no idea how it failed.
Is anyone interesting or experienced in this problem ? please give me a favor. Thank u very much.
qJ is variable(2,1).Others are known quantities.Part of the code is as follows:
variable qJ(2,1)
subject to
h_JE = beta0/(quad_over_lin(qJ-wE,1)+H2^2);
for n = 1:N
sum(log(1+P(n)/(P_J*h_JE+sigma_2))) <= eta;
end
cvx_end

The error is shown on the third line of the code. Error is:Disciplined convex programming error:
Cannot perform the operation: {positive constant} ./ {convex}

Thank you very much for your answer!

M

The code triggered an error message because your code doesn’t follow CVX’s rules.

Have you proven the constraint is convex?

A

Thank you for your reply! I think I’ve solved this problem.