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.

fminbndInputArguments“Function Arguments” on page 6-2 contains general descriptions ofarguments passed into fminbnd. This section provides function-specificdetails for fun and options:funThe function to be minimized. fun is a function handle fora function that accepts a scalar x and returns a scalar f,the objective function evaluated at x. Thefunctionfun canbe specified as a function handle for an M-file functionx = fminbnd(@myfun,x1,x2)where myfun is a MATLAB function such asfunction f = myfun(x)f = ... % Compute function value at x.fun can also be a function handle for an anonymousfunction.x = fminbnd(@(x)sin(x^2),x1,x2);options“Options” on page 8-30 provides the function-specificdetails for the options values.OutputArguments“Function Arguments” on page 6-2 contains general descriptions ofarguments returned by fminbnd. This section provides function-specificdetails for exitflag and output:exitflagInteger identifying the reason the algorithm terminated.The following lists the values of exitflag and thecorresponding reasons the algorithm terminated.1 Function converged to a solution x.0 Number of iterations exceededoptions.MaxIter or number of functionevaluations exceeded options.FunEvals.8-29

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

Saved successfully!

Ooh no, something went wrong!