Solutions of optimal feedback control problems with general boundary conditions using Hamiltonian dynamics and generating functions | IEEE Conference Publication | IEEE Xplore