The anoxic–oxic (A/O) municipal wastewater treatment plant (WWTP) of Manresa (Catalonia, Spain) was studied for a possible conversion to an anaerobic/anoxic/oxic (A2/O) configuration to promote enhanced biological phosphorus removal. The control structure had to be redesigned to satisfy the new necessity to control phosphorus concentration, besides ammonium and nitrate concentrations (main pollutant concentrations). Thereby, decentralized control structures with proportional-integral-derivative (PID) controllers and centralized control structures with model-predictive controllers (MPC) were designed and tested. All the designed control structures had their performance systematically tested regarding effluent quality and operating costs. The centralized control structure, A2/O-3-MPC, achieved the lowest operating costs with the best effluent quality using the A2/O plant configuration for the Manresa WWTP. The controlled variables used in this control structure were ammonium in the effluent, nitrate at the end of the anoxic zone and phosphate at the end of the anaerobic zone, while the manipulated variables were the internal and external recycle flow rates and the dissolved oxygen setpoint in the aerobic reactors.

Enhanced biological phosphorus removal (EBPR) from wastewater requires an anaerobic step that is not often present in wastewater treatment plants (WWTPs; Tchobanoglous et al. 2003). To convert old WWTP facilities with chemical oxygen demand (COD) and nitrogen (N) removal into new ones with additional EBPR, a retrofitting process should be carried out, including a new control structure design, since two variables will appear inside the control system: the phosphorus concentration (usually at the effluent stream, as a controlled variable) and the biomass recycle stream (as a manipulated variable).

The control structure design enables: the choice and order of the most important controlled and manipulated variables, selection of the type of arrangement among variables (feedback control, feedforward control, on-off control), and establishment of the kind of controller to be implemented (decentralized or centralized) (Skogestad 2004). The best pairing of controlled and manipulated variables for decentralized control loops can be selected by relative gain array (RGA) (Bristol 1966) and minimized condition number analysis (Boyd 1994).

RGA analysis could help to evaluate the weight of the optimization problem in cases using a model predictive control (MPC) (Maciejowski 2002; Stare et al. 2006). As there is a noticeable difference in the effort spent to implement decentralized (easier) and centralized control structures, this work presents systematic comparisons between control structures designed for a full-scale WWTP at Manresa (Catalonia, Spain), which is an A/O plant that should be converted into an A2/O plant. Physically, this conversion is possible since two of the six anoxic basins of the current plant could be modified to operate without the influence of the nitrate recycle.

Therefore, the main objective of this work was to study the effect of the retrofitting process of a WWTP in its controllability. The RGA of the main controlled and manipulated variables (control matrix) was evaluated with the new A2/O configuration to identify the best control structure. The different control alternatives were optimized to achieve the maximum effluent quality with minimum operating costs.

The WWTP of Manresa consists of a pre-treatment (coarse and fine screening), primary treatment with two clarifiers and a secondary stage (biological removal) based on a modified Ludzack–Ettinger configuration. There are two main treatment lines in the secondary stage, each with three anoxic reactors (1,460 m3), one aerobic reactor made up by two parts of 3,390 m3 and a settler (1,385 m3). The average treated flow rate is 27,000 m3/d.

The new A2/O plant configuration for the Manresa WWTP was modeled based on the IWA ASM2d model (Henze et al. 2000). The Takács et al. (1991) model was used for describing settling. The dynamics of the measured variables at the effluent due to the settler hydraulics were also considered. The complete model description of the full-scale WWTP is presented in Machado et al. (2014). The influent was characterized for the application of the ASM2d, and plant data for 3 years were used to calibrate the non-linear model according to the ‘seeds’ methodology (Machado et al. 2009a). This procedure is based on the Fisher Information Matrix (FIM) and allows calibration of models with the lowest number of parameters and assessment of its confidence interval, avoiding correlation between the parameters optimized. The A2/O configuration proved the best one for this WWTP after performing a systematic set of comparisons with other plant configurations, such as the UCT (University of Cape Town) and BARDENPHO (BARnard-DENitrification-PHOsphorus). The criteria used to decide the best plant configuration were the minimal investment and operation costs (CAPEX and OPEX) and the best effluent quality (Machado 2012).

