optimizing energy operations