A Simulated Annealing Algorithm(SA) for optimization of variable speed pumps in water supplying system is presented in this paper. The encoding, decoding and energy expressions considering restrictions are also provided. The results of simulation example show SA is efficient in optimization for hybrid of discrete and continuous variables.