This work has been presented at the 2020 Annual IEEE Texas Power and Energy Conference (TPEC) in Texas, USA and published here.
The simulation of individual microgrids working independently are provided in the following codes:
The independent microgrids are clustered and the energy routing is enabled using the Smart Energy Routing Algorithm which is given in the following code:
Smart-Energy-Routing-Algorithm.ipynb
The load demand and the solar energy available for every hour for 20 years must be provided as inputs to the codes as .csv files.