15.12.2012 Views

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

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.

SciPy Reference Guide, Release 0.8.dev<br />

xtol<br />

ftol<br />

[float] Relative error in xopt acceptable for convergence.<br />

[number] Relative error in func(xopt) acceptable for convergence.<br />

maxiter<br />

[int] Maximum number of iterations to perform.<br />

maxfun<br />

[number] Maximum number of function evaluations to make.<br />

full_output<br />

[bool] Set to True if fval and warnflag outputs are desired.<br />

disp<br />

[bool] Set to True to print convergence messages.<br />

retall<br />

[bool] Set to True to return list of solutions at each iteration.<br />

Notes<br />

Uses a Nelder-Mead simplex algorithm to find the minimum of function of one or more variables.<br />

Check OpenOpt - a tool which offers a unified syntax to call this and other solvers with<br />

possibility of automatic differentiation.<br />

fmin_powell(func, x0, args=(), xtol=0.0001, ftol=0.0001, maxiter=None, maxfun=None, full_output=0, disp=1,<br />

retall=0, callback=None, direc=None)<br />

Minimize a function using modified Powell’s method.<br />

Parameters<br />

func<br />

[callable f(x,*args)] Objective function to be minimized.<br />

x0<br />

[ndarray] Initial guess.<br />

args<br />

[tuple] Eextra arguments passed to func.<br />

callback<br />

[callable] An optional user-supplied function, called after each iteration. Called as<br />

callback(xk), where xk is the current parameter vector.<br />

direc<br />

[ndarray] Initial direction set.<br />

Returns<br />

(xopt, {fopt, xi, direc, iter, funcalls, warnflag}, {allvecs})<br />

xopt<br />

[ndarray] Parameter which minimizes func.<br />

fopt<br />

[number] Value of function at minimum: fopt = func(xopt).<br />

direc<br />

[ndarray] Current direction set.<br />

iter<br />

[int] Number of iterations.<br />

298 Chapter 3. Reference

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

Saved successfully!

Ooh no, something went wrong!