Cyber/physical interplay in the real-time scheduling for peak load optimization of electric loads