Text this: Numerical simulation and dynamical system for solving biomathematical model with optimal control