An Energy Resource Scheduler Implemented in the Automatic Management System of a Microgrid Test Facility