I want to find a matrix $A \in \mathbb{R}^{3\times3}$ that minimizes the following expression:-
$\sum_{i=1}^N ( \|Ax_i\|^2_2 - b_i )^2$
where $x_i \in \mathbb{R}^{3}_{\ge 0}$, $b_i \in \mathbb{R}_{\ge 0}$.
Is there an easy (or standard) way to go about solving this?
Thanks for your help!
As described in the comments, it can be cast as a semidefinite program. Using MATLAB and the modelling Toolbox YALMIP (disclaimer, developed by me) and some SDP solver (such as Mosek, Sedumi, SDPT3) you have
The obejctive can alternatively be written as