'SeDuMi Matlab Code for Optimization problem

have this optimization Problem and need to implement this problem using SeDuMi Technique in MATLAB. Here, Q_i = h_i * h_i^(H). and h_i are randomly generated vector. I would like someone to help me with the matlab code for the implementation of this optimization problem in SeDuMi:

https://i.stack.imgur.com/JpDrZ.png

Matlab code, which i have been working on: % % % % % % % % % % % % % % % % % % % % % % % % % % % % %

clear all; clc
N = 10; % Number of antennas @ BS
M  = 5; % Number of single antenna User 

H = (randn(N,M) + 1j*randn(N,M)) *sqrt(0.5);
Q = zeros(N,N,M);
vecQs= [];
for k = 1:M
    Q(:,:,k) =H(:,k)'*H(:,k);
    vecQs = [vecQs,vec(Q(k).')];
end
A=[-eye(M),vecQs.'];
b=ones(M,1);
c=[zeros(M,1);vec(eye(N))];
K.l=M;
K.s=N;
K.scomplex=1;
[x_opt,y_opt,info]=sedumi(A,b,c,K);
Xopt=mat(x_opt(M+1:end));


Solution 1:[1]

Adding this rule (AllowAllWindowsAzureIps) manually in the portal resulted in an error stating "This rule name is already in use for 'Allow Azure services and resources to access this server' setting.".

So, it is clear that the rule name is reserved for the below outlined setting. Everything was working as intended after all.

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 vuoriov4