Method-for-Optimizing-Energy-Consumption