Line Search Method Example. optimize. Line search methods Given a starting point xk and a di