Energy Management System for a Residential Microgrid in a Power Hardware-in-the-Loop Platform | IEEE Conference Publication | IEEE Xplore