For process control analysis, a set of first-order plus time-delay (FOPTD) linear transfer functions were obtained from the non-linear model previously calibrated by linearization at the conventional operating point. A sequence of known perturbations on the input variables (like dissolved oxygen (DO) setpoint, internal and external recycle flowrates) was applied to the non-linear model to generate an output vector y(t), which is the variable of interest (like ammonium, nitrate and phosphate concentrations) and a black-box algorithm was used to identify the input–output relationships, producing the Output-Error (OE) model (Ljung 1999; Machado et al. 2009b) in a simulation environment (Simulink®, Matlab). The OE model structure is represented in Equation (1):
formula
1
where y(t) is the output (controlled variable), u(t-nK) is the input (manipulated variable) at nK sample intervals before the current time. The variable e(t) is the prediction error; B(q) and F(q) are polynomials that represent the process model G(q) (relationship between the input and the output) and their parameters should be identified. Polynomials B(q) and F(q) are expressed by Equations (2) and (3):
formula
2
formula
3
where nb and nf are the orders of B(q) and F(q), respectively. Variable ‘q’ is the shift operator. So, q−1 applied to y(t) produces y(t-1), which is the previous value of y(t). The coefficients of B(q) and F(q) are determined, therefore, solving an optimization problem in which the squared prediction error is minimized over the whole set of input–output data of N entries. The optimization variables of this problem are the coefficients of B(q) and F(q). The objective function is presented in Equation (4):
formula
4

The discrete model identified with the OE algorithm was converted to the continuous domain for tuning the process controllers. All the model relationships among plant inputs (DO setpoint in the aerobic zone, internal (QRINT) and external (QRAS) recycling flowrates) and outputs (ammonium in the effluent [NH4+]EFF, nitrate in the effluent [NO3]EFF and at the end of the anoxic zone [NO3]ANOX, and phosphate in the effluent [PO43−]EFF, and at the end of the anaerobic zone, [PO43−]ANAER) were determined. Figure 1 shows an example of data used for model identification between the input DO setpoint in the aerobic basin and the ammonium concentration in the effluent, presented as deviation variables.

Figure 1

Input and output time series for modeling the relationship between the effluent ammonium concentration and DO in the aerobic basin, presented as deviation variables with respect to the initial values. The upper graph compares the plant data (non-linear model) used and the identified linear model (FODT). The lower graph is the DO time series (provoked perturbation).

Figure 1

Input and output time series for modeling the relationship between the effluent ammonium concentration and DO in the aerobic basin, presented as deviation variables with respect to the initial values. The upper graph compares the plant data (non-linear model) used and the identified linear model (FODT). The lower graph is the DO time series (provoked perturbation).

Close modal

Regarding the model's uncertainty due to its identification in a single operating point, as the linear models were used for controller design, and they work inside a feedback loop, the uncertainties do not matter significantly since the feedback behavior is present. The main idea behind the controller design used in this work is to have controllers that are easy to implement in a real environment. If the linearization point is correctly selected, the WWTP will operate most of the time near this operating point, where the controller performance will be higher but, in any case, the feedback structure will allow for the correcting of any deviations if the system is operating far from the linearization point.

The RGA gives information to help decide suitable and non-suitable input/output pairings. RGA interaction measurements are defined for linear models, which are usually obtained in just a single operating point. Then, the analysis obtained is only strictly valid with in a small neighborhood of the linearization point (Halvarsson 2010). In addition, dynamic RGA calculation can also be limited by changes in best pairing results obtained at different frequencies and also by the assumptions considered in the non-linear model used for obtaining the linear models. Hence, controllers designed with RGA recommendations should be finally tested in wide operating conditions.

The RGA was calculated for the different subsets created with the previously developed FOPTD transfer function matrix of the plant, following the procedures detailed in Machado et al. (2009b). Decentralized control structures (three loops per structure) were made using the PID controllers and the centralized ones with an MPC. The MPC used was a standard fourth generation like the DMC-Plus (Honeywell, Houston, TX, USA) with a constraint optimization problem being solved at each time step with a receding horizon. In addition, some of the decentralized control structures were tested within an optimization setpoint program of the three control loops in order to minimize the total operating cost, which takes account of the costs of aeration, sludge treatment, pumping and effluent quality (Copp et al. 2002; Stare et al. 2007; Machado et al. 2009b). The operating costs were calculated the same way for all the tested control structures.

The experimental data used for evaluating controller performance and operating costs were based on real WWTP data for a period of 1 year, which included daily variations measured in the influent. The experimentally determined influent stream characteristics (Montpart 2010) were SI = 0.080 COD, XI = 0.055 COD, XS = 0.450 COD and SF = 0.410 COD, and these ratios were assumed to be constant. The values of the influent variables XTSS, SNH4, SNO3, SPO4 and COD were assumed to be equal to the experimental observations (analysis of daily composite samples). The variables SA, XPHA, XPAO, XPP, SN2, SO2, XA and XMEP were assumed to be zero. The WWTP was first simulated during 1,200 days under average influent data to obtain steady state conditions. Then, dynamic simulations for 1 year were performed using the real influent daily data.

