This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Linear Least Squares

Solve linear least-squares problems with bounds or linear constraints


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


Linear Least Squares Examples

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?