Text this: Optimal Control Model for Assessing the Economic Consequences of the Epidemic Process