Hi,

I am completely new to CVX. I have an optimization problem which I solved through semidefinite relaxation method (SDR) and comes up with the solution given in figure![SDR_problem|667x500]!

I have to solve this problem using CVX.

The code is below

```
n=100;
K=6;
sigma=-114;
cvx_begin
variables V(n,n) z
minimize z
subject to
for k=1:K
trace(A(:,:,k)*X) >= z*sigma^2 ;
end
diag(V) == ones(n,1);
X == semidefinite(n);
cvx_end
```

Now the issue is in order to make the initial problem relaxed i introduced “z” as a slacked variable. I am not understanding how this z will be tackled in code.

Anyone who can please guide.