hello,

why I don’t get the optimum point?

thanks

clc

clear all

alpha=.1;

c=3;s=0;

p=3;

cvx_begin sdp

variable b(p, p)

expression f2

for k=1:p

for i=1:p

s=s+1;

fg=b(k,i)*c;
f2(s) =fg*(1-(b(k,i)

*alpha));*

end

end

maximize sum(f2)

subject to

for ii=1:p

sum(b(ii,:),1)==1;

sum(b(:,ii),1)<=1;

end

zeros(pp,1)<=vec(b)<=ones(p*p,1);

end

end

maximize sum(f2)

subject to

for ii=1:p

sum(b(ii,:),1)==1;

sum(b(:,ii),1)<=1;

end

zeros(p

cvx_end