Source: https://math.unice.fr/~diener/MAB07/MCO.pdf