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:
- p
numpy.ndarray
The current search direction.
- p
- Returns:
numpy.ndarray
The scaled search direction.