Text this: Nonlinear Dynamic in an Ecological System with Impulsive Effect and Optimal Foraging