In view of the large water temperature difference between supply and return caused by regulation methods in the current heating system,this research focuses on the development of an intelligent regulation method for the electric regulating valve in the heating system based on the optimal control algorithm.A quantitative relationship model between flow rate and valve opening was established by accurately estimating the flow rate.Furthermore,in the centralized heating system environment,this regulation method is adopted to calculate the supply and return water temperatures,and the particle swarm optimization algorithm is applied to improve the quality regulation mode,guiding the valve regulation process with the optimal fitness value.To ensure the smoothness and efficiency of the regulation process,the system closely monitors the instantaneous flow rate of the water supply of a network of heat meters,ensuring that the flow adjustment within half an hour is strictly controlled within the preset threshold.At the same time,the introduction of a pump delay mechanism effectively avoids the potential impact of sudden adjustments on system stability.The experimental data shows that the temperature difference between the supply and return water remains stable below 12℃throughout the entire monitoring period,fully verifying the significant effect of the optimization control algorithm proposed in this paper in regulating the electric regulating valve.