optimize energy operations