bundles / scipy 1.17.1 / scipy / optimize / _lsq / common / intersect_trust_region
function
scipy.optimize._lsq.common:intersect_trust_region
Signature
def intersect_trust_region ( x , s , Delta ) Summary
Find the intersection of a line with the boundary of a trust region.
Extended Summary
This function solves the quadratic equation with respect to t ||(x + s*t)||**2 = Delta**2.
Returns
t_neg, t_pos: tuple of floatNegative and positive roots.
Raises
: ValueErrorIf
sis zero orxis not within the trust region.
Aliases
-
scipy.optimize._lsq.common.intersect_trust_region