Text this: Self-Learning Optimal Control of Nonlinear Systems