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