Abstract
This paper addresses the water temperature PI control in condensing domestic boilers. The main challenge of this process under the controller design perspective is the fact that the dynamics of condensing boilers are strongly affected by the demanded water flow rate. First, a robust PI controller based on weighted geometrical center method is designed that stabilizes and achieves good performance for closed-loop system for a wide range of the water flow rate. Then, it is shown that if the water flow rate information is used to update the controller gains, through a technique known as gain scheduled control, the performance can be significantly improved. Important characteristics of these PI design approaches are that the resulting parameters are calculated numerically without using any graphical method or iterative optimization process and that it guarantees the stability of the closed-loop. Significantly, simulation results have demonstrated that the proposed tuning techniques can perform better for set point changes and load disturbance than other available methods in the literature.
1. Introduction
A condensing boiler is defined as a water heating device designed to recover energy normally discharged to the atmosphere through the flue. It operates through the use of a secondary heat exchanger which most commonly uses residual heat in the flue gas to heat the cooler returning water stream or by having a primary heat exchanger with sufficient surface for condensing to easily take place. Modern condensing boilers are comprised of microprocessor controlled combustion which adjusts the amount of fuel and air supplied to the burner. This is performed by using an embedded algorithm which considers outdoor temperature, temperature of the supplied water, and so forth. Continuously controlled units also minimize the on-off cycling for increasing efficiency.
The main characteristic of this process is its nonlinear behavior, where the dynamics are strongly dependent on the operating conditions defined by the demanded water flow rate. Developing a physical nonlinear model for the plant and computing a nonlinear feed-forward control could be considered as a solution to this problem. However, because of great variability of the condensing boilers, this approach needs a considerable effort for modeling. Another approach to model the nonlinear system is to use a finite set of linear models, which locally approximate the original dynamics at different operating points. In such cases, the designed controller must be able to stabilize and guarantee a reasonable performance for all operating conditions.
Many robust controller design methods for multimodel systems are available in the present literature. Toscano proposes a method to design PID and multi-PID to control nonlinear systems using multimodel in the state space representation [1]. The time delay is approximated by a high order transfer function and the controller is tuned using an iterative algorithm with no convergence result. Ge et al. introduce a robust PID controller design for uncertain systems via LMI approach [2]. The authors use the multimodel paradigm to describe the uncertainties and derived a convex constraint problem to design the controller. In [3], a multimodel controller design combined with gain scheduling methods is studied based on a mixed H2/H∞ problem. Karimi and Galdos have designed a fixed order H∞ controller for nonparametric models by convex optimization [4]. These approaches require the approximation of the time delay and suffer from the conservatism related to the existence of a common Lyapunov matrix for all closed-loop systems. In fact, gain scheduled controllers have been widely and successfully applied to divers fields and many approaches are available to design such controllers [5, 6]. Rather than seeking a single robust linear time invariant (LTI) controller for the entire operating range, gain scheduling consists in designing an LTI controller for each operating point and in switching controller when the operating conditions change. Blanchett et al. [7] and Zhao et al. [8] developed fuzzy gain scheduling strategies for PID controllers for process control where reasonable performance has been reported with simple control schemes. For a detailed review of gain scheduling analysis and design refer to the study carried out by Leith and Leithead [9]. Recently, in their study, Oliveire and Karimi [10] have designed a robust PID controller for the condensing boiler problem by using the method given in [11]. The main feature of the method is that the stability, robustness margins, and some performance specifications are guaranteed by linear constraints in the Nyquist diagram. Therefore, a PID controller can be designed using linear programming. In addition to this, Oliveire and Karimi have expanded this method to design gain scheduled controllers was presented by Kunze et al. [12] and is applied to design a gain scheduled PI controller for the condensing boiler where the gains are function of the requested water flow rate.
In this paper, a basic design algorithm based on the weighted geometrical center (WGC) method given in [13] is presented and evaluated as two different PI design approaches for the condensing boiler problem. First, a robust PI controller is designed by the use of joint stabilizing control parameters region obtained for different values of water flow rate. Important characteristics of this PI design methodology are that the resulting parameters are calculated numerically without turning to any graphical method or iterative optimization process and that it guarantees the stability of the closed-loop. Then, gain scheduling PI controller is designed. The proposed scheduling method is based on calculating the WGC controllers corresponding to different values of water flow rate and following this, associating these values to variable time delay by means of curve fitting method, and obtaining the controller parameters (k p ,k i ) as a function of water flow rate. In this context, the contribution made by the present paper is that it manifests a numerical PI design tool and its two different robust design methodologies for the condensing boilers.
The paper is structured as follows. The process and control problem are described in Section 2. In Section 3, WGC method and its design algorithm are presented. In Section 4, robust PI and gain scheduling design approaches are represented. Comparative simulations of the proposed design methods with a recent method in the literature are considered in Section 5 to illustrate the wisdom of the presented methods. Finally, concluding remarks are given in Section 6.
2. System Description
A domestic boiler is schematically given in Figure 1. Most boilers work on two different modes: central heating (CH) and domestic hot water (DHW) that normally are mutually exclusive. The returning water from central heating (CH return) will be heated up in the primary tube-in-tube heat exchanger which is located close to the combustion chamber. A sensor monitors the water temperature leaving the primary exchanger (T c ). If CH mode is activated, then the control system will define the necessary power to keep T c in the desired set point. The heated water will thus be driven around the building by a pump and will come back to the boiler in a closed-loop [10].

