Dual SDP Problem

Hi,
I wrote my fucntion as primal but I dont know how I can convert it for dual?? Could you show me?

cvx_begin

variable sigma_e(d^2,d^2,d) hermitian semidefinite

dual variables T{g,g,h,h}

S=cvx(0);

in=1;

for e=1:g

S=S+trace(sigma_e(:,:,e)*kron(A(:,:,in,e),eye(g)));

end

S=real(S);

minimize (-S)

subject to

for a=1:g

for b=1:g

for x=1:h

for y=1:h

trace(squeeze(sum(sigma_e(:,:,:),3))*kron(A(:,:,x,a),B(:,:,y,b)))==P_exp(a,b,x,y) : T{a,b,x,y};

end

end

end

end

CVX takes care any dualization calculations needed. If you need help manually finding the dual of an SDP, I recommend you seek help at https://math.stackexchange.com/questions/tagged/optimization or https://or.stackexchange.com/