Source: http://leonard.perso.math.cnrs.fr/teaching/L3 gestion-optimisation-livret de td.pdf