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.

fminsearchPurposeEquationFind minimum of unconstrained multivariable function usingderivative-free methodFinds the minimum of a problem specified bywhere x is a vector and f(x) is a function that returns a scalar.SyntaxDescriptionx = fminsearch(fun,x0)x = fminsearch(fun,x0,options)[x,fval] = fminsearch(...)[x,fval,exitflag] = fminsearch(...)[x,fval,exitflag,output] = fminsearch(...)fminsearch attempts to find a minimum of a scalar function of severalvariables, starting at an initial estimate. This is generally referred to asunconstrained nonlinear optimization.x = fminsearch(fun,x0) starts at the point x0 and attempts to finda local minimum x of the function described in fun. fun is a functionhandle for either an M-file function or an anonymous function. x0 canbe a scalar, vector, or matrix.x = fminsearch(fun,x0,options) minimizes with the optimizationoptions specified in the structure options. Useoptimset to set theseoptions.[x,fval] = fminsearch(...) returns in fval the value of theobjective function fun at the solution x.[x,fval,exitflag] = fminsearch(...) returns a value exitflagthat describes the exit condition of fminsearch.[x,fval,exitflag,output] = fminsearch(...) 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-68

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

Saved successfully!

Ooh no, something went wrong!