On the Use of Agile Optimization for Efficient Energy Consumption in Smart Cities’s Transportation and Mobility