A hierarchical planning system for energy intensive production environments