Critical Zone Calculation For Automated Vehicles Using Model Predictive Control