Variational approach to differential equations with not instantaneous impulses. (November 2017)