Contrainte de Hamilton