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.

Ns<br />

[int] Default number of samples, if those are not provided.<br />

full_output<br />

[bool] If True, return the evaluation grid.<br />

Returns<br />

(x0, fval, {grid, Jout})<br />

x0<br />

[ndarray] Value of arguments to func, giving minimum over the grid.<br />

fval<br />

[int] Function value at minimum.<br />

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

grid<br />

[tuple] Representation of the evaluation grid. It has the same length as x0.<br />

Jout<br />

[ndarray] Function values over grid: Jout = func(*grid).<br />

Notes<br />

Find the minimum of a function evaluated on a grid given by the tuple ranges.<br />

Scalar function minimizers<br />

fminbound(func, x1,<br />

x2[, args, xtol, ...])<br />

golden(func[, args,<br />

brack, tol, full_output])<br />

bracket(func[, xa,<br />

xb, args, grow_limit,<br />

...])<br />

brent(func[, args,<br />

brack, tol, full_output,<br />

...])<br />

Bounded minimization for scalar functions.<br />

Given a function of one-variable and a possible bracketing interval, return the<br />

minimum of the function isolated to a fractional precision of tol.<br />

Given a function and distinct initial points, search in the downhill direction (as defined<br />

by the initital points) and return new points xa, xb, xc that bracket the minimum of the<br />

function f(xa) > f(xb) < f(xc).<br />

Given a function of one-variable and a possible bracketing interval, return the<br />

minimum of the function isolated to a fractional precision of tol.<br />

fminbound(func, x1, x2, args=(), xtol=1.0000000000000001e-05, maxfun=500, full_output=0, disp=1)<br />

Bounded minimization for scalar functions.<br />

Parameters<br />

func<br />

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

x1, x2<br />

[float or array scalar] The optimization bounds.<br />

args<br />

[tuple] Extra arguments passed to function.<br />

xtol<br />

[float] The convergence tolerance.<br />

maxfun<br />

[int] Maximum number of function evaluations allowed.<br />

full_output<br />

[bool] If True, return optional outputs.<br />

3.12. Optimization and root finding (<strong>scipy</strong>.optimize) 313

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

Saved successfully!

Ooh no, something went wrong!