Four possible sets of control and manipulated variables (Figure 2) were compared for controlling the proposed A2/O plant configuration (decentralized control structures). Note that the pairing selected was similar: the DO was manipulated to control the ammonium concentration at the aerobic zone, while the internal recycle and the external recycle were manipulated to control nitrate ([NO3]ANOX or [NO3]EFF) and phosphate ([PO43−]ANAER or [PO43−]EFF), respectively. The three manipulated variables were the same for all the structures, while the three controlled variables were modified. The objective of the A2/O-1 structure is controlling nitrate, ammonium and phosphate in the effluent, manipulating the internal recycle flowrate, the DO setpoint in the aerobic reactors and the external recycle flowrate. This structure could be of interest because the quality of the effluent can be monitored with the same online nutrient sensors used for control. However, from a controllability point of view, the measurements are all in the last point of the WWTP; hence, a delayed update of information is expected for the controller, introducing low performance under dynamic conditions. The A2/O-2 structure moves the measuring point of nitrate to the end of the anoxic zone, improving the response time for the nitrate control loop and providing lower interactions among the control loops. The A2/O-3 structure moves the measurement point of phosphate to the end of the anaerobic reactor. This change decreases the response time of the phosphate loop, theoretically improving its controllability. The three sampling points in this structure for nitrate, ammonium and phosphate are located in different parts of the plant (anoxic reactor, effluent and anaerobic reactor, respectively) providing probably the lower interaction among the three control loops. In the last control structure, A2/O-4, phosphate is controlled at the end of the anaerobic reactor as in A2/O-3, while the nitrate and ammonium are controlled at the effluent, as in A2/O-1. It is worth noting that these four control structures were chosen to be tested based on the criteria to pair ammonium with DO setpoint, nitrate concentration to the internal recycle flowrate and phosphate concentration to the external recycle flowrate. The abovementioned control and manipulated variables produce 24 possible combinations of control structure. The four selected control structures are the most usual and would be well accepted by plant owners, process engineers and WWTP workers since they are readily understandable.

Figure 2

Simplified process flow diagram of the Manresa WWTP, the decentralized control structures: A2/O-1, A2/O-2, A2/O-3 and A2/O-4, and the three process controllers: C1 (ammonium), C2 (nitrate) and C3 (phosphate).

Figure 2

Simplified process flow diagram of the Manresa WWTP, the decentralized control structures: A2/O-1, A2/O-2, A2/O-3 and A2/O-4, and the three process controllers: C1 (ammonium), C2 (nitrate) and C3 (phosphate).

Close modal

It is important to note that adding external biodegradable COD (bCOD) to the influent to improve nitrate control was not evaluated since the number of possible control structures to analyze would increase substantially. Moreover, the operating costs would increase to a proportion that the plant owner could not afford. Conversely, the internal recycle flow rate is the typical manipulated variable when denitrification must be controlled. Both nitrate concentration in the anoxic reactor and the nitrate concentration in the effluent can be used as controlled variables from a control point of view, as a modification of the internal recycle flowrate has an effect on both variables, even under limited bCOD availability, as in the Manresa WWTP.

FOPTD linear models (Table 1) were identified for the main inputs (DO setpoint in the aerobic reactors, internal and external recycle flowrates) and outputs (ammonium in the effluent, nitrate in the anoxic reactor and in the effluent, and phosphate in the anaerobic reactor and in the effluent) using the complete ASM2d model for both the A/O and the retrofitted A2/O configurations.

Table 1

FOPTD models for the current A/O and retrofitted A2/O plant configurations

Manipulated variables
Controlled variables [g m−3]DOSP [g O2 m−3]QRINT [m3 d−1]QRAS [m3 d−1]
A/O Model (current WWTP configuration) 
 [NH4+]EFF    
 [NO3]ANOX    
 [NO3]EFF    
 [PO43−]ANAER Non-existent Non-existent Non-existent 
 [PO43−]EFF    
A2/O Model (retrofitted WWTP configuration) 
 [NH4+]EFF    
 [NO3]ANOX    
 [NO3]EFF    
 [PO43−]ANAER    
 [PO43−]EFF    
