bundles / scipy 1.17.1 / scipy / optimize / _trustregion_ncg / CGSteihaugSubproblem / solve
function
scipy.optimize._trustregion_ncg:CGSteihaugSubproblem.solve
Signature
def solve ( self , trust_radius ) Summary
Solve the subproblem using a conjugate gradient method.
Parameters
trust_radius: floatWe are allowed to wander only this far away from the origin.
Returns
p: ndarrayThe proposed step.
hits_boundary: boolTrue if the proposed step is on the boundary of the trust region.
Notes
This is algorithm (7.2) of Nocedal and Wright 2nd edition. Only the function that computes the Hessian-vector product is required. The Hessian itself is not required, and the Hessian does not need to be positive semidefinite.
Aliases
-
scipy.optimize._trustregion_ncg.CGSteihaugSubproblem.solve