Finite-Horizon Optimal Control for Linear and Nonlinear Systems Relying on Constant Optimal Costate | Synapse