Real -Time Optimization Of The Wastewater Treatment Process