Numerical Methods for Solving Optimal Control Problems