The invention is directed to a method an apparatus for treating
wastewater. The wastewater treatment system includes an aeration system
that cycles between biological multiple biological basins. The system
also includes one or more membrane basins. A method of the invention
includes controlling the introduction of air into each biological basin
in response to one or more operating conditions.