https://tgquintela.github.io/notes/mathematical_optimization