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.

fminbndPurposeEquationFind minimum of single-variable function on fixed intervalFinds a minimum for a problem specified bywhere x, x 1,andx 2are scalars and f(x) is a function that returns a scalar.SyntaxDescriptionx = fminbnd(fun,x1,x2)x = fminbnd(fun,x1,x2,options)[x,fval] = fminbnd(...)[x,fval,exitflag] = fminbnd(...)[x,fval,exitflag,output] = fminbnd(...)fminbnd attempts to find a minimum of a function of one variablewithin a fixed interval.x = fminbnd(fun,x1,x2) returns a value x that is a local minimizerof the scalar valued function that is described in fun in the intervalx1 < x < x2. fun is a function handle for either an M-file functionor an anonymous function.x = fminbnd(fun,x1,x2,options) minimizes with the optimizationoptions specified in the structure options. Useoptimset to set theseoptions.[x,fval] = fminbnd(...) returns the value of the objective functioncomputed in fun at the solution x.[x,fval,exitflag] = fminbnd(...) returns a value exitflag thatdescribes the exit condition of fminbnd.[x,fval,exitflag,output] = fminbnd(...) returns a structureoutput that contains information about the optimization.“Avoiding Global Variables via Anonymous and Nested Functions” onpage 2-20 explains how to parameterize the objective function fun, ifnecessary.8-28

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

Saved successfully!

Ooh no, something went wrong!