Given the increasing growth of population and community’s need for access to resources, such as water and electricity, optimization and management at all sections of the community are necessary, the present study has sought to develop a program according to which, the existing pumps will be turned on during non-peak hours of electricity consumption and the water stored in reservoirs will be used from 6 pm to 11 pm. For this purpose, minimum costs of use of pumps are calculated by presenting an appropriate solution and providing target function and with the help of a genetic optimization algorithm. To study the effect of changing the volume of the reservoir on the cost of energy, a volume of two thousand cubic meters was added to the previous volume. The obtained results showed that with the change in the volume, about 23% of electricity cost savings was achieved and it amounted to 1,737,000 Riyals on the same day. A pre-requirement for optimization and reduction of energy costs is being familiar with the cost of electricity in each hour of the day. In order to compare the obtained results with the ordinary state, the cost of electricity for 24 hours in an ordinary state should be calculated. Hence, the classification method of energy cost for 24 hours was examined. Then, using the data obtained from Water and Wastewater Organization in the province, the working hours of all the 7 pumps were calculated, and the cost of electricity consumption in the pumping station was examined at 3 ordinary days of the year.