Intuition
The ‘best’ stepsize is when the gradient of objective function against the stepsize exactly = 0
Method
-
Calculate the Gradient ‘g’ at the current location ‘x’
-
Assign search direction \(p = -g\)
-
Calculate the Gradient ‘g’ at the current location ‘x’
-
Calculate the current stepsize as: \(\alpha = \frac{\alpha * (p^T \cdot p / \left|p\right|)}{g^T \cdot g / \left|g\right|}\)
-
Take the current step: \(x = x + \frac{\alpha * (-g)}{\left|g\right|}\)
-
Repeat step 2-5 until convergence