Least-Squares Solutions

Least-Squares solutions are usually computed for an over-determined system of linear equations Am×nx=b, where m > n. A least-squares solution x minimizes the Euclidean length of the residual vector r = Ax-b.

Least-squares problems with linear constraints and one right-hand side are systems of least-squares equations of the form

Am×nxb,

subject to constraints and simple bounds

blCxbuxlxxu

Here A is the coefficient matrix of the least-squares equations, b is the right-hand side, and C is the coefficient matrix of the constraints. The vectors bl,bu,xl and xu are the lower and upper bounds on the constraints and the variables. This general problem is solved with function imsl.linalg.lin_lsq_lin_constraints().