Cooperative Traffic Control Framework for Mixed Vehicular Flows