I have a question about this.
This is the expression of the objective function，the error is at L2，tV(n) is variable.
for n = 1:N f(n) = 0; P_n(n) = gamma*P(n); numerator = P_n(n)*(uV(n)-u(n)); denominator = log(2)*(u(n)^2+P_n(n)*u(n)); L1 = numerator/denominator; L2 = tV(n)*pow_p((tV(n)+P_n(n)),-1); f(n) = f(n)-L1-(rel_entr(1,L2)); end
Actually,the third term of f(n) is log(1+Pn/tV(n)).If expressed directly, there will be a log(convex) error.
So I chose the above expression method, but there is a mistake of affine.*convex.
I really appreciate it if you could help me with this question!thank you!