lambda_2*I mean eye(n)? I don’t understand how x, which appears in the constraints, has any relevance to the problem, unless it is involved with x_e. You need to clarify. Your sum(x_e h_eh_e’) term needs to evaluate to a square (symmetric) matrix, so are you summing over indexed matrices? So the program below doesn’t really make sense, but is an outline of a program which you need to fix up. You need to clarify how x manifests itself in your problem other than through “irrelevant” constraints which are not tied to the rest of the problem.
Please read the CVX Uses’ Guide, and of course, make sure all operations follow the usual MATLAB rules to be conforming dimensions, etc.
variables lambda_2 x(n,1)
L_0 + sum(x_e *h_e*h_e') - (lambda_2*eye(n) - miu*eye(n)) == semidefinite(n)
0 <= x <= 1
sum(x) == k