Liane
unread,Apr 27, 2013, 5:21:13 AM4/27/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to yal...@googlegroups.com
Hello Johan,
I want to calculate the minimal Frobeniusnorm of a psd Matrix Z satisfying some semidefinite contraints.
My approach is the following:
function [y,M] = Frob(n,cl,BK,B)
Z=sdpvar(n,n,'full','complex'); % (an hermitian complex valued matrix)
sdpvar u;
e=Z(:);
F=[Z'==Z];
for i=1:cl
F=[F,BK(:,:)-B(:,:,i) +Z >= 0]; % (one B(i) is equal to the BK, that yields that Z is psd)
end
F = [F, cone(e,u)];
solvesdp(F,u); %(using SEDUMI)
y=double(u);
M=double(Z);
end
Now, the problem is, that the optimal solution is almost zero. But looking at the constraints BK-B(i) this is wrong.
Do you see a Problem in the code?