https://medium.com/@monocosmo77/applications-of-optimal-control-in-machine-learning-scenarios-part2-machine-learning-optimization-4e925edf236f