12.07.2015 Views

What Is Optimization Toolbox?

What Is Optimization Toolbox?

What Is Optimization Toolbox?

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

fminsearchOutputFcnPlotFcnsTolFunSpecify one or more user-defined functions thatan optimization function calls at each iteration.See “Output Function” on page 6-16.Plots various measures of progress while thealgorithm executes, select from predefined plotsor write your own. Specifying @optimplotxplots the current point; @optimplotfunccountplots the function count; @optimplotfval plotsthe function value.Termination tolerance on the function value.TolX Termination tolerance on x.Examples Example 1A classic test example for multidimensional minimization is theRosenbrock banana functionThe minimum is at (1,1) and has the value 0. The traditional startingpoint is (-1.2,1). The anonymous function shown here defines thefunction and returns a function handle called banana:banana = @(x)100*(x(2)-x(1)^2)^2+(1-x(1))^2;Passthefunctionhandletofminsearch:[x,fval] = fminsearch(banana,[-1.2, 1])This producesx =fval =1.0000 1.00008-71

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

Saved successfully!

Ooh no, something went wrong!