Optimizing pump operation in urban water distribution systems represents a critical task for enhancing energy efficiency. Despite extensive research, achieving optimal pump operation remains a challenge due to the presence of conflicting objectives, such as minimizing energy costs and ensuring adequate pressure head availability. The recent emphasis on maintaining distributed water quality further increases the complexity of the problem. Mathematically, the optimization problem manifests as a non-convex and non-continuous search space, necessitating the application of non-derivative optimization techniques, which are highly susceptible to constraints. This work presents a comprehensive analysis of optimal pump operation, considering energy efficiency and water quality as primary objectives. A series of constraints are progressively incorporated into the model to evaluate their impact on the final operational strategy. Initially, single-objective optimization is employed using the Particle Swarm Optimization (PSO) algorithm, a robust and widely adopted approach in water resources research. Subsequently, a multi-objective algorithm, the Non-dominated Sorting Genetic Algorithm-II (NSGA-II), is utilized to identify the Pareto front, encompassing both energy consumption and water quality indicators. The results demonstrate that constraints exert a significant influence on the final energy consumption and the convergence of the optimization process. Moreover, by simultaneously considering both objectives, this study proves the feasibility of identifying an optimal operational scheme that minimizes energy consumption while maintaining acceptable water quality.