  The increasing number of Electric Vehicles (EVs) have led to rising energy
demands which aggregates the burden on grid supply. A few solutions have been
proposed to reduce grid load, for example, using storage systems for storing
surplus energy from EVs or time-scheduling supply. These solutions are costly
and limited to specific regions and times. This paper proposes a smart energy
management solution for a massively electrified road transport network. It
comprises of energy supplies from grid, charging stations, renewable sources
and EVs connected by 5G-enabled aggregators. We propose EVs as prosumers, which
are energy consumers but also supply back their surplus energy via
Vehicle-to-Grid (V2G) technology. We use machine learning to forecast hourly
energy output from renewable sources, surplus supply from EVs and their
demands. A grid cost minimization using Mixed Integer Linear Programming
solution is proposed to dynamically alter supply according to demand and energy
provision from EVs. The upper bounds of surplus supply and demand of EVs are
theoretically derived. An incentive distribution mechanism is presented to
reward EVs offering their surplus supply and to discourage them to become
selfish which is analyzed using Prisoner's dilemma game. The paper also
presents an optimum number of charging stations on a road. Simulation results
show that the proposed solution can effectively meet the demand requirements
even if the supply from grid is limited, and can averagely reduce 38.21% of
grid load. It results in 5.3% of average cost reduction compared with
optimization without prosumers. The proposed penalty charge for CO2 emissions
results in over 50% cost reduction by using renewable resources in the proposed
solution as compared to fossil fuels. The communication and computation
complexity of the proposed solution is reduced by 5G-enabled aggregator.
