lsqlin.RdSolves linearly constrained linear least-squares problems.
lsqlin(A, b, C, d, tol = 1e-13)nxm-matrix defining the least-squares problem.
vector or colum matrix with n rows; when it has more than
one column it describes several least-squares problems.
pxm-matrix for the constraint system.
vector or px1-matrix, right hand side for the constraints.
tolerance to be passed to pinv.
lsqlin(A, b, C, d) minimizes ||A*x - b|| (i.e., in the
least-squares sense) subject to C*x = d.
Returns a least-squares solution as column vector, or a matrix of solutions
in the columns if b is a matrix with several columns.
The Matlab function lsqlin solves a more general problem, allowing
additional linear inequalities and bound constraints. In pracma this
task is solved applying function lsqlincon.
Trefethen, L. N., and D. Bau III. (1997). Numerical Linear Algebra. SIAM, Society for Industrial and Applied Mathematics, Philadelphia.