Optimal Control Approach to Scheduling Power Supply Facilities: Theory and Heuristics