Abstract: This letter proposes an algorithm for solving finite-time nonlinear optimal control problems. The proposed method employs the Gauss pseudospectral method to transform the optimal control ...