The energy economy, flexibility and low carbon of multi-energy system is one of the research hotspots of multi-energy system, a comprehensive energy system optimization scheduling method considering carbon trading is proposed. On the basis of considering the dynamic output of heat network equipment, an optimal dispatch model of the integrated energy system is constructed through energy coupling equipment such as cogeneration units, heat pumps, and gas turbines. Firstly, the thermal dynamics of heating pipes and heating buildings are modeled in detail. Then, taking the lowest operating cost of the integrated energy system and the lowest carbon transaction cost as the objective function, and taking the energy balance constraints and network constraints as the constraints, a day-ahead optimal scheduling scheme of the integrated energy system is proposed. Finally, the simulation results show that the multi-energy optimal scheduling method can effectively reduce the expenditure of the multi-energy system, increase the penetration ratio of wind and solar power generation, and reduce the overall carbon emissions of the system.