Distributed generation can actively participate in the day-ahead markets, real-time power balance, and wholesale gas markets to achieve various goals, such as supplying gas to various electric power generation plants. A multi-objective network with two types of loads is considered in this paper. The reason for the simultaneous optimization of these two networks is that these two energy carriers are dependent on each other and gas is needed to produce electricity, so this issue can be addressed with a multi-objective function. The simulation carried out in this article is coded in GAMS software as a mixed integer linear programming (MILP). The efficiency of gas turbines and fuel cells in this article is dependent on their working point, and considering the exact model of these resources and the relationships related to the calculation of their fuel consumption is non-linear. On the other hand, a binary variable has been used to show the charging and discharging state of the storage and the on-and-off state of the gas turbines. Therefore, the problem considered in this article is a MILP problem. The results of this article are the proper planning of charging and discharging of the energy storage system with the proper planning of the power generation of different energy sources considering the network loads in two optimized and non-optimized scenarios.