Automated Dynamic Demand Response Implementation on a Micro-grid