### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.9 Reference Guide (DRAFT) »
- Optimization and root finding (`scipy.optimize`) »

# scipy.optimize.nnls

`scipy.optimize.``nnls`(A, b)

  Solve `argmin_x || Ax - b ||_2` for `x>=0`.

  Parameters : | A : ndarray Matrix `A` as shown above. b : ndarray Right-hand side vector.
  Returns : | x : ndarray Solution vector. rnorm : float The residual, `|| Ax-b ||_2`.

  Notes

  This is a wrapper for `NNLS.F`.

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.9 Reference Guide (DRAFT) »
- Optimization and root finding (`scipy.optimize`) »