The problem of solving the optimal control problem is discussed. It is well known that the optimal control problem can be formulated as a nonlinear two-point boundary-value problem. This paper discusses the algorithm for solving the two-point boundary-value problem. The approach is converting the two-point boundary-value problem into the initial single-point problem and applying the Newton method to improving assumed initial variables. The feature of the algorithm is that the storage is little. A computational procedure is shown in the flow chart.