Expressions in objective functions must be real

(mehdi) #1

I am trying to solve SDP problem
cvx_begin quiet
variable V(m,m) hermitian
subject to
for i=1:I
trace(B(:,:,i)*V) >=sigma(i);
for l=1:L
trace(D(:,:,i,l)*V) >=gama_min(l);
V == hermitian_semidefinite(m);
where A,B and D are psd matrices. But I encounter “Expressions in objective functions must be real”.
Please help me and tell me where the problem is?

(Mark L. Stone) #2

Can you provide a simple, small, reproducible problem, with input data, sufficient to exhibit the error?

I recommend not using the quiet option until your program is working well.

(mehdi) #3

I solved it.
thank you very much