As manufacturers face the challenges of increasing global competition and energy saving requirements, it is imperative to seek out opportunities to reduce energy waste and overall cost. This research establishes theory and develops automated real-time distributed control schemes to cope with the complex nature of manufacturing processes and systems to achieve higher energy efficiency and profit. The problem is formalized as an online decision-making problem under uncertainty. A supervisory control architecture with partial decentralization is adopted