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
direction
Default:function.gradient(x).inner(direction)
- x
- Returns:
- stepfloat
The computed step length