I need to solve an optimal control problem with an objective function minimization solution. The reference for me is the APM example available at: https://www.youtube.com/wa