To address the imbalance of multiple types of energy supply and demand in the comprehensive energy system of coastal cities,a scheduling optimization strategy of the comprehensive energy system in coastal cities considering tiered carbon trading and heat-to-power ratio is proposed.First,the model of hydrogen production by electrolysis of seawater desalination,a tiered carbon trading mechanism,and a model with an adjustable heat-to-power ratio are introduced.Second,the CPLEX solver is used to set various operation scenarios with the minimum cost of energy purchase,carbon emission cost and wind abandonment cost as the optimization objectives Finally,simulation experiments are conducted on the scheduling optimization strategy of the comprehensive energy system in coastal cities considering tiered carbon trading and heat-to-power ratio.The simulation results show that the proposed model can flexibly provide various types of energy while reducing the costs of wind power curtailment,energy purchase,and carbon trading in system operation.