In order to extend and alleviate or even cancel the demand for the renovation and upgrading of transmission and distribution facilities, an energy storage system model for the comprehensive energy distribution network is constructed, which combines energy storage configuration with system operation optimization. Based on the concept of model predictive control, combined with internal combustion engines, waste heat boilers, and gas boilers, the economic operation of the side heating system in the distribution network is achieved through rolling optimization and feedback correction. The objective function of optimization is to minimize the total investment cost throughout the entire life cycle of energy storage equipment, leverage the functions of peak shaving, valley filling, and load smoothing of energy storage equipment, and coordinate optimization to achieve better economic benefits and distribution network stability.