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!