Minimize norm (c*x - d) subject to
x >= 0.
c and d must be real.
x0 is an optional initial guess for x.
Currently, lsqnonneg recognizes these options: "MaxIter",
"TolX". For a description of these options, see
‘optimset’.
Outputs:
The squared 2-norm of the residual: norm (c*x-d)^2
The residual: d-c*x
An indicator of convergence. 0 indicates that the iteration count was exceeded, and therefore convergence was not reached; >0 indicates that the algorithm converged. (The algorithm is stable and will converge given enough iterations.)
A structure with two fields:
"algorithm": The algorithm used ("nnls")
"iterations": The number of iterations taken.
Not implemented.
See also: optimset, pqpnonneg, lscov.
Package: octave