A Line Search function
A Line Search function
a function (the objective) that takes a single input (X), the point of evaluation, and returns f(X) and df/dX
initial point / starting location
initial step size
descent direction
initial function value
gradient at initial location
directional derivative at starting location
linesearch options
f : Double function value at x+t*d g : Tensor gradient value at x+t*d x : Tensor the next x (=x+t*d) t : Double the step length lsFuncEval : Int the number of function evaluations
Line Search strategy