simpeg.optimization.ProjectedGNCG.scaleSearchDirection#
- ProjectedGNCG.scaleSearchDirection(p)[source]#
Scales the search direction if appropriate.
Set the parameter
maxStepin the minimize object, to scale back the search direction to a maximum size.- Parameters:
- p
numpy.ndarray The current search direction.
- p
- Returns:
numpy.ndarrayThe scaled search direction.