12.07.2015 Views

What Is Optimization Toolbox?

What Is Optimization Toolbox?

What Is Optimization Toolbox?

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

lsqnonnegPurposeEquationSolve nonnegative least-squares constraint problemSolves nonnegative least-squares curve fitting problems of the formwhere the matrix C and the vector d are the coefficients of the objectivefunction. The vector, x, of independent variables is restricted to benonnegative.SyntaxDescriptionx = lsqnonneg(C,d)x = lsqnonneg(C,d,x0)x = lsqnonneg(C,d,x0,options)[x,resnorm] = lsqnonneg(...)[x,resnorm,residual] = lsqnonneg(...)[x,resnorm,residual,exitflag] = lsqnonneg(...)[x,resnorm,residual,exitflag,output] = lsqnonneg(...)[x,resnorm,residual,exitflag,output,lambda] = lsqnonneg(...)x = lsqnonneg(C,d) returns the vector x that minimizes norm(C*x-d)subject to x >= 0. C and d must be real.x = lsqnonneg(C,d,x0) uses x0 as the starting point if all x0 >= 0;otherwise, the default is used. The default start point is the origin (thedefault is also used when x0==[] or when only two input argumentsare provided).x = lsqnonneg(C,d,x0,options) minimizes with the optimizationoptions specified in the structure options. Useoptimset to set theseoptions.[x,resnorm] = lsqnonneg(...) returns the value of the squared2-norm of the residual, norm(C*x-d)^2.[x,resnorm,residual] = lsqnonneg(...) returns the residualC*x-d.[x,resnorm,residual,exitflag] = lsqnonneg(...) returns a valueexitflag that describes the exit condition of lsqnonneg.8-179

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!