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.

Previous topic

scipy.optimize.fmin_slsqp

Next topic

scipy.optimize.anneal

This Page