Minimize
norm (
c*
x-d)
subject to x>= 0
. c and d must be real. x0 is an optional initial guess for x.Outputs:
- resnorm
The squared 2-norm of the residual: norm(c*x-d)^2
- residual
The residual: d-c*x
- exitflag
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.)
- output
A structure with two fields:
- "algorithm": The algorithm used ("nnls")
- "iterations": The number of iterations taken.
- lambda
Not implemented.
See also: optimset