Abstract
This paper proposes an algorithm to obtain the solution of optimization problem. This method describes the solution by B-spline curves and optimizes the values of control points of B-spline by the Complex Method. The optimality of the algorithm is numerically confirmed by applying to the problems of differential equation and optimal control.