Simplified boiler scheme [10].
When the water flow rate sensor (F s ) detects a demand for domestic water, the DHW mode will be used. Here, a three-way valve will switch and the CH loop will be closed through the secondary heat exchanger; that is, during DHW operation there is no water circulation around the building, but it returns to the primary heat exchanger right after leaving the secondary. In this mode the cold water for domestic use (DHW inlet) coming from the supply system will be heated up in the secondary heat exchanger (typically plate heat exchanger) by the hot water of the central heating. The controller will define the necessary power to maintain the temperature T d in the set point. It is worth pointing out that when T d is being controlled the temperature T c can vary freely.
There are two main control loops: the first one will control the temperature of the CH water leaving the primary heat exchanger and the second controller will maintain constant the temperature of the DHW at the output of the secondary heat exchanger. As it has been said, generally it is not possible to control both temperatures at the same time. It means that there will be switching between the two control loops. The supervisor will switch automatically from the CH to the DHW controller whenever the flow rate detects a demand for domestic hot water.
The control problem is different for each mode. In the CH controller the dynamics of the system are slow and the main disturbance is the ambient temperature which has a very large time scale. Furthermore, the water is driven around a closed-loop with constant flow rate.
The goal of the DHW controller is to maintain the domestic hot water T d at the set point and reject the disturbances as fast as possible without oscillation since the performance of the controller affects directly the comfort of the user. The control of the domestic hot water temperature is much more critical than the CH controller. The conditions may change very quickly and the controller must respond fast. Here, the disturbances are mainly the water flow rate Q which is demanded and the temperature of water coming from the supply system.
The flow rate can vary drastically in a short period of time, which creates strong disturbances. In fact, one of the main challenges controlling this process is the fact that the dynamics of the system depend strongly on the demanded water flow rate, as we shall see in the following. For this reason, the focus of this paper is the robust design of the DHW controller.
Figure 2 shows the block diagram of the DHW control system. The controlled variable is the temperature T d of the water at outlet of the secondary heat exchanger; disturbance Q is the demanded water flow rate and u is the output of the controller used to keep the temperature at the set point. This value will then be converted to the real actuator input which depends on the boiler [10].

