BacktrackingLineSearch.__call__

BacktrackingLineSearch.__call__(x, direction, dir_derivative=None)[source]

Calculate the optimal step length along a line.

Parameters

xLinearSpaceElement

The current point

directionLinearSpaceElement

Search direction in which the line search should be computed

dir_derivativefloat, optional

Directional derivative along the direction Default: function.gradient(x).inner(direction)

Returns

stepfloat

The computed step length