In residential section, Studies have shown that, along with the use of various household consumption management techniques, the so-called hubs of energy can also be used to improve the performance and management of home energy management. In each electrical energy system, customers are aiming to minimize their energy costs. In this paper, it can be seen that in each home a home-made residential energy hub can be used, including different consumables, energy storage systems (Battery, electric vehicle), energy production systems (solar photovoltaic, wind or energy produced from a gas plant Solar hybrid) and two-way communication links between these components. It should be noted that in this paper, the hub system consists of CHP (combined heat and power), PHEV (plug-in hybrid electric vehicle), HLM (home load management), DR (demand response program) and TS (thermal storage), which should reduce the electrical and thermal load with the lowest cost of feeding. Finally, the effects of load accountability and storage systems in the numerical study are reviewed and the results are compared, which indicates the effectiveness of the proposed model.