Manipulated variables
Controlled variables [g m−3]DOSP [g O2 m−3]QRINT [m3 d−1]QRAS [m3 d−1]
A/O Model (current WWTP configuration) 
 [NH4+]EFF    
 [NO3]ANOX    
 [NO3]EFF    
 [PO43−]ANAER Non-existent Non-existent Non-existent 
 [PO43−]EFF    
A2/O Model (retrofitted WWTP configuration) 
 [NH4+]EFF    
 [NO3]ANOX    
 [NO3]EFF    
 [PO43−]ANAER    
 [PO43−]EFF    

The model time constants and the time delays are reported in days.

The comparison of the unit step response of the FOPTD transfer function models for both configurations (Figure 3) shows some interesting features. The effect of QRINT and QRAS on ammonium in the effluent in both configurations is very different, because an increase of these flowrates in the A2/O configuration produces a higher decrease of ammonium in the effluent. The A2/O configuration also improves denitrification control since the time constant of model [NO3]EFF vs QRINT (or also [NO3]ANOX vs QRINT) was reduced after the retrofitting process. In addition, there was a simultaneous increase of the gain for the model [NO3]EFF vs QRINT and a decrease for the model [NO3]ANOX vs QRINT, indicating that the A2/O configuration improves the denitrification process in the WWTP. In this sense, the same increase of internal recycle produces a lower increase of [NO3]ANOX in the A2/O configuration (higher capacity to remove nitrate in the anoxic reactor) and there is a higher decrease in [NO3]EFF (higher reduction of nitrate in the effluent). Finally, the FOPTD models for phosphate show that the manipulated variables have negligible effects for the A/O configuration, decreasing its identifiability and providing very low gains or high time constants. These results appear because of the lack of anaerobic reactor in the A/O configuration not allowing the growth of polyphosphate accumulating microorganisms (PAO). For the A2/O configuration, higher and faster effects are observed for the change of the manipulated variables and the transfer functions can be identified. In addition, the phosphate transfer functions in the new anaerobic reactor can be obtained.

Figure 3

Unit step response of A/O and A2/O linear models. Inputs are the DO setpoint at the aerobic zone (DO), the internal recycle (QRINT) and external recycle (QRAS) flow rates setpoint. Outputs are the ammonium concentration at the effluent, the nitrate concentration at the end of the anoxic zone, the nitrate concentration at the effluent, the phosphate concentration at the end of the anaerobic zone and, finally, the phosphate concentration at the effluent.

Figure 3

Unit step response of A/O and A2/O linear models. Inputs are the DO setpoint at the aerobic zone (DO), the internal recycle (QRINT) and external recycle (QRAS) flow rates setpoint. Outputs are the ammonium concentration at the effluent, the nitrate concentration at the end of the anoxic zone, the nitrate concentration at the effluent, the phosphate concentration at the end of the anaerobic zone and, finally, the phosphate concentration at the effluent.

Close modal

The pairing among manipulated and measured variables with the best control characteristics can be provided by RGA analysis. Table 2 shows the RGA results obtained with these four control structures.

Table 2

RGA for four different combinations, at two different frequencies (ω = 0 rad/d and ω = 1 rad/d) between inputs and outputs for the A2/O plant configuration

Inputs
Control structureOutputsDOQRINTQRAS
ω = 0 rad/d (steady state RGA) 
 A2/O-1 NH4+ Eff. 1.5341 0.2806 − 0.8147 
NO3 Eff. − 0.2138 2.8895 − 1.6757 
PO43− Eff. − 0.3203 − 2.1701 3.4904 
 A2/O-2 NH4+ Eff. 1.2934 0.1063 − 0.3997 
NO3 Anox. 0.2771 6.1878 − 5.4649 
PO43− Eff. − 0.5704 − 5.2941 6.8646 
 A2/O-3 NH4+ Eff. 1.0382 − 0.0309 − 0.0073 
NO3 Anox. − 0.0848 0.1824 0.9024 
PO43− Anaer. 0.0465 0.8486 0.1049 
 A2/O-4 NH4+ Eff. 0.7857 − 0.0133 0.2276 
NO3 Eff. 0.1531 0.1993 0.6476 
PO43− Anaer. 0.0612 0.8141 0.1248 
ω = 1 rad/d (dynamic RGA) 
 A2/O-1 NH4+ Eff. 2.5490 0.2427 − 1.7917 
NO3 Eff. − 0.2697 2.3655 − 1.0959 
PO43− Eff. − 1.2793 − 1.6082 3.8875 
 A2/O-2 NH4+ Eff. − 0.6982 − 0.7603 2.4585 
NO3 Anox. − 0.3488 − 5.9548 7.3036 
PO43− Eff. 2.0470 7.7151 8.7621 
 A2/O-3 NH4+ Eff. 0.9805 − 0.0284 0.0480 
NO3 Anox. − 0.0556 0.1080 0.9475 
PO43− Anaer. 0.0751 0.9204 0.0045 
 A2/O-4 NH4+ Eff. 0.6814 − 0.0194 0.3381 
NO3 Eff. 0.1863 0.1594 0.6544 
PO43− Anaer. 0.1324 0.8601 0.0076 
Inputs
Control structureOutputsDOQRINTQRAS
ω = 0 rad/d (steady state RGA) 
 A2/O-1 NH4+ Eff. 1.5341 0.2806 − 0.8147 
NO3 Eff. − 0.2138 2.8895 − 1.6757 
PO43− Eff. − 0.3203 − 2.1701 3.4904 
 A2/O-2 NH4+ Eff. 1.2934 0.1063 − 0.3997 
NO3 Anox. 0.2771 6.1878 − 5.4649 
PO43− Eff. − 0.5704 − 5.2941 6.8646 
 A2/O-3 NH4+ Eff. 1.0382 − 0.0309 − 0.0073 
NO3 Anox. − 0.0848 0.1824 0.9024 
PO43− Anaer. 0.0465 0.8486 0.1049 
 A2/O-4 NH4+ Eff. 0.7857 − 0.0133 0.2276 
NO3 Eff. 0.1531 0.1993 0.6476 
PO43− Anaer. 0.0612 0.8141 0.1248 
ω = 1 rad/d (dynamic RGA) 
 A2/O-1 NH4+ Eff. 2.5490 0.2427 − 1.7917 
NO3 Eff. − 0.2697 2.3655 − 1.0959 
PO43− Eff. − 1.2793 − 1.6082 3.8875 
 A2/O-2 NH4+ Eff. − 0.6982 − 0.7603 2.4585 
NO3 Anox. − 0.3488 − 5.9548 7.3036 
PO43− Eff. 2.0470 7.7151 8.7621 
 A2/O-3 NH4+ Eff. 0.9805 − 0.0284 0.0480 
NO3 Anox. − 0.0556 0.1080 0.9475 
PO43− Anaer. 0.0751 0.9204 0.0045 
 A2/O-4 NH4+ Eff. 0.6814 − 0.0194 0.3381 
NO3 Eff. 0.1863 0.1594 0.6544 
PO43− Anaer. 0.1324 0.8601 0.0076 

The numbers in bold represent the higher absolute values of the RGA elements for each manipulated variable (column), indicating the best possible pairing of manipulated and controlled variable to build decentralized single input single output (SISO) controllers.

Considering the steady state (ω = 0 rad/d) and the dynamic RGA (ω = 1 rad/d), controlling all three pollutant concentrations at the effluent stream (A2/O-1) is not the best choice since a strong coupling between QRINT and QRAS is observed. For example, RGA values (for ω = 1 rad/d) when modifying QRINT are 2.3655 and −1.6082 for nitrate and phosphate in the effluent, indicating an important effect of a change in the internal recycle in both controlled variables. Conversely, the value for ammonium is 0.2427, showing a very low effect of the internal recycle on the ammonium concentration in the effluent.

The control structure A2/O-2 is also not recommended for the plant since there is a strong coupling between nitrate and phosphate, denoted by the close values of the RGA channels of inputs QRINT and QRAS in both frequencies. Moreover, the RGA matrix considerably changes from the steady-state frequency to the dynamic frequency, indicating the change of interactions among variables at different frequencies of operation of the controller. Moreover, phosphate in the effluent is highly affected by all three input variables, probably due to the effect of a significant amount of nitrate and oxygen being carried out to the anaerobic zone.

The most decentralized control structure is A2/O-3, and the pairing would not be the most conventional pairing: QRINT would be used to control the phosphate concentration in the anaerobic reactor and QRAS would be used to control the nitrate concentration at the end of the anoxic zone. Such a result indicates that the current value of QRAS and QRINT (operating point of the process control model) are probably not the best value for improving denitrification and that the nitrate load brought by QRINT is not being completely denitrified since changes in QRINT poorly affect nitrate concentration at the end of the anoxic zone. That would also affect phosphate removal, as a higher recycling of nitrate reduces the COD availability for PAO. The utilization of internal recycle for controlling phosphate concentration allows a decrease in the entrance of nitrate to the anoxic reactor, which would result in more organic matter diverted to biological phosphorus removal, as recently reported by Guerrero et al. (2014). In addition, anaerobic fermentation processes are not favored when nitrate is present, reducing volatile fatty acids production, which is a key requisite to enhance P-removal activity for PAO (Guerrero et al. 2011).

