simpeg.optimization.BFGS.scaleSearchDirection#
- BFGS.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:
- pnumpy.ndarray
- The current search direction. 
 
- p
- Returns:
- numpy.ndarray
- The scaled search direction. 
 
 
