Operational optimization: Water losses versus energy costs