Coexistence and optimal control problems for a degenerate predator-prey model