Source: http://mathematiques.lmrl.lu/Exercices/Exercices_de_2e/Problemes_optimisation_corrige.pdf