Hello. I am trying to solve an optimization problem to maximize the following w.r.t ‘F’ while the rest of the terms in the expression are ‘rand’ initializations
logdet(eye(Ns) + HsSF*F’*S’*Hs’) + trace_inv(S)
I’ve rewritten the logdet expression as logdet(inv(Hs’Hs) + SF*F’*S’) <=> logdet(inv(H_s) + S_f),
where H_s = Hs’Hs, S_f = SF*F’*S’.
I am using CVX to solve the problem and since F is a variable declared in the CVX, I have that error from the title. Please help me find a solution to the problem and where I am wrong with it. Here is the code:
Nt = 16;
Ns = 8;
H = rand(Ns,Nt);
P = 0.1;
S = kron([1 0], eye(Ns));
H_s = (H*S')'*H*S'; % H_s = Hs'*Hs = S*H'*H*S'
variable S_f(Ns,Ns) % S_f = S*F*F'*S' => Sf = S*F = chol(S_f) => F =inv(S'*S)*S'*Sf
Gmax = logdet(inv(H_s) + S_f) + trace_inv( S_f );
norm((trace(S_f)-P),2) <= 1e-5;
For a diagonal positive definite matrix X, 1/trace_inv(X) is the harmonic mean (other than factor of n), of the diagonal elements of X,. The harmonic mean s concave (previous version of this post misstated it as being convex), and is DCP-representable, as shown in section 3.2.7 Harmonic mean of https://docs.mosek.com/modeling-cookbook/cqo.html . So the link shows how to model it in CVX.
Edit: I have corrected this post from the original version.
Thanks for your response. So what I have now in the form is 1/trace_inv(S_f) is not concave and that is why CVX cannot perform the operation? Could you please suggest a reformulation for this expression?