Optimization of Potable Water Distribution and Wastewater