I have a similar problem to Linear Matrix Least Squares with Linear Equality Constraint - Minimize $ {\left\| A - B \right\|}_{F}^{2} $ Subject to $ B x = v $, where there is no symmetric constraint for matrix $N$. I've tried to write the Lagrange function as
$$ L(N) = \min_N{\frac{1}{2}\|N - M\|_F^2 - \lambda^T(Nd - g) - \frac{\gamma}{4}\|N - N^T\|^2_F} $$
By taking the derivative over $N$, I got
$$ \frac{\partial L}{\partial N} = N - M - \lambda d^T - \gamma (N - N^T) $$
I got stuck here(please point out if I did wrong in the above steps). Anyone has any idea how to do next or there is another way out?
$M$ is a symmetric matrix in this case.
Thanks in advance.
Regarding the approach by adding the transpose it should be as following:
$$\begin{aligned} \arg \min_{X} \quad & \frac{1}{2} {\left\| X - Y \right\|}_{F}^{2} \\ \text{subject to} \quad & X \in \mathcal{S}^{n} \\ & X a = b \end{aligned} \\ \Updownarrow \\ \begin{aligned} \arg \min_{X} \quad & \frac{1}{2} {\left\| X + {X}^{T} - Y \right\|}_{F}^{2} \\ \text{subject to} \quad & \left( X + {X}^{T} \right) a = b \end{aligned} $$
The Lagrangian is given by:
$$ L \left( X, v \right) = \frac{1}{2} {\left\| X + {X}^{T} - Y \right\|}_{F}^{2} + {v}^{T} \left( \left( X + {X}^{T} \right) a - b \right) $$
Now, the gradient is given by:
$$ {\nabla}_{X} L \left( X, v \right) = 2 X + 2 {X}^{T} - Y - {Y}^{T} + a {v}^{T} + v {a}^{T} \Leftrightarrow X + {X}^{T} = \frac{1}{2} \left( Y + {Y}^{T} - v {a}^{T} - a {v}^{T} \right) $$
Now multiplying it on the right by $ a $ yields:
$$\begin{aligned} b & = \frac{1}{2} \left( Y + {Y}^{T} - v {a}^{T} - a {v}^{T} \right) a \\ & = \frac{1}{2} \left( Y + {Y}^{T} \right) a - \frac{1}{2} \left( v {a}^{T} a + a {v}^{T} a \right) \\ & = \frac{1}{2} \left( Y + {Y}^{T} \right) a - \frac{1}{2} \left( {a}^{T} a v + \left( {a}^{T} \otimes a \right) v \right) \\ & = \frac{1}{2} \left( Y + {Y}^{T} \right) a - \frac{1}{2} \left( {a}^{T} a I + {a}^{T} \otimes a \right) v \\ & = \frac{1}{2} \left( Y + {Y}^{T} \right) a - \frac{1}{2} \left( {a}^{T} a I + a {a}^{T} \right) v \end{aligned}$$
Hence $ v = {\left( {a}^{T} a I + a {a}^{T} \right)}^{-1} \left( \left( Y + {Y}^{T} \right) a - 2 b \right) $.
Then it implies:
$$ X + {X}^{T} = \frac{1}{2} \left( Y + {Y}^{T} - {\left( {a}^{T} a I + a {a}^{T} \right)}^{-1} \left( \left( Y + {Y}^{T} \right) a - 2 b \right) {a}^{T} - a {\left( {\left( {a}^{T} a I + a {a}^{T} \right)}^{-1} \left( \left( Y + {Y}^{T} \right) a - 2 b \right) \right)}^{T} \right) $$
I implemented both methods in MATLAB and verified the code vs. CVX. The MATLAB Code is accessible in my StackExchange Mathematics Q3631718 GitHub Repository.
Remark: In this solution $ Y $ isn't assumed to be Symmetric Matrix.