Linear Least Squares

Solve linear least-squares problems with bounds or linear constraints

Functions

lsqlinSolve constrained linear least-squares problems
lsqnonnegSolve nonnegative linear least-squares problem
mldivide, \Solve systems of linear equations Ax = B for x

Topics

Linear Least Squares Solutions

Optimization App with the lsqlin Solver

Example showing the Optimization app and linear least squares.

Linear Least Squares with Bound Constraints

Example showing the use of bounds in nonlinear least squares.

Jacobian Multiply Function with Linear Least Squares

Example showing how to save memory in a large structured linear least-squares problem.

Algorithms and Options

Least-Squares (Model Fitting) Algorithms

Minimizing a sum of squares in n dimensions with only bound or linear constraints.

Optimization Options Reference

Describes optimization options.

Was this topic helpful?