This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / optimize / _optimize / _linesearch_powell

function

scipy.optimize._optimize:_linesearch_powell

source: build-install/usr/lib/python3.14/site-packages/scipy/optimize/_optimize.py:3216

Signature

def _linesearch_powell(func, p, xi, tol = 0.001, lower_bound = None, upper_bound = None, fval = None)

Summary

Line-search algorithm using fminbound.

Extended Summary

Find the minimum of the function func(x0 + alpha*direc).

lower_bound

The lower bounds for each parameter in x0. If the i``th parameter in ``x0 is unbounded below, then lower_bound[i] should be -np.inf. Note np.shape(lower_bound) == (n,).

upper_bound

The upper bounds for each parameter in x0. If the i``th parameter in ``x0 is unbounded above, then upper_bound[i] should be np.inf. Note np.shape(upper_bound) == (n,).

fval

fval is equal to func(p), the idea is just to avoid recomputing it so we can limit the fevals.

Aliases

  • scipy.optimize._optimize._linesearch_powell