{ } Raw JSON

bundles / scipy latest / scipy / optimize / _lsq / common / intersect_trust_region

function

scipy.optimize._lsq.common:intersect_trust_region

source: /scipy/optimize/_lsq/common.py :18

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 float

Negative and positive roots.

Raises

: ValueError

If s is zero or x is not within the trust region.

Aliases

  • scipy.optimize._lsq.common.intersect_trust_region