bundles / scipy latest / scipy / optimize / _lsq / dogbox / dogleg_step
function
scipy.optimize._lsq.dogbox:dogleg_step
source: build-install/usr/lib/python3.14/site-packages/scipy/optimize/_lsq/dogbox.py:108
Signature
def dogleg_step(x, newton_step, g, a, b, tr_bounds, lb, ub)Summary
Find dogleg step in a rectangular region.
Returns
step: ndarray, shape (n,)Computed dogleg step.
bound_hits: ndarray of int, shape (n,)Each component shows whether a corresponding variable hits the initial bound after the step is taken: * 0 - a variable doesn't hit the bound. * -1 - lower bound is hit. * 1 - upper bound is hit.
tr_hit: boolWhether the step hit the boundary of the trust-region.
Aliases
scipy.optimize._lsq.dogbox.dogleg_step