OPTIMIZATION OF ENERGY COSTS