My problem is written in the following form
cvx_begin
variables alpha(N) lambda;
minimize(lambda);
subject to
sum(alpha) == 1;
for m = 1:M
1/2 * alpha' * KM(:,:,m) * alpha <= lambda;
end
cvx_end
Now I want to get the optimal value of the dual variable d(m) corresponding to every quadratic constraint in the for loop. I have tried the following code but it didn’t work:
cvx_begin
variables alpha(N) lambda;
dual variable d;
minimize(lambda);
subject to
sum(alpha) == 1;
for m = 1:M
d(m) : 1/2 * alpha' * KM(:,:,m) * alpha <= lambda;
end
cvx_end
Can anyone give some advice? Thanks!