SimPEG.optimization.InexactGaussNewton.modifySearchDirectionBreak#
- InexactGaussNewton.modifySearchDirectionBreak(p)[source]#
Code is called if modifySearchDirection fails to find a descent direction.
The search direction is passed as input and this function must pass back both a new searchDirection, and if the searchDirection break has been caught.
By default, no additional work is done, and the evalFunction returns a False indicating the break was not caught.
- Parameters
p (numpy.ndarray) – searchDirection
- Return type
- Returns
(xt, breakCaught) numpy.ndarray, bool