Hi, i want to solve the simple convex problem as below ,
where, beta _1 is monotonically decreasing n, beta _2 is monotonically increasing n, and all the variables are nonnegative.
when I use mosek solver, the value of gamma _s are obtained as following,
using sdpt3,the the value of gamma _s are obtained as following,
the matlab code is given by
function [ Snr_PS,Snr_PR ] = CvxFixedTrajectory(Belta1,Belta2,Snr_PS_av,Snr_PR_av) global N; cvx_solver mosek % cvx_solver sdpt3 cvx_begin variable Snr_PS(N) nonnegative variable Snr_PR(N) nonnegative expression SumBelta1(N) expression SumBelta2(N) for i=1:N SumBelta1(i)=inv_pos(Belta1(i)*Snr_PS(i)); end for i=1:N SumBelta2(i)=inv_pos(Belta2(i)*Snr_PR(i)); end minimize sum(SumBelta1+SumBelta2) subject to sum(Snr_PS)<=N*Snr_PS_av; sum(Snr_PR)<=N*Snr_PR_av; cvx_end