Averaging method in problems of optimal control over impulsive systems (Neliniini Kolyvannya, 2019)