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.

linprogx = linprog(f,A,b,Aeq,beq,lb,ub,x0,options) minimizes with theoptimization options specified in the structure options. Useoptimsetto set these options.[x,fval] = linprog(...) returns the value of the objective functionfun at the solution x: fval = f'*x.[x,lambda,exitflag] = linprog(...) returns a value exitflagthat describes the exit condition.[x,lambda,exitflag,output] = linprog(...) returns a structureoutput that contains information about the optimization.[x,fval,exitflag,output,lambda] = linprog(...) returns astructure lambda whose fields contain the Lagrange multipliers at thesolution x.Note If the specified input bounds for a problem are inconsistent, theoutput x is x0 and the output fval is [].InputArgumentsOutputArguments“Function Arguments” on page 6-2 contains general descriptions ofarguments passed into linprog. “Options” on page 8-133 provides thefunction-specific details for the options values.“Function Arguments” on page 6-2 contains general descriptions ofarguments returned by linprog. 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 solution x.0 Number of iterations exceededoptions.MaxIter.8-132

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

Saved successfully!

Ooh no, something went wrong!