Optimization of Total Operating Costs Using Electric