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.

fminbndPlotFcnsPlots various measures of progress while thealgorithm executes, select from predefined plotsor write your own. Specifying @optimplotx plotsthe current point; @optimplotfunccount plots thefunction count; @optimplotfval plots the functionvalue.TolX Termination tolerance on x.ExamplesA minimum of sin(x) occurs atx = fminbnd(@sin,0,2*pi)x =4.7124The value of the function at the minimum isy = sin(x)y =-1.0000To find the minimum of the functionon the interval (0,5), first write an M-file.function f = myfun(x)f = (x-3)^2 - 1;Next, call an optimization routine.x = fminbnd(@myfun,0,5)This generates the solutionx =38-31

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

Saved successfully!

Ooh no, something went wrong!