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.

lsqlinx = lsqlin(C,d,A,b,Aeq,beq,lb,ub,x0,options) minimizes withthe optimization options specified in the structure options. Useoptimset to set these options.[x,resnorm] = lsqlin(...) returns the value of the squared 2-normof the residual, norm(C*x-d)^2.[x,resnorm,residual] = lsqlin(...) returns the residual C*x-d.[x,resnorm,residual,exitflag] = lsqlin(...) returns a valueexitflag that describes the exit condition.[x,resnorm,residual,exitflag,output] = lsqlin(...) returns astructure output that contains information about the optimization.[x,resnorm,residual,exitflag,output,lambda] = lsqlin(...)returns a structure lambda whose fields contain the Lagrangemultipliers at the solution x.Note If the specified input bounds for a problem are inconsistent, theoutput x is x0 and the outputs resnorm and residual are [].InputArgumentsOutputArguments“Function Arguments” on page 6-2 contains general descriptions ofarguments passed into lsqlin. “Options” on page 8-158 provides theoptions values specific to lsqlin.“Function Arguments” on page 6-2 contains general descriptions ofarguments returned by lsqlin. This section provides function-specificdetails for exitflag, lambda, andoutput:exitflagInteger identifying the reason the algorithmterminated. The following lists the values ofexitflag and the corresponding reasons thealgorithm terminated:1 Function converged to a solutionx.8-156

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

Saved successfully!

Ooh no, something went wrong!