Գրեք սա: An iterative approach to a constrained least squares problem