I want to solve a max-min problem that have logarithmic constraints. My code is as below,
variables Pc Pd(num_UE_d2d_Rx) T;
Pd_matrix = kron(exp(Pd),ones(1,num_UE_d2d_Tx));
interference_cellular = sum(row.*sum(row_prime.*Pd_matrix.*g_prime_2,2));
-log(exp(Pc)*h_2)*log2(exp(1)) + log((interference_cellular+N0))*log2(exp(1)) +T <= 0;
if row(k) ~= 0
interference_d2d(k) = sum(row.*sum(row_prime.*Pd_matrix.*g_zegond_2(:,:,k),2));
-log(exp(Pd(k))*g_2(k))*log2(exp(1)) + log(exp(Pc)*h_prime_2(k) + interference_d2d(k) +
N0)*log2(exp(1)) + T <= 0;
Pd(k) == 0;
Pc <= log(Pc_max);
Pd <= log(Pd_max);
-T + log(SINR_min)*log2(exp(1)) <= 0
My problem is that my code has been running very slow.
Is there any solution for this very slow speed?
Thanks a lot.