The present invention relates to a method for controlling pumping station of waterworks by using computer programme, in particular, it is an optimized controlling method for pumping station. According to the corelated factors fed back by sensor, said method uses a computer to analyze the obtained hourly water rate data base of the corelated area, and then regulates the rotating speed or frequency of variable speed pump according to the hourly water requirement and hourly water pressure of the variable speed pump. Said optimized controlling method can meet the requirements of user for water demand and water pressure, and can reduce electric consumption in the cost for making up water, and the electric consumption can be evenly reduced by 5-15%. |