The comprehensive energy resource management for essential reduction of the total cost