Regulation problems in wastewater plants based on activated sludge technology. Solutions and experimental verification for a case study