Finally, the RGA of the structure A2/O-4 indicates that the best pairing is also different to the common practice: the internal recycle should be used to control phosphate instead of nitrate. Such an inversion also denotes the excess of nitrate and oxygen being recycled to the anaerobic zone by QRAS and to the anoxic zone by QRINT.

Although the most recommended control structure for the A2/O configuration, considering RGA results, is the A2/O-3, the robustness of the most straightforward relationship among the manipulated variables and controlled variables (structure A2/O-1) was also tested. Such a control structure is a conventional choice for implementing a control structure in full-scale WWTP plants since the controlled variables are the same as those commonly monitored with respect to European discharge limits. Figure 4 shows the results of the control loop for ammonium in the effluent when using the control structure A2/O-1. When the ammonium concentration rises, the controller immediately increases the DO setpoint at the aerobic basin, trying to promote nitrification. The automated change of DO setpoint saves electrical energy because it adapts blower operation to the current ammonium load. Figure 4 also shows that strong load disturbances affect the WWTP performance and sometimes the system is not able to meet legal restrictions even when working at the maximum DO setpoint (3 mg·L−1).

Figure 4

Ammonium effluent (control variable) and its setpoint when operating with the control structure A2/O-1 (upper graph). The lower graph shows the DO setpoint that is acting as manipulated variable in the ammonium control loop.

Figure 4

Ammonium effluent (control variable) and its setpoint when operating with the control structure A2/O-1 (upper graph). The lower graph shows the DO setpoint that is acting as manipulated variable in the ammonium control loop.

Close modal

Both control structures were also tested under optimized conditions. The optimization problem was formulated by minimizing the total operating cost (calculated with the WWTP simulation using the non-linear model) as the objective function and the setpoints of the controlled variables as the optimized parameters, keeping the same PI and PID tuning during each iteration of the problem (Machado et al. 2009b). Such an optimization problem mitigates the influence of limitations of the tuning rules for PI and PID controllers and of the considerable degree of uncertainty of the black-box models when the available plant data are far from the linearized operating point.

The MPC was implemented and tested using the variables of the decentralized A2/O-1 and A2/O-3 control structures, generating the centralized control structures A2/O-1-MPC and A2/O-3-MPC. Figures 5 and 6 show some results from the control structure A2/O-3-MPC. The MPC controller places the manipulated variable QRINT at its maximum allowed value most of the time because nitrate concentration in the anoxic reactor is generally lower than the setpoint. The QRAS value is also set to its maximum value by the MPC to achieve the required P setpoint in the anaerobic reactor.

Figure 5

Nitrate concentration at the end of the anoxic zone (control variable) and its setpoint (upper graph) during the test of the A2/O-3-MPC running. The lower graph shows the manipulated variable QRINT.

Figure 5

Nitrate concentration at the end of the anoxic zone (control variable) and its setpoint (upper graph) during the test of the A2/O-3-MPC running. The lower graph shows the manipulated variable QRINT.

Close modal
Figure 6

Phosphate concentration at the end of the anaerobic zone (control variable) and its setpoint (upper graph) during the test of the A2/O-3-MPC running. The lower graph shows the manipulated variable QRAS.

Figure 6

Phosphate concentration at the end of the anaerobic zone (control variable) and its setpoint (upper graph) during the test of the A2/O-3-MPC running. The lower graph shows the manipulated variable QRAS.

Close modal

A summary of average daily operating costs for all the tested control structures for 1 year of operation is presented in Table 3. These results demonstrate that the new A2/O configuration with only DO control improved the total operating costs by around 2.0%, obtaining a better effluent quality (lower effluent quality costs) at a similar cost for aeration, pumping, and sludge treatment. Control structure A2/O-1 improved the operating costs of only DO (−2.6% with respect to A/O), mainly because the aeration and pumping costs were reduced by 9.3%, but the overall gain was not very high because the effluent quality was lower. As expected by the RGA analysis, control structure A2/O-3 provided lower total operating costs (−3.2% with respect to A/O). The costs of aeration, pumping, and sludge treatment were 18.9% lower than the A/O plant, but the lower effluent quality determined the limited improvement when considering the total costs.

Table 3

Operating costs of all the tested control structures for the A2/O plant configuration for the current A/O Manresa WWTP

Control structures
A2/O, control structure A2/O-1A2/O, control structure A2/O-3A2/O, control structure A2/O-1 with optimized setpointsA2/O, control structure A2/O-3 with optimized setpointsA2/O, control structure A2/O-1-MPCA2/O, control structure A2/O-3-MPC
Operating costs, [€/d]A/O, current plant
(Open Loop)
A2/O
(Only DO control, DOSP 2.00 mg/L)
Setpoints: NH4+ Effl. 1.50 mg/L NO3 Effl. 6.50 mg/L PO43− Effl. 0.50 mg/LSetpoints: NH4+ Effl. 1.50 mg/L NO3 Anox. 0.50 mg/L PO43− Anaer. 1.80 mg/LSetpoints: NH4+ Effl. 1.67 mg/L NO3 Effl. 8.94 mg/L PO43− Effl. 0.50 mg/LSetpoints: NH4+ Effl. 1.80 mg/L NO3 Anox. 0.56 mg/L PO43− Anaer. 1.58 mg/LSetpoints: NH4+ Effl. 1.50 mg/L NO3 Effl. 6.50 mg/L PO43− Effl. 0.50 mg/LSetpoints: NH4+ Effl. 1.50 mg/L NO3 Anox. 0.50 mg/L PO43− Anaer. 1.80 mg/L
Aeration costs 497 495 479 495 473 469 480 481 
Pumping costs 521 521 444 277 363 344 496 473 
Sludge treatment costs 312 312 312 307 312 319 312 323 
Effluent quality costs 1,407 1,353 1,430 1,571 1,511 1,502 1,354 1,353 
Total costs 2,737 2,681 2,665 2,650 2,659 2,634 2,642 2,630 
Control structures
A2/O, control structure A2/O-1A2/O, control structure A2/O-3A2/O, control structure A2/O-1 with optimized setpointsA2/O, control structure A2/O-3 with optimized setpointsA2/O, control structure A2/O-1-MPCA2/O, control structure A2/O-3-MPC
Operating costs, [€/d]A/O, current plant
(Open Loop)
A2/O
(Only DO control, DOSP 2.00 mg/L)
Setpoints: NH4+ Effl. 1.50 mg/L NO3 Effl. 6.50 mg/L PO43− Effl. 0.50 mg/LSetpoints: NH4+ Effl. 1.50 mg/L NO3 Anox. 0.50 mg/L PO43− Anaer. 1.80 mg/LSetpoints: NH4+ Effl. 1.67 mg/L NO3 Effl. 8.94 mg/L PO43− Effl. 0.50 mg/LSetpoints: NH4+ Effl. 1.80 mg/L NO3 Anox. 0.56 mg/L PO43− Anaer. 1.58 mg/LSetpoints: NH4+ Effl. 1.50 mg/L NO3 Effl. 6.50 mg/L PO43− Effl. 0.50 mg/LSetpoints: NH4+ Effl. 1.50 mg/L NO3 Anox. 0.50 mg/L PO43− Anaer. 1.80 mg/L
Aeration costs 497 495 479 495 473 469 480 481 
Pumping costs 521 521 444 277 363 344 496 473 
Sludge treatment costs 312 312 312 307 312 319 312 323 
Effluent quality costs 1,407 1,353 1,430 1,571 1,511 1,502 1,354 1,353 
Total costs 2,737 2,681 2,665 2,650 2,659 2,634 2,642 2,630 

The results obtained by control structures A2/O-1 and A2/O-3 were not the best possible results that could be obtained with these structures because setpoints used for the controlled variables were based on averaged values of these variables under open loop operation. When the setpoints of the controlled variables were optimized as in Machado et al. (2009b), the improvement in total operating costs was higher (−2.8% and −3.8% with respect to A/O, for A2/O-1 and A2/O-3, respectively).

Finally, the centralized control structures brought better results than the decentralized ones since they use a full matrix of transfer function models that compensates for the effects of more than one manipulated variable on a specific controlled variable. They provided considerably lower effluent quality costs but also higher total operating costs without effluent quality, making the final overall costs slightly lower than the decentralized control structures (−3.5% and −3.9% with respect to A/O, for A2/O-1-MPC and A2/O-3-MPC, respectively). The total cost improvement provided by the control structures was not very high for this plant, probably because saturation of some manipulated variables was observed (Figures 5 and 6) due to limitations in the wastewater composition and in the WWTP operational limitations. Conversely, higher improvements are expected, including hourly variability of influent composition or flow-rate and real operation with unexpected disturbances, and it can be further enhanced with optimized setpoints. Additional benefits of the control structure, such as obtaining an effluent with more stable quality, are also foreseeable.

The choice of introducing an anaerobic zone to the existent A/O plant in the retrofitting process was proved to be a good way of improving the WWTP capacity and controllability, as the comparison between the linear models of the A/O and A2/O plant configuration have shown. The tested control structures improved the total operation costs in the simulated scenario, with daily modification of influent concentrations and hence limited dynamic conditions.

The centralized control structure A2/O-3-MPC achieved the lowest operating costs with the best effluent quality for the A2/O plant configuration for the Manresa WWTP. Such a control structure could reduce the operating costs by 3.9% regarding the current plant configuration with the current control structure, or by about 2.0% with respect to the system that worked using only the DO control.

The centralized control structures provided better results than the decentralized ones since they use a full matrix of transfer function models that compensates for the effects of more than one manipulated variable on a specific controlled variable. Conversely, the implementation efforts of a centralized control structure could result in the plant owner deciding to implement the correspondent decentralized control structure A2/O-3 with the optimization setpoint program with acceptable results.

The authors gratefully acknowledge Ricard Tomas and Ana Lupón (Aigües de Manresa S.A.) for all the support provided in conducting this work. Vinicius Cunha Machado received a pre-doctoral scholarship from the AGAUR (Agència de Gestió d'Ajuts Universitaris i Recerca – Catalonia, Spain), within European Community Social Fund programs. This work was supported by the Spanish Ministerio de Economía y Competitividad (CTM2010–20384).

Boyd
S.
El Ghaoui
L.
Feron
E.
Balakrishnan
V.
1994
Linear matrix inequalities in system and control theory
,
Society for Industrial and Applied Mathematics (SIAM)
,
Philadelphia, PA, USA
.
Bristol
E. H.
1966
On a new measure of interactions for multivariable process control
.
IEEE Transactions on Automatic Control.
AC-
11
,
133
134
.
Copp
J. B.
Spanjers
H.
Vanrolleghem
P. A.
2002
Respirometry in control of the activated sludge process: benchmark control strategies
.
Scientific and Technical Report No. 11
,
IWA Publishing
,
London
.
Guerrero
J.
Guisasola
A.
Baeza
J. A.
2014
A novel control strategy for efficient biological phosphorus removal with carbon-limited wastewaters
.
Water Science and Technology
70.4
,
691
697
.
Halvarsson
B.
2010
Interaction analysis in multivariable control systems. Applications to bioreactors for nitrogen removal. PhD Thesis
,
Uppsala University
,
Uppsala, Sweden
.
Henze
M.
Gujer
W.
Mino
T.
van Loosdrecht
M. C. M.
2000
Activated sludge models ASM1, ASM2, ASM2d and ASM3: Scientific and technical report No. 9
.
IWA Publishing
,
London
.
Ljung
L.
1999
System Identification: Theory for the User
.
Prentice Hall
,
Englewood Cliffs, NJ, USA
.
Machado
V. C.
Tapia
G.
Gabriel
D.
Lafuente
J.
Baeza
J. A.
2009a
Systematic identifiability study based on the Fisher Information Matrix for reducing the number of parameters in an ASM model calibration
.
Environmental Modelling and Software
24
,
1274
1284
.
Machado
V. C.
2012
Retrofitting analysis for improving benefits of A/O WWTPs considering process control aspects
.
PhD thesis
.
Universitat Autònoma de Barcelona, Barcelona, Spain
.
Maciejowski
J. M.
2002
Predictive control with constraints
.
Prentice Hall
,
Harlow, England
.
Montpart
N.
2010
Redesign of a dissolved oxygen control system in an urban WWTP
.
Thesis for Master's Degree in Environmental Studies.
Universitat Autònoma de Barcelona
,
Barcelona, Catalonia
,
Spain
.
Skogestad
S.
2004
Control structure design for complete chemical plants
.
Computers and Chemical Engineering
28
,
219
234
.
Takács
I.
Patry
G. G.
Nolasco
D.
1991
A dynamic model of the clarification thickening process
.
Water Research
25
(
10
),
1263
1271
.
Tchobanoglous
G.
Burton
F. L.
Stensel
H. D.
2003
Wastewater engineering: treatment and reuse
.
McGraw-Hill. Metcalf & Eddy Inc.
,
New York
,
USA
.