I'm looking to solve this equation:
$$I = (A \otimes (XB)) + E $$
for $X$ with matrices $A,B$, error matrix $E$, and identity $I$, such that $\lVert E \rVert_F$, the frobenous norm of $E$ is minimized (if needed, another matrix norm is fine). But I'm not sure how to handle the Kronecker product.
The solution is $$X=\frac{{\rm tr}(A)}{\|A\|_F^2}\,B^+$$ here's how I derived it.$$ $$ The objective function is $$\eqalign{ \phi &= \frac{1}{2}\|E\|_F^2 = \frac{1}{2}(A\otimes XB-I):(A\otimes XB-I) \cr d\phi &= (A\otimes XB-I):(A\otimes dX\,B) \cr &= (A:A)(XB:dX\,B) - (I:A)(I:dX\,B) \cr &= \Big((A:A)XBB^T - (I:A)B^T\Big):dX \cr &= \Big(\|A\|_F^2XBB^T - {\rm tr}(A)B^T\Big):dX \cr \frac{\partial\phi}{\partial X} &= \|A\|_F^2XBB^T - {\rm tr}(A)B^T \cr }$$ Set the gradient to zero and solve for $X$ $$\eqalign{ \|A\|_F^2XBB^T &= {\rm tr}(A)B^T \cr X &= \frac{{\rm tr}(A)}{\|A\|_F^2} B^T(BB^T)^{-1} \cr }$$ In the above steps, a colon (:) is simply a product notation for the trace, i.e. $$A:B={\rm tr}(A^TB)$$ and $M^+$ is the pseudoinverse of $M$.