BacktrackingLineSearch.__call__
- BacktrackingLineSearch.__call__(x, direction, dir_derivative=None)[source]
Calculate the optimal step length along a line.
Parameters
- x
LinearSpaceElement The current point
- direction
LinearSpaceElement Search direction in which the line search should be computed
- dir_derivativefloat, optional
Directional derivative along the
directionDefault:function.gradient(x).inner(direction)
Returns
- stepfloat
The computed step length
- x