Direct approaches for PDE-constrained dynamic optimization based on space–time orthogonal collocation on finite elements. (April 2023)