I went through the answer to the question Find the Matrix Projection of a Symmetric Matrix onto the set of Symmetric Positive Semi Definite (PSD) Matrices. I have a doubt about the answer given. $$ \|\Lambda_X -V^{\top}A V\|^2_F = \sum_{i \neq j}b_{ij}^2+\sum_i (\Lambda_{X_{ii}}-b_{ii})^2 $$
Minimum occurs when $b_{ij}=0$, and $\Lambda_{X_{ii}}=b_{ii}$. Note that $\Lambda_{X_{ii}} \geq 0$, so $\Lambda_{X_{ii}}=\max\{0,b_{ii}\}$. B is a diagonal matrix. So, V=U.
Our optimization variables are $\Lambda_X, V$. Hence in the final equation we have freedom over $b_{ij}, b_{ii}$ plus some constraints as $ B = V^{\top}A V\ $. I don't understand why is $b_{ij}=0$ and V=U the optimal solution, since $b_{ij}, b_{ii}$ are dependent on each other and $\Lambda_{X_{ii}} \geq 0$. Can we not find a better solution like the square of negative $b_{ii}$ is smaller and in turn, $b_{ij}^2$ is not zero but overall cost is minimised?