Existence of an optimal control for differential systems with impulsive effects at nonfixed times (Neliniini Kolyvannya, 2016)