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.

fsolvePurposeEquationSolve system of nonlinear equationsSolves a problem specified byfor x, wherex is a vector and F(x) is a function that returns a vectorvalue.SyntaxDescriptionx = fsolve(fun,x0)x = fsolve(fun,x0,options)[x,fval] = fsolve(fun,x0)[x,fval,exitflag] = fsolve(...)[x,fval,exitflag,output] = fsolve(...)[x,fval,exitflag,output,jacobian] = fsolve(...)fsolve finds a root (zero) of a system of nonlinear equations.x = fsolve(fun,x0) starts at x0 and tries to solve the equationsdescribed in fun.x = fsolve(fun,x0,options) solves the equations with theoptimization options specified in the structure options. Useoptimsetto set these options.[x,fval] = fsolve(fun,x0) returns the value of the objective functionfun at the solution x.[x,fval,exitflag] = fsolve(...) returns a value exitflag thatdescribes the exit condition.[x,fval,exitflag,output] = fsolve(...) returns a structureoutput that contains information about the optimization.[x,fval,exitflag,output,jacobian] = fsolve(...) returns theJacobian of fun at the solution x.“Avoiding Global Variables via Anonymous and Nested Functions” onpage 2-20 explains how to parameterize the objective function fun, ifnecessary.8-107

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

Saved successfully!

Ooh no, something went wrong!