Abstract: This study presents a home energy management system (HEMS) utilizing an improved slime mould algorithm (ISMA) for the efficient energy management of a residential grid-connected microgrid.