Visible to the public A Dynamic Optimization Framework for Connected Automated Vehicles in Urban Environments