simpeg.optimization.ProjectedGNCG.scaleSearchDirection#

ProjectedGNCG.scaleSearchDirection(p)[source]#

Scales the search direction if appropriate.

Set the parameter maxStep in the minimize object, to scale back the search direction to a maximum size.

Parameters:
pnumpy.ndarray

The current search direction.

Returns:
numpy.ndarray

The scaled search direction.