A modified mathematical model based on the Activated Sludge Model No. 2d (ASM2d) was established to describe the effluent qualities of the enhanced biological phosphate removal (EBPR) system A20. There were three modifications to the model in this study: