Solve sparse PCA problem by employing Hamiltonian system and leapfrog method