On the relationship between the energy shaping and the Lyapunov constraint based methods