This a code repository of the paper:
C. Ju, P. Wang, L. Goel and Y. Xu, "A Two-Layer Energy Management System for Microgrids With Hybrid Energy Storage Considering Degradation Costs," in IEEE Transactions on Smart Grid, vol. 9, no. 6, pp. 6047-6057, Nov. 2018, doi: 10.1109/TSG.2017.2703126.