simpeg.optimization.Minimize.scaleSearchDirection#

Minimize.scaleSearchDirection(p)[source]#

scaleSearchDirection should scale the search direction if appropriate.

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

Parameters:

p (numpy.ndarray) – searchDirection

Return type:

numpy.ndarray

Returns:

p, Scaled Search Direction