Controller in domestic hot water mode.
Our goal is to design the controller C d which offers stability, fast response, and small overshoot for a whole range of water flow rate. The first step in the controller design is to obtain the system's model. Therefore, a series of open-loop experiments were carried out in order to identify models at different values of water flow rate Q In this case, we define six operating points: Q = [3, 4, 5, 6, 7, 8] L/min.
The identified systems are basically first order models in the form
where the parameters are given in Table 1. As can be seen, the static gain K i of the system ranges from 0.0093 up to 0.0216 while the time constant τ i goes from 31.8's up to 62.1's. As expected using energy balance, with low flow rates the static gain of the system is higher. When the water flow rate is higher the heat transfer coefficient is also higher. This explains the smaller time constant [10].
Models parameters in different operating points [10].
3. WGC Method
WGC method bases stability boundary locus approach using to obtain the stabilizing PI controller parameters region [14]. Consider the open-loop transfer function given in.
PI controller of the form is given in
First stage of the problem is to find the stability region which includes all the parameters of the PI controller of (3) which stabilize the given system. The closed-loop characteristic polynomial P(s) of the system, that is, the numerator of 1 + C(s)G(s), can be written as
Decomposing the numerator and the denominator polynomials of G p (s) in (2) into their even and odd parts, as well as substituting s = jω, gives
For simplicity (–ω2) will be dropped in the following equations. Thus, the closed-loop characteristic polynomial of (4) can be written as
where
Then, equating the real and imaginary parts of P(ω) to zero, two equations are obtained as
where
Finally, by solving the 2-dimensional system of (8a) and (8b) the parameters of PI controller are obtained as
Changing ω from 0 to ∞ the stability boundary locus l(k p ,k i ,ω) is constructed in the (k p ,k i )-plane using (10) and (11). As a special case, a real root can cross over the imaginary axis at s = 0. Thus, a real root boundary is obtained by substituting s = 0 in P(s) of (4). Therefore, this special boundary is determined as
The stability boundary locus and the real root boundary divide the parameter plane (k p ,k i ) into stable and unstable regions. The stable region can be obtained by choosing a test point within each region. The characteristic equation belonging to an arbitrary point in the stable region has no right-half of the s-plane (RHP) roots until the characteristic polynomial of any point in the unstable region has a certain number of RHP roots.
3.1. Example
Consider the transfer function of the first order plus time delay (FOPTD) system has the form
Here, the aim is to obtain all stabilizing values of kp and ki that make the closed-loop system in Figure 1 stable. The characteristic equation of the control system is derived as
By applying the stabilization procedure, the kp and ki values for the stability boundary locus are obtained as
Figure 3 shows the stability boundary locus for a range of frequency ω(0, 2.19) and the real root boundary line. It can be observed from this figure that the parameter plane is divided into four regions, namely, R1, R2, R3, and R4. By choosing one arbitrary test point in each region, the stability region which is the shaded region (R2) shown in Figure 3 can be determined. Figure 4 shows more clearly R2 for all stabilizing values of kp and ki. In this figure, the stability boundary locus is computed for the range of ω[0,ω i ]. Equating (11) to (12), the intersection frequency ω i is calculated as 2.03.

Stability boundaries of the FOPTD system.

Stability region.
The plotting of the stability boundary locus is based on the calculation of (k p ,k i ) pairs at each ω value as given in (10) and (11) and then the connection of each (k p ,k i ) point together in the parameter plane. The point based stability boundary locus for the FOPTD system in (13) is shown in Figure 5. In this figure, each (k p ,k i ) point is marked by changing ω from 0 to 2.03 in steps of 0.03. It is seen from this figure that the distance between each points is not the same. The points are closely spaced at small ω values. With increasing the values of ω they become distant and then tighten around the peak point of stability boundary locus and finally it unwraps when reached the stability boundary locus to the real root boundary.

(k p ,k i ) points constituting the stability boundary locus depending on ω values.
This locus enclosing the stability region consists of n points of which the coordinates are defined as (kp1,ki1), (kp2,ki2), (kp3,ki3), …, (k pn ,k in ). However, the real root boundary, k i = 0, which limits the stability boundary locus for obtaining the stability region does not depend on ω. For this line, the projections of the points in the stability boundary locus are considered as shown in Figure 6. In this case, the coordinates of the projection points are (kp1, 0), (kp2, 0), and (kp3, 0), …, (k pn , 0).

The coordinates of (k p ,k i ) points constituting the stability boundary locus and their projections for the real root boundary line for ω(0, 0.12).
As a result of combining the points of stability boundary locus and real root boundary line, the weighted geometrical center (k pw ,k iw ) of the stability region is obtained easily as follows:
Thus, the weighted geometrical center using (16) can be found precisely. This method gives a simple PI tuning rule which provides a good transient performance for the time delay systems [13].
An algorithm calculating the WGC controller of any system with time delay is presented in Figure 7. The algorithm calculates WGC controller for open-loop transfer function and time delay of the system. In other words, it obtains the stabilizing PI controller parameters region for aforementioned system and calculates the weighted geometric center controller for this region in response to entering the coefficients of numerator and denominator polynomials (a1,a2, …, am and b1,b2, …, bn) of open-loop transfer function and time delay in the system by the user. According to this, the characteristic equation of closed-loop system is obtained at the 1st step. The s = jω transformation is made at the 2nd step. The imaginer terms of characteristic equation are separated from reel terms and two different equations are obtained at the 3rd step. This operation is realized by differentiating the characteristic equation with respect to kp and ki. The equation system is solved in a cycle dependent on a frequency (ω) and the root pair (root1 and root2) in response to each frequency is calculated at the 4th step. In case the second root (root2) receives a value less than zero, the cycle stops the calculation. Likewise, the points of boundary locus of the stability region are obtained. In the final step, weighted geometric center controller is obtained by evaluating the coordinate values of the points in (16) obtained along the cycle. The Matlab 2012b codes of proposed algorithm are given in Algorithm 1.

Matlab 2012b codes of the PI design algorithm.

PI tuning algorithm.
4. PI Controller Design
While the design of a PI controller that matches the specifications for a single operating point seems to be trivial, finding a fixed controller which works properly in all operating points might not be such a simple task. In order to solve this problem, two numerical methods are presented. Firstly, WGC based robust PI control is designed and then WGC based gain scheduling PI controller is designed.
4.1. WGC Based Robust PI Controller
Proposed robust PI design method is based on calculating the joint stabilizing control parameters region and its WGC point by means of the calculating algorithm presented in Section 3. The stabilizing control parameter regions and its WGC points obtained for six different systems given in Table 1 are shown in Figure 8 and Table 2, respectively. As it is expected, increase in time delay limits the stabilizing controller parameter area. Accordingly, joint stability region corresponding to different values of the time delay is the most interior region. For this reason, the WGC controller of the most interior area remaining in the entire stability regions between the considered time delay value ranges is selected as a robust PI controller. The parameters of this controller are k p = 110.5 and k i = 2.66.
The WGC controller parameters corresponding to different time delay values.

Stability regions in accordance with different time delay values.
4.2. WGC Based Gain Scheduling PI Controller
To obtain the gain scheduling PI controller, by using the values given in Table 2, the controller parameters are obtained as a function of time delay by means of Matlab Curve Fitting Toolbox. In (17), the expressions of controller parameters of kp and ki according to water flow rate (Q) are given, respectively. In Figure 9, the change of fitted k p (Q) and k i (Q) functions corresponding to water flow rate is shown. Here, it is seen that the fitted curve provides good precision:

Change of controller parameters with water flow rate.
4.3. Set Point Weighting
WGC based PI design method is usually based on specification of the desired closed-loop transfer function for load/disturbance changes. Consequently, the resulting WGC controllers tend to perform well for load/disturbance responses, but the set point change might not be satisfactory. Chen and Seborg [15] employed a set point weighting, which was originally proposed by Åström and Bell [16], to reduce large overshoot for PID controllers. A set point weighting for PI control structure is
where b is the set point weighting coefficient and 0 ≤ b ≤ 1. Furthermore, Chen and Seborg [15] and Pai et al. [17] also pointed out that the large overshoot for the set point response of the PI/PID controller can normally be eliminated by setting b = 0.5. Good compromising between overshoot and settling time performances is generally obtained by setting b = 0.5 [15, 17]. Accordingly, the set point weighting with b = 0.5 is also employed for the proposed PI settings throughout the present study.
5. Simulations
Six different values of the water flow rate are used to demonstrate the performance of the proposed approaches in this section. Throughout the simulation, the PI and gain scheduling PI control algorithms with set point weighting as shown in Figures 10(a) and 10(b), respectively, are employed. Accordingly, PI controller parameters are scheduled by using the water flow rate which can be measured in real time.

Control structures. (a) PI controller structure. (b) Gain scheduling PI controller structure.
In addition, a step change with magnitude 25 is introduced either in load disturbance (L) or in set point (r) for the simulation studies. Performance criterions of the closed-loop response for each case is evaluated by settling time (ts), percent overshoot (OS%), maximum peak height (M
p
), and maximum absolute value of the control signal (
Throughout the simulations, robust and gain scheduling PI controllers given in [10] are used for comparison. Oliveire and Karimi's robust control settings are k p = 103.2 and k i = 1.584 [10]. Moreover, Oliveire and Karimi's gain scheduling control expressions are given in [10]
In the first stage of the simulations, it is considered that a PI controller which should guarantee robust stability and load disturbance rejection performances for all operating points is presented by models G1 to G6 in Table 1. Typical response curves based on the proposed settings and that of Oliveire and Karimi to a load disturbance change with magnitude 25 are shown in Figure 11. Moreover, numerical values of the performance criterions and its scaled values together with the numerical values of general evaluating function (J) are given in Table 3. It is clear that the proposed scheduling method can achieve faster response than that of Oliveire and Karimi. In all other cases except last case (G6), the proposed gain scheduling controller is superior according to J function. In the case of G6, best controller in the way of minimizing the function J is the proposed robust controller. Note that the proposed robust controller is the WGC controller calculated for the case of G6.
Numerical values of the performance criterions for disturbance.

Comparison of disturbance responses.
In the second stage of the simulations, closed-loop response curves of the proposed PI settings and that of Oliveire and Karimi for a set point change with magnitude of 25 are shown in Figure 12. Furthermore, numerical values of the performance criterions and their scaled values together with the numerical values of general evaluating function (J) are given in Table 4. Figure 12 and Table 4 indicate that proposed gain scheduled method is very good for set point changes in all operating conditions, especially for lower settling time. However, according to values of the function J, in all other cases except last case (G5), the proposed robust controller is superior. In case of G5, best controller in the way of minimizing the function J is the proposed gain scheduling controller. Note that the maximum control signal value calculated by the proposed controllers is considerably lower than that of Oliveire and Karimi. It can be seen in simulation results that the most critical conditions in the robust control design are those with small water flow rate because of the higher gains and time constants. This means that boundary of feasibility for the robust controller design is defined by the models in those conditions. It has to be stated that once a WGC based robust controller is designed it will respect this boundary (see Figure 8). There are similar findings in that of the study of Oliveire and Karimi. However, these results are too conservative in other operating points with higher flow rates, which deteriorates the performance. If a gain scheduled controller is used, it will respect the constraints by the most critical models and at the same time will have room for performance improvement in different conditions.
Numerical values of the performance criterions for set point changes.

Comparison of set point responses.
6. Conclusions
In this paper two methodologies to robust PI controller design for boiler temperature control systems are presented. Important qualifications of these PI design approaches are that the resulting parameters are numerically calculated without turning to any graphical method or iterative optimization process and that they guarantee the stability of the closed-loop. With the proposed gain scheduling approach it has been possible to cope with large variations in the operating conditions providing good performance for the whole range of demanded flow rate. However, requirement for one more sensor for sensing the water flow rate is disadvantageous for the scheduling method. Alternatively, an estimator of the water flow rate could be implemented to provide the information. Such estimator would need the information regarding the temperature of the incoming water. This is economically advantageous over the flow-meter solution since normally temperature sensors are cheaper than flow-meters. The results of the comparative simulation studies show that the proposed scheduling method will provide successful results for boiler systems where the water flow rate can be observed or estimated.
Conflict of Interests
The author declares that there is no conflict of interests regarding the publication of this paper.
