Abstract:This paper presents an optimization method for solving the boundary value question of a differential equation on the basis of the trial-and-error method and the optimization method. As compared with the differential method, this method has some advantages such as quiker velocity at count, higher precision(especially at the boundary points) and can be widely used.