Title: Calculation of optimal controls for nonlinear applications