Source: http://perso.unifr.ch/ales.janka/numeroptim/JoliManuelPourLaTeX.pdf