Let $A,B\in\mathbb{R}^{m\times n}$ be matrices with all positive entries. I want to compute the following minimum. $$\min_{\vec{u}\in\mathbb{R}^m,\ \ \vec{v}\in\mathbb{R}^n} \ \ \sum_{i=1}^m \sum_{j=1}^n (u_i v_j A_{ij} - B_{ij})^2.$$
Rephrased in terms of matrix notation and the Frobenius norm $\|\cdot\|_F$, this would be the following. $$\min_{\vec{u}\in\mathbb{R}^m,\ \ \vec{v}\in\mathbb{R}^n} \ \ \| D_{\vec{u}} A D_{\vec{v}} - B\|_F^2,$$ where $D_{\vec{u}}$ is the diagonal matrix with diagonal $\vec{u}$ (and likewise for $D_{\vec{v}}$). Does anyone know how to find this minimum?