Solution for optimal control of general nonlinear systems using generating functions. Issue 3 (11th April 2022)