https://medium.com/@monocosmo77/working-with-global-optimization-in-machine-learning-scenarios-part1-30693f360c45