bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / optimize / _lbfgsb / setulb
built-in
scipy.optimize._lbfgsb:setulb
Signature
setulb(m, x, l, u, nbd, f, g, factr, pgtol, wa, iwa, task, lsave, isave, dsave, maxls, ln_task)Summary
Limited-memory Broyden-Fletcher-Goldfarb-Shanno with bounds.
Extended Summary
Low-level interface to the L-BFGS-B optimization algorithm. Performs a single iteration step.
Parameters
m: intNumber of limited-memory variable metric corrections.
x: ndarray, shape (n,)Current solution vector, float64. Modified in-place.
l: ndarray, shape (n,)Lower bounds on variables, float64.
u: ndarray, shape (n,)Upper bounds on variables, float64.
nbd: ndarray, shape (n,)Bound type for each variable, int32. 0: unbounded, 1: only lower, 2: both, 3: only upper.
f: floatCurrent objective function value.
g: ndarray, shape (n,)Gradient of objective function at current point, float64.
factr: floatFactor for convergence test on objective function.
pgtol: floatProjected gradient tolerance for convergence.
wa: ndarrayWorkspace array for internal computations, float64.
iwa: ndarrayInteger workspace array for internal computations, int32.
task: ndarrayTask control array encoding algorithm state, int32. Modified in-place.
lsave: ndarrayLogical state array, int32. Modified in-place.
isave: ndarrayInteger state array, int32. Modified in-place.
dsave: ndarrayReal state array, float64. Modified in-place.
maxls: intMaximum number of line search steps per iteration.
ln_task: ndarrayTask string length array, int32.
Returns
: NoneModifies x, task, lsave, isave, and dsave in-place.
Aliases
scipy.optimize._lbfgsb.setulb