I want to compute the nearest symmetric positive semidefinite matrix, similar as Higham did. But here also weights (given by an inverse co-variance matrix) should be taken into account.
So the problem is as follows: Find the vector $x$ by minimizing
$$(a-x)' \cdot M\cdot(a-x)$$
subject to $X$ being Hermitian/symetric and positive (semi-)definite. And with $x=vec(X)$ and $a=vec(A)$. $M$ is the inverse of a covariance-matrix, i.e. it's Hermitian/symetric and positive definite, too. $A$ and $M$ are given.
As said above, with no special weights ($M=I$, identity matrix), the problem can be solved according to Higham by setting $X$ to $A$ with all negative eigenvalues of $A$ set to $0$. I already found a numerical stable solution but I'm wondering if there is also an algebraic solution.
Any ideas? Thank you