Hi.I writting my optimization problem in cvx and running that but i had a error .I attached the program and thats error.please if it is possible help me. I want to transform the objective function to satisfy the constraints of CVX. But I don’t know how to do it.

cvx_begin quiet

variables sm_h(NUM_DUG,NUM_RB) sm_BS(NUM_DUG,NUM_RB) T_h(NUM_DUG,NUM_RB) T_BS(NUM_DUG,NUM_RB)

expressions t_ave

t_ave=0;

for i=1:NUM_DUG

for j=1:NUM_RB

t_ave=t_ave+BW*T_h(i,j)*log2(1+sm_h(i,j)./T_h(i,j).*H_D_yong(i,j))…
+BW*T_BS(i,j)*log2(1+sm_BS(i,j)./T_BS(i,j).

*H_B_yong(i,j))…*

-lanmuda(sm_h(i,j)+sm_BS(i,j));

-lanmuda

end

end

maximize t_ave%+penalty*s

subject to

T_h>=0;

T_h<=1;

T_BS>=0;

T_BS>=0;

sm_h>=0;

sm_h<=Pt_Dm;

sm_BS>=0;

sm_BS<=Pt_Bm;

cvx_end

The error message is as follows:

Disciplined convex programming error:

Cannot perform the operation: {real affine} ./ {real affine}

Error in ./ (line 19)

z = times( x, y, ‘./’ );

Error in cvx_lianhe_821 (line 48)

t_ave=t_ave+BW*T_h(i,j)*log2(1+sm_h(i,j)./T_h(i,j).*H_D_yong(i,j))…