Variational method to differential equations with instantaneous and non-instantaneous impulses. (August 2019)