The Optimal Control Of Dynamic Pest Populations