Optimization problems for one-impulsive models from population dynamics