bundles / scipy latest / scipy / optimize / _lsq / common / solve_trust_region_2d
function
scipy.optimize._lsq.common:solve_trust_region_2d
Signature
def solve_trust_region_2d ( B , g , Delta ) Summary
Solve a general trust-region problem in 2 dimensions.
Extended Summary
The problem is reformulated as a 4th order algebraic equation, the solution of which is found by numpy.roots.
Parameters
B: ndarray, shape (2, 2)Symmetric matrix, defines a quadratic term of the function.
g: ndarray, shape (2,)Defines a linear term of the function.
Delta: floatRadius of a trust region.
Returns
p: ndarray, shape (2,)Found solution.
newton_step: boolWhether the returned solution is the Newton step which lies within the trust region.
Aliases
-
scipy.optimize._lsq.common.solve_trust_region_2d