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 / _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 : bool

Whether the step hit the boundary of the trust-region.

Aliases

  • scipy.optimize._lsq.dogbox.dogleg_step