Gradient method optimization example. (Technically an ODE constrained optimization problem.