2.1. Live Laboratory Description
A field operating-based study is conducted to test the effect of a control system upgrade through a heat-pump heating retrofit project in Shanxi, China (
Figure 2).
The project features are as follows:
1) Situated in a cold climate zone with a heating period of four months (from around November 15th to around March 15th of the following year);
2) Heating area of 23,000 m2, serving residential users;
3) Transitioning from a district boiler heating system to a water-source heat pump heating system utilizing a low-temperature heat source (20 °C), which is the cooling water from nearby factories;
Figure 1 shows the schematic diagram of water-source heat pumps;
4) Completed renovations on the heat source, distribution network, and building insulation, and installed transmitters for temperature, pressure, flow rate measurements and balancing valves or/and regulating valves for the distribution network and end-users;
5) Identified the response characteristics of specific key equipment/components approximated by the first-order inertia-lag objects as follows:
The heat pump compressor:
where s and G(s) are the complex variable and first-order inertia-lag object, respectively. Note that the heat pump condenser possesses the most prolonged time delay, while the heat load owes the most significant time constant.
6) A single-loop PID controller was employed with the control variable of the condenser outlet water temperature.
Figure 3 shows the structure of this control system. As seen from
Figure 3, the set value of condenser outlet water temperature (
TS.SET) minus the measurement (
I1) of that is the deviation (
e1) of the controlled variable, which is sent to the PID controller. Through calculations, the PID controller sends the adjustment signals (
U1) to the electric motor of the compressor, regulating the refrigerant flow rate (
mR) to manage the heat exchange capacity of the condenser for changing its output water temperature (
TS).
During the first heating period after the physical equipment was upgraded, some problems arose, such as unsatisfactory thermal comfort among users, delayed regulation response time, low energy efficiency of the heat pump units, and high energy consumption of circulating water pumps. The operational data and the user complaints imply that the cause is multifaceted:
1) As
Figure 3 shows, the control law neglects the effect of heat transfer processes in indoor heating on the supply-demand balance and users’ thermal comfort. The return water temperature instead of the supply water temperature of heating systems directly reflects the change in heat demand. When the program sets a supply water temperature for heating by outdoor meteorological conditions [
37,
38], the return water temperature of heating systems tends to rise with the heat load declines and reduces with the heat load increases. Thus, the supply water temperature, being the controlled variable, must consider the significant effect of capacity delay in the indoor heat transfer processes.
2) The integer-order PID controller is not good at managing non-integral order objects nor adapts to addressing objects with a long time delay.
3) The integer-order PID controller with three structural parameters is insufficient to subtly balance the effects of integral, differential, and proportion because the optimal solutions are limited to the right half of the complex plane.
4) The tuning method of ZN can scarcely adapt to the alterations in response characteristics of controlled objects.
5) A narrow difference between supply and return water temperatures (about 5 °C) is employed in the heating system to ensure hydraulic equilibrium among users, leading to remarkable energy consumption for the heating water distribution. Meanwhile, to protect the thermal comfort of distant users, a high level of supply temperature results in significant energy consumption for the heat pump units.
2.2. Advanced Control Strategy and Controller Design
According to the analysis above, some efforts aimed at upgrading the control system have been conducted as follows:
1) The return water temperature and the supply one, the principal and auxiliary controlled variables, respectively, replace the single-loop structure with a cascade control structure, directly responding to the heat load variation.
The primary and secondary controllers have different tasks in a cascade control system. The task of the secondary controller is to quickly overcome disturbances in the secondary loop without requiring perfect control of the secondary parameter, while the task of the central controller is to ensure that the main controlled parameter meets the high requirements specified by process regulations. In this study, the ultimate goal of the heating system is to provide the users with thermal comfort and simultaneously reduce energy consumption for heating. Thus, the return water temperature needs precise regulation to adapt to the variation of heat demand. In contrast, the supply water temperature requires immediate response rather than accurate management, which profited from the positive impact of building envelope thermal inertia [
39].
Figure 4 shows the upgraded cascade control structure.
As
Figure 4 shows, the set value of return water temperature (
TR.SET) minus the measurement (
I1) of that is the deviation (
e1) of the controlled variable, which is sent to the controller for
TR. Through calculations, the controller for
TR outputs the signal
U1, then the signal
U1 minus the measurement (
I2) of condenser outlet water temperature is the deviation (
e2) of the secondary controlled variable, which is sent to the controller for
TS. Through calculations, the controller for
TS sends the adjustment signals (
U2) to the electric motor of the compressor, regulating the refrigerant flow rate (
mR) to manage the heat exchange capacity of the condenser for changing its output water temperature (
TS). Ultimately, heating users respond to
TS and output the return water temperature (
TR).
2) Incorporate controlled objects with the Smith predictor [
40], countering the adverse effects of time lag on regulation, as
Figure 5 shows.
3) Configure fractional-order controllers for the fractional-order objects. Specifically, a PD
μ controller is adopted to adjust the supply water temperature quickly. In contrast, a PI
λD
μ controller precisely manages the return water temperature. Compared to integral-order PID controllers, fractional-order PID controllers offer more flexibility in parameter tuning due to adding two adjustable parameters: integral operator order
λ and derivative operator order
μ [
41]. Thus, fractional-order PID controllers are suitable for controlling nonlinear systems [
42,
43].
4) Tune the structural parameters of fractional-order PID controllers with an advanced fireworks algorithm to adapt to the alterations in the response characteristics of controlled objects.
Section 2.3 introduces the advanced fireworks algorithm and its application in this study.
5) Increase the supply-return water temperature difference of the heat pump units from 5 °C to 10 °C to reduce distribution losses in the heating system. In the meantime, the set value of the return water temperature determined by the actual heat load ensures that the output power of heat pump units fits the heat demand. Therefore, the supply water temperature as the secondary controlled variable adapts to the change in the heat load, decreasing the energy consumption of the heat pump units. In particular, this study uses the forecast method of return water temperatures in a heating system provided by Wang et al. [
44]. Hebei Hongrui Intelligent Engineering Technology Co., LTD implements this forecast method in the live laboratory.
6) Adjust the opening of balance valves installed in each building/unit by calculating deviations between return water temperatures of the building/unit and heating system, ensuring hydraulic and thermal equilibrium among buildings/units. After that, since the valve authority of flow regulating valves at users’ terminals has been improved, hydraulic and thermal equilibrium among users is available, that is, ‘on-demand heating’.
2.3. Advanced Adaptive Tuning Algorithm
The cascade control system has eight structural parameters, namely
KP2,
KD2,
μ2,
KP1,
KI,
KD1,
λ, and
μ1. Tuning these parameters increases the computational load. Thus, an advanced fireworks algorithm is employed to search for optimal solutions for the structural parameters. Additionally, a multi-objective optimization approach is adopted to comprehensively evaluate the control system’s performance as much as possible. A comprehensive evaluation index called
ITUE has been designed using the linear weighting summation method, as shown in Eq. (1), the fitness function for optimization [
34].
where
ω1,
ω2, and
ω3 are the three weight values of
ITUE, controller output, and system error rate, respectively.
ω2 is applied to avoid exporting a control value that is too large to be beyond the amplitude of the controller in engineering, and
ω3 is used to prevent an excessive rate of error, which may cause sensor delay in engineering.
The fireworks algorithm utilizes random factors and selection strategies to form a parallel explosive search method. It is characterized by fast solution speed, implicit parallelism, and a balance between cooperation (global optimization) and competition (local optimization). It is a global probabilistic search method that can find optimal solutions for complex optimization problems. Since its initial development in 2010, various variants have been developed with continuously improving performance, achieving significant application effects in multiple fields [
36]. In this study, the following improvements are made to the standard fireworks algorithm [
45]:
1) Adopt the Cauchy mutation strategy instead of the Gaussian mutation strategy to enhance perturbation ability and broaden the range of variation, making it easier to escape local optima.
2) With an adaptive explosion radius, during the initial iterations, a larger explosion radius is used to strengthen global exploration capability. Later iterations employ a smaller explosion radius to enhance local search capability, accelerating algorithm convergence and balancing solution accuracy with convergence speed.
3) The elite-random selection strategy selects the best individual from a candidate set composed of fireworks, exploding sparks, and Cauchy sparks as the ‘elite’ for the next generation of fireworks. The rest are randomly selected (with possible repetitions) from the candidate set. This approach ensures both retaining optimal individuals’ absolute advantage in the fireworks population and maintaining population diversity while reducing computational complexity.
Based on the advanced fireworks algorithm, the steps for tuning the controller’s structural parameters are as follows:
Step 1: Initialize the parameters of the fireworks algorithm, including the number of fireworks (n), maximum iteration count (Nmax), and number of mutation sparks.
Step 2: Initialize a set of controller’s structural parameters (KP2, KD2, μ2, KP1, KI, KD1, λ, μ1) by randomly selecting positions for each firework as described in Eq. (2).
Step 3: Ignite fireworks to generate sparks by generating a new generation of structural parameter sets from the initial set using Eq. (3), where Eq. (4) determines their positions.
Step 4: Generate mutation sparks through explosive mutations by applying mutation behavior to create a new generation of the controller’s structural parameter sets according to Eq. (5). Eq. (6) describes measures taken when encountering out-of-range fireworks/sparks.
Step 5: Compare all fireworks, explosion sparks, and Cauchy sparks by simulating control systems with each set of controller’s structural parameters to obtain corresponding fitness function values ITUE.
Step 6: Select the best individual from the candidate pool composed of fireworks, explosion sparks, and Cauchy sparks as an ‘elite’ for the next generation of fireworks; randomly select others from this pool (with possible repetitions); collectively form the next generation and conduct simulations.
Step 7: If system performance meets requirements or the maximum iteration count is reached during the search process, select the firework with the highest fitness function value as the optimal solution for the problem; otherwise, repeat Step 3.
The random selection of firework positions is described by Eq. (2).
The number of sparks generated from fireworks during detonation is given by Eq. (3).
The locations where explosion sparks appear are determined by Eq. (4).
The positions where mutation sparks occur are defined by Eq. (5).
Measures to handle out-of-bounds fireworks/sparks are specified in Eq. (6).
where Xzmin and Xzmax are the lower and upper boundary of searching space in dimension z and rand (0 1) is the displacement parameter generated from a standard uniform distribution on the open interval (0, 1). Nc is the total sparks number constant, fmax is the maximum value of the objective function among the n fireworks, and ε is the machine epsilon. Due to the limitation of the manufacturing process, the number of sparks generated by fireworks should be no more than Nmax and no less than Nmin: that is, Nmax should replace Ni if Ni is bigger than Nmax, and Nmin should replace Ni if Ni is smaller than Nmin. Xzc is the historical location information of Cauchy sparks; Xz∗ is the location information of the current best fireworks, i.e., the optimal fireworks; Ni is the number of explosive sparks generated by the i-th fireworks; <Ni> is the average number of explosive sparks of the population; N(0 1) is a Gaussian distribution function with mean 0 and variance 1. Cauchy(0 1) is the standard Cauchy distribution function, and p is the probability of random variation. Xzj represents the position of the j-th individual beyond the boundary in the z dimension; Xzmax and Xzmin are the upper and lower boundaries of the z-th dimension, respectively. % is the symbol of modular operation.
Figure 6 shows the flowchart for tuning the controller parameters based on the advanced fireworks algorithm.
Figure 7 depicts the complete framework of a heat-pump heating control system.
2.4. Tuning Algorithm Tests
Based on
Figure 7 and the response characteristics of each process in the cascade control system, a corresponding Simulink configuration model in the MATLAB platform is established. The initial return water temperature and set value are 40.0 °C and 35.0 °C, respectively. Eight structural parameters of the controllers range as follows:
KP1 ∈ [28, 37];
KI ∈ [6, 11];
KD1 ∈ [45, 55];
λ ∈ [0.6, 0.9];
μ1 ∈ [0.5, 0.7];
KP2 ∈ [1, 4];
KD2 ∈ [55, 63];
μ2 ∈ [0.6, 0.9]. By observing the tuning process combined with a series of indicators such as controlling time
tc, steady-state error
ESS, overshoot, and decay ratio, tuning algorithms’ optimizing and convergent performance can be measured.
Further, to verify the tracking performance of the upgraded control system, the initial return water temperature and its set value are configured by 40.0 °C and 36.5 °C, respectively. Then, the set value of the return water temperature is reset to 35.0 °C at 298 s in the test. After that, to verify the anti-interference performance of the upgraded control system, the initial return water temperature and its set value are configured by 38.5 °C and 35.0 °C, respectively. When the system’s running time is 228.9 s, insert a transient interference signal of 36.0 °C.
The simulation tests above support live measures of the upgraded control system. In the live measure, the set value of the return water temperature is configured by the thermal load prediction algorithm integrating singular spectrum analysis and neural network [
44]. The performance of the old version control system and the upgraded one will be contrasted through individual short- and long-term observations. The short-term tests aim to verify the response characteristics of controlled variables and the behavior of the central apparatus in the heating system. Meanwhile, long-term tests propose to observe the heating performance in a complete heating period. The heating performance that the study is concerned with includes supply-demand balance, the energy consumption of heat pump units and circulating water pumps separately, and users’ complaints about excess or shortage of heating.