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.

lsqnonlinPurposeEquationSolve nonlinear least-squares (nonlinear data-fitting) problemsSolves nonlinear least-squares curve fitting problems of the formSyntaxDescriptionx = lsqnonlin(fun,x0)x = lsqnonlin(fun,x0,lb,ub)x = lsqnonlin(fun,x0,lb,ub,options)[x,resnorm] = lsqnonlin(...)[x,resnorm,residual] = lsqnonlin(...)[x,resnorm,residual,exitflag] = lsqnonlin(...)[x,resnorm,residual,exitflag,output] = lsqnonlin(...)[x,resnorm,residual,exitflag,output,lambda] = lsqnonlin(...)[x,resnorm,residual,exitflag,output,lambda,jacobian] = lsqnonlin(...)lsqnonlin solves nonlinear least-squares problems, including nonlineardata-fitting problems.Rather than compute the value f(x) (the sum of squares), lsqnonlinrequires the user-defined function to compute the vector-valued functionThen, in vector terms, you can restate this optimization problem aswhere x is a vector and F(x) is a function that returns a vector value.x = lsqnonlin(fun,x0) starts at the point x0 and finds a minimumof the sum of squares of the functions described in fun. fun should8-166

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

Saved successfully!

Ooh no, something went wrong!