S. V. Belokopytov, M. G. Dmitriev, Solution of classical optimal control problems with a boundary layer