Optimal location and design of wastewater treatment plants under